Dart Documentationorson_chartsAbstractAxis3D

AbstractAxis3D abstract class

A base class for creating axis subclasses.

Subclasses

NumberAxis3D, StandardCategoryAxis3D

Implements

Axis3D

Static Properties

final Color DEFAULT_LABEL_COLOR #

The default foreground color for the main axis label.

final Font DEFAULT_LABEL_FONT #

The default font for the main axis label.

final Color DEFAULT_LINE_COLOR #

The default line color for the axis.

final Stroke DEFAULT_LINE_STROKE #

The default line stroke for the axis.

final Color DEFAULT_TICK_LABEL_COLOR #

The default foreground color for the axis tick labels.

final Font DEFAULT_TICK_LABEL_FONT #

The default font for the axis tick labels.

Constructors

new AbstractAxis3D() #

Default constructor.

new AbstractAxis3D.withLabel(String label) #

Constructs an axis with the specified label.

Properties

String get label #

Returns the label for the axis.

void set label(String label) #

Sets the label for the axis.

Color get labelColor #

Returns the color used for the axis label. The default value is [DEFAULT_LABEL_COLOR].

void set labelColor(Color color) #

Sets the color for the axis label and sends an Axis3DChangeEvent to all registered listeners.

Font get labelFont #

Returns the font used for the axis label. The default value is [DEFAULT_LABEL_FONT].

void set labelFont(Font font) #

Sets the font used for the label and sends an Axis3DChangeEvent to all registered listeners.

Color get lineColor #

Returns the color used to draw the axis line. The default value is [DEFAULT_LINE_COLOR].

void set lineColor(Color color) #

Sets the color used to draw the axis line and sends an Axis3DChangeEvent to all registered listeners.

Stroke get lineStroke #

Returns the stroke used to draw the axis line. The default value is [DEFAULT_LINE_STROKE].

void set lineStroke(Stroke stroke) #

Sets the stroke used to draw the axis line and sends an Axis3DChangeEvent to all registered listeners.

num get lowerMargin #

Returns the lower margin for the axis. The default value is 0.05 (five percent).

void set lowerMargin(num margin) #

Sets the lower margin for the axis and sends an Axis3DChangeEvent to all registered listeners.

Range get range #

Returns the axis range.

void set range(Range range) #

Sets the bounds for the axis to the specified range and sends an Axis3DChangeEvent to all registered listeners.

Color get tickLabelColor #

Returns the color used for the tick labels.

void set tickLabelColor(Color color) #

Sets the color used for the tick labels and sends an Axis3DChangeEvent to all registered listeners.

Font get tickLabelFont #

Returns the font used to display the tick labels. The default value is [DEFAULT_TICK_LABEL_FONT].

void set tickLabelFont(Font font) #

Sets the font used to display the tick labels and sends an Axis3DChangeEvent to all registered listeners.

num get tickLabelOffset #

Returns the offset between the end of the tick marks and the anchor point for the tick labels. The default value is 5.0.

void set tickLabelOffset(num offset) #

Sets the offset between the end of the tick marks and the anchor point for the tick labels, then sends an Axis3DChangeEvent to all registered listeners.

bool get tickLabelsVisible #

Returns the flag that controls whether or not the tick labels are displayed.

void set tickLabelsVisible(bool visible) #

Sets the flag that controls whether or not the tick labels are visible and sends an Axis3DChangeEvent to all registered listeners.

Color get tickMarkColor #

Returns the color used to draw tick marks.

void set tickMarkColor(Color color) #

Sets the color used to draw tick marks on the axis and sends an Axis3DChangeEvent to all registered listeners.

num get tickMarkLength #

Returns the length of the tick marks. The default value is 3.0.

void set tickMarkLength(num length) #

Sets the tick mark length and sends an Axis3DChangeEvent to all registered listeners.

Stroke get tickMarkStroke #

Returns the stroke used to draw tick marks.

void set tickMarkStroke(Stroke stroke) #

Sets the stroke used to draw tick marks on the axis and sends an Axis3DChangeEvent to all registered listeners.

num get upperMargin #

Returns the upper margin for the axis. The default value is 0.05 (five percent).

void set upperMargin(num margin) #

Sets the upper margin for the axis and sends an Axis3DChangeEvent to all registered listeners.

bool get visible #

Returns true if the axis is to be displayed on the chart, and false otherwise.

void set visible(bool visible) #

Sets the flag that controls the visibility of the axis and sends an AxisChangeEvent to all registered listeners.

Methods

void addChangeListener(Axis3DChangeListener listener) #

Registers a listener to receive notification of changes to the axis.

abstract void draw(CanvasRenderingContext2D context, Point startPt, Point endPt, Point opposingPt, bool labels, List<TickData> tickData) #

inherited from Axis3D

Draws the axis on a canvas between the startPt and the endPt. If the labels flag is set, then the tickData is used to draw labels on the opposite side of the line from opposingPt.

void fireChangeEvent() #

void receive(ChartElementVisitor visitor) #

Receives a visitor. This is part of a general mechanism for traversing all the elements that make up a chart structure.

docs inherited from ChartElement

void removeChangeListener(Axis3DChangeListener listener) #

Deregisters a listener so that it no longer receives notification of changes to the axis.

void setRangeBounds(num min, num max) #

Sets the range bounds for the axis and sends an Axis3DChangeEvent to all registered listeners.

abstract num translateToWorld(num value, num length) #

inherited from Axis3D

Translates a data value to world coordinates, assuming that the axis starts at the origin and has the specified length.