Inheritance diagram for NPlot::LabelAxis:
Public Member Functions | |
override object | Clone () |
Deep copy of LabelAxis. | |
LabelAxis (Axis a) | |
Copy constructor. | |
LabelAxis () | |
Default constructor. | |
LabelAxis (double worldMin, double worldMax) | |
Constructor. | |
void | AddLabel (string name, double val) |
Adds a label to the axis. | |
Protected Member Functions | |
override void | DrawTicks (Graphics g, Point physicalMin, Point physicalMax, out object labelOffset, out object boundingBox) |
Given Graphics surface, and physical extents of axis, draw ticks and associated labels. | |
Static Protected Member Functions | |
static void | DoClone (LabelAxis b, LabelAxis a) |
Helper method for Clone. | |
Properties | |
bool | TicksBetweenText |
If true, large ticks are drawn between the labels, rather than at the position of the labels. | |
bool | ticksBetweenText_ = false |
bool | SortDataIfNecessary |
If your data may be be specified out of order (that is abscissa values with a higher index may be less than abscissa values of a lower index), then data sorting may be necessary to implement some of the functionality of this object. | |
bool | sortDataIfNecessary_ = true |
int | PhysicalSpacingMin |
If consecutive labels are less than this number of pixels appart, some of the labels will not be drawn. | |
int | physicalSpacingMin_ = 0 |
ArrayList | labels_ |
ArrayList | numbers_ |
Private Member Functions | |
void | Init () |
Initialise LabelAxis to default state. | |
internal override void | WorldTickPositions_FirstPass (Point physicalMin, Point physicalMax, out ArrayList largeTickPositions, out ArrayList smallTickPositions) |
Determines the positions, in world coordinates, of the large ticks. |
Definition at line 63 of file LabelAxis.cs.
|
Copy constructor.
Definition at line 114 of file LabelAxis.cs. |
|
Default constructor.
Definition at line 123 of file LabelAxis.cs. Referenced by Clone(). |
|
Constructor.
Definition at line 134 of file LabelAxis.cs. |
|
Adds a label to the axis.
Definition at line 146 of file LabelAxis.cs. |
|
Deep copy of LabelAxis.
Reimplemented from NPlot::Axis. Definition at line 70 of file LabelAxis.cs. References LabelAxis(). |
|
Helper method for Clone.
Definition at line 87 of file LabelAxis.cs. References labels_, numbers_, sortDataIfNecessary_, and ticksBetweenText_. |
|
Given Graphics surface, and physical extents of axis, draw ticks and associated labels.
Reimplemented from NPlot::Axis. Definition at line 162 of file LabelAxis.cs. |
|
Initialise LabelAxis to default state.
Reimplemented from NPlot::Axis. Definition at line 102 of file LabelAxis.cs. |
|
Determines the positions, in world coordinates, of the large ticks. Label axes do not have small ticks.
Reimplemented from NPlot::Axis. Definition at line 245 of file LabelAxis.cs. |
|
Definition at line 353 of file LabelAxis.cs. Referenced by DoClone(). |
|
Definition at line 354 of file LabelAxis.cs. Referenced by DoClone(). |
|
If consecutive labels are less than this number of pixels appart, some of the labels will not be drawn.
Definition at line 340 of file LabelAxis.cs. |
|
Definition at line 350 of file LabelAxis.cs. |
|
If your data may be be specified out of order (that is abscissa values with a higher index may be less than abscissa values of a lower index), then data sorting may be necessary to implement some of the functionality of this object. If you know your data is already ordered with abscissa values lowest -> highest, then you may set this to false. It's default is true. Definition at line 322 of file LabelAxis.cs. |
|
Definition at line 332 of file LabelAxis.cs. Referenced by DoClone(). |
|
If true, large ticks are drawn between the labels, rather than at the position of the labels.
Definition at line 299 of file LabelAxis.cs. |
|
Definition at line 309 of file LabelAxis.cs. Referenced by DoClone(). |