C# Class NPlot.LabelAxis

Allows the creation of axes with any number of user defined labels at user defined world values along the axis.
Inheritance: Axis
Afficher le fichier Open project: mono/nplot-gtk Class Usage Examples

Méthodes publiques

Méthode Description
AddLabel ( string name, double val ) : void

Adds a label to the axis

Clone ( ) : object

Deep copy of LabelAxis.

LabelAxis ( ) : System

Default constructor

LabelAxis ( Axis a ) : System

Copy constructor

TODO: [review notes] I don't think this will work as desired.

LabelAxis ( double worldMin, double worldMax ) : System

Constructor

Méthodes protégées

Méthode Description
DoClone ( LabelAxis b, LabelAxis a ) : void

Helper method for Clone.

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

Given Graphics surface, and physical extents of axis, draw ticks and associated labels.

Private Methods

Méthode Description
Init ( ) : void

Initialise LabelAxis to default state.

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

Determines the positions, in world coordinates, of the large ticks. Label axes do not have small ticks.

Method Details

AddLabel() public méthode

Adds a label to the axis
public AddLabel ( string name, double val ) : void
name string The label
val double The world value at which to place the label
Résultat void

Clone() public méthode

Deep copy of LabelAxis.
public Clone ( ) : object
Résultat object

DoClone() protected static méthode

Helper method for Clone.
protected static DoClone ( LabelAxis b, LabelAxis a ) : void
b LabelAxis The cloned object.
a LabelAxis The original object to clone.
Résultat void

DrawTicks() protected méthode

Given Graphics surface, and physical extents of axis, draw ticks and associated labels.
protected DrawTicks ( Graphics g, Point physicalMin, Point physicalMax, object &labelOffset, object &boundingBox ) : void
g System.Drawing.Graphics The GDI+ Graphics surface on which to draw.
physicalMin Point The physical location of the world min point
physicalMax Point The physical location of the world max point
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.
Résultat void

LabelAxis() public méthode

Default constructor
public LabelAxis ( ) : System
Résultat System

LabelAxis() public méthode

Copy constructor
TODO: [review notes] I don't think this will work as desired.
public LabelAxis ( Axis a ) : System
a Axis The Axis to clone.
Résultat System

LabelAxis() public méthode

Constructor
public LabelAxis ( double worldMin, double worldMax ) : System
worldMin double Minimum world value
worldMax double Maximum world value
Résultat System