Dart Documentationorson_chartsStandardCategoryAxis3D

StandardCategoryAxis3D class

A default implementation of the CategoryAxis3D interface. This axis type can be used with the CategoryPlot3D class as a rowAxis or a columnAxis.

Extends

AbstractAxis3D > StandardCategoryAxis3D

Implements

CategoryAxis3D

Constructors

new StandardCategoryAxis3D(String label) #

Creates a new axis instance with the specified label.

Properties

bool get isFirstCategoryHalfWidth #

Returns true if the first category should be shown at half-width only, and false otherwise. There are some renderers where it makes sense to reduce the width of the first category.

void set isFirstCategoryHalfWidth(bool half) #

Sets the flag that controls the width of the first category on the axis, and sends an AxisChangeEvent to all registered listeners.

bool get isLastCategoryHalfWidth #

Returns true if the last category should be shown at half-width only, and false otherwise. There are some renderers where it makes sense to reduce the width of the last category.

void set isLastCategoryHalfWidth(bool half) #

Sets the flag that controls the width of the last category on the axis, and sends an AxisChangeEvent to all registered listeners.

String get label #

inherited from AbstractAxis3D

Returns the label for the axis.

void set label(String label) #

inherited from AbstractAxis3D

Sets the label for the axis.

Color get labelColor #

inherited from AbstractAxis3D

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

void set labelColor(Color color) #

inherited from AbstractAxis3D

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

Font get labelFont #

inherited from AbstractAxis3D

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

void set labelFont(Font font) #

inherited from AbstractAxis3D

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

Color get lineColor #

inherited from AbstractAxis3D

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

void set lineColor(Color color) #

inherited from AbstractAxis3D

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

Stroke get lineStroke #

inherited from AbstractAxis3D

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

void set lineStroke(Stroke stroke) #

inherited from AbstractAxis3D

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

num get lowerMargin #

inherited from AbstractAxis3D

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

void set lowerMargin(num margin) #

inherited from AbstractAxis3D

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

Range get range #

inherited from AbstractAxis3D

Returns the axis range.

void set range(Range range) #

inherited from AbstractAxis3D

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

Color get tickLabelColor #

inherited from AbstractAxis3D

Returns the color used for the tick labels.

void set tickLabelColor(Color color) #

inherited from AbstractAxis3D

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

Font get tickLabelFont #

inherited from AbstractAxis3D

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

void set tickLabelFont(Font font) #

inherited from AbstractAxis3D

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

CategoryLabelGenerator get tickLabelGenerator #

Returns the object that converts row or category keys into tick labels (never null).

void set tickLabelGenerator(CategoryLabelGenerator generator) #

Sets the tick label generator (null is not permitted) and sends an AxisChangeEvent to all registered listeners.

num get tickLabelOffset #

inherited from AbstractAxis3D

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) #

inherited from AbstractAxis3D

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 #

inherited from AbstractAxis3D

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

void set tickLabelsVisible(bool visible) #

inherited from AbstractAxis3D

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

Color get tickMarkColor #

inherited from AbstractAxis3D

Returns the color used to draw tick marks.

void set tickMarkColor(Color color) #

inherited from AbstractAxis3D

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

num get tickMarkLength #

inherited from AbstractAxis3D

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

void set tickMarkLength(num length) #

inherited from AbstractAxis3D

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

Stroke get tickMarkStroke #

inherited from AbstractAxis3D

Returns the stroke used to draw tick marks.

void set tickMarkStroke(Stroke stroke) #

inherited from AbstractAxis3D

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

num get upperMargin #

inherited from AbstractAxis3D

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

void set upperMargin(num margin) #

inherited from AbstractAxis3D

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

bool get visible #

inherited from AbstractAxis3D

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

void set visible(bool visible) #

inherited from AbstractAxis3D

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

Methods

void addChangeListener(Axis3DChangeListener listener) #

inherited from AbstractAxis3D

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

void configureAsColumnAxis(CategoryPlot3D plot) #

Configures the axis to be used with the specified plot, as a column axis.

docs inherited from CategoryAxis3D

void configureAsRowAxis(CategoryPlot3D plot) #

Configures the axis to be used with the specified plot, as a row axis.

docs inherited from CategoryAxis3D

void draw(CanvasRenderingContext2D context, Point pt0, Point pt1, Point opposingPt, bool labels, List<TickData> tickData) #

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.

docs inherited from Axis3D

void fireChangeEvent() #

inherited from AbstractAxis3D

List<TickData> generateTickDataForColumns(CategoryDataset3D dataset) #

Generates a list of tick data records for the columns in the specified dataset.

docs inherited from CategoryAxis3D

List<TickData> generateTickDataForRows(CategoryDataset3D dataset) #

Generates a list of tick data records for the rows in the specified dataset.

docs inherited from CategoryAxis3D

num getCategoryValue(Comparable category) #

Returns the numerical axis value for the specified category.

num getCategoryWidth() #

Returns the width of one category in axis units. One usage for this is in the calculation of the width of bars.

void receive(ChartElementVisitor visitor) #

inherited from AbstractAxis3D

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) #

inherited from AbstractAxis3D

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

void setRangeBounds(num min, num max) #

inherited from AbstractAxis3D

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

num translateToWorld(num value, num length) #

Translates a data value to a coordinate in world space assuming that the axis starts and the origin and has the specified length in world units.