C# 클래스 NPlot.LogAxis

The class implementing logarithmic axes.
상속: Axis
파일 보기 프로젝트 열기: mono/nplot-gtk 1 사용 예제들

공개 메소드들

메소드 설명
Clone ( ) : object

Deep Copy of the LogAxis.

LogAxis ( ) : System

Default constructor.

LogAxis ( Axis a ) : System

Copy Constructor

LogAxis ( double worldMin, double worldMax ) : System

Constructor

PhysicalToWorld ( PointF p, PointF physicalMin, PointF physicalMax, bool clip ) : double

Return the world coordinate of the projection of the point p onto the axis.

WorldToPhysical ( double coord, PointF physicalMin, PointF physicalMax, bool clip ) : PointF

World to physical coordinate transform.

TODO: make Reversed property work for this.

보호된 메소드들

메소드 설명
DoClone ( LogAxis b, LogAxis a ) : void

Helper method for Clone (actual implementation)

DrawTicks ( Graphics g, Point physicalMin, Point physicalMax, object &labelOffset, object &boundingBox ) : void

Draw the ticks.

비공개 메소드들

메소드 설명
CalcGrids ( double dLenAxis, int nNumDivisions, double &dDivisionInterval ) : void
DetermineNumberSmallTicks ( double bigTickDist ) : int

Determines the number of small ticks between two large ticks.

DetermineTickSpacing ( ) : double

Determines the tick spacing.

Init ( ) : void
WorldTickPositions_FirstPass ( Point physicalMin, Point physicalMax, ArrayList &largeTickPositions, ArrayList &smallTickPositions ) : void

Determines the positions, in world coordinates, of the log spaced large ticks.

WorldTickPositions_SecondPass ( Point physicalMin, Point physicalMax, ArrayList largeTickPositions, ArrayList &smallTickPositions ) : void

Determines the positions, in world coordinates, of the small ticks if they have not already been generated.

메소드 상세

Clone() 공개 메소드

Deep Copy of the LogAxis.
public Clone ( ) : object
리턴 object

DoClone() 보호된 메소드

Helper method for Clone (actual implementation)
protected DoClone ( LogAxis b, LogAxis a ) : void
b LogAxis The cloned object.
a LogAxis The original object to clone.
리턴 void

DrawTicks() 보호된 메소드

Draw the ticks.
protected DrawTicks ( Graphics g, Point physicalMin, Point physicalMax, object &labelOffset, object &boundingBox ) : void
g System.Drawing.Graphics The drawing surface on which to draw.
physicalMin Point The minimum physical extent of the axis.
physicalMax Point The maximum physical extent of the axis.
labelOffset object out: a suitable offset from the axis to draw the axis label.
boundingBox object out: smallest box that completely encompasses all of the ticks and tick labels.
리턴 void

LogAxis() 공개 메소드

Default constructor.
public LogAxis ( ) : System
리턴 System

LogAxis() 공개 메소드

Copy Constructor
public LogAxis ( Axis a ) : System
a Axis The Axis to clone.
리턴 System

LogAxis() 공개 메소드

Constructor
public LogAxis ( double worldMin, double worldMax ) : System
worldMin double Minimum World value for the axis.
worldMax double Maximum World value for the axis.
리턴 System

PhysicalToWorld() 공개 메소드

Return the world coordinate of the projection of the point p onto the axis.
public PhysicalToWorld ( PointF p, PointF physicalMin, PointF physicalMax, bool clip ) : double
p System.Drawing.PointF The point to project onto the axis
physicalMin System.Drawing.PointF The physical position corresponding to the world minimum of the axis.
physicalMax System.Drawing.PointF The physical position corresponding to the world maximum of the axis.
clip bool If true, the world value will be clipped to WorldMin or WorldMax as appropriate if it lies outside this range.
리턴 double

WorldToPhysical() 공개 메소드

World to physical coordinate transform.
TODO: make Reversed property work for this.
public WorldToPhysical ( double coord, PointF physicalMin, PointF physicalMax, bool clip ) : PointF
coord double The coordinate value to transform.
physicalMin System.Drawing.PointF The physical position corresponding to the world minimum of the axis.
physicalMax System.Drawing.PointF The physical position corresponding to the world maximum of the axis.
clip bool if false, then physical value may extend outside worldMin / worldMax. If true, the physical value returned will be clipped to physicalMin or physicalMax if it lies outside this range.
리턴 System.Drawing.PointF