Dart Documentationorson_chartsCategoryPlot3D

CategoryPlot3D class

A plot that can display data from a CategoryDataset3D. This plot has two axes that display categories (the row axis and the column axis) and one axis (the value axis) that displays numerical values. A renderer controls the visual representation of the data items - you can use any renderer that implements the CategoryRenderer3D interface.

The plot manages the dataset, the axes and the dataset, and will register itself as a listener on each of these components. All change events received are notified to the chart that the plot is assigned to. This change notification mechanism is set up automatically, and is used to ensure that any change to the chart will result in it being automatically re-rendered.

Extends

AbstractPlot3D > CategoryPlot3D

Constructors

new CategoryPlot3D(CategoryDataset3D dataset, CategoryRenderer3D renderer, CategoryAxis3D rowAxis, CategoryAxis3D columnAxis, ValueAxis3D valueAxis) #

Creates a new plot instance for the specified dataset, renderer and axes.

Properties

bool autoAdjustDimensions #

inherited from AbstractPlot3D

Chart3D get chart #

inherited from AbstractPlot3D

Returns the chart that the plot is assigned to.

void set chart(Chart3D chart) #

inherited from AbstractPlot3D

Sets the chart that the plot is assigned to.

CategoryAxis3D get columnAxis #

Returns the column axis.

void set columnAxis(CategoryAxis3D axis) #

Sets the column axis and sends a Plot3DChangeEvent to all registered listeners.

CategoryDataset3D get dataset #

Returns the dataset that is currently assigned to the plot.

void set dataset(CategoryDataset3D dataset) #

Sets the dataset for the plot and sends a Plot3DChangeEvent to all registered listeners.

final Dimension3D dimensions #

inherited from AbstractPlot3D

Returns the dimensions of the plot.

docs inherited from Plot3D

Color get gridlineColorForColumns #

Returns the color used for the gridlines of the column axis.

void set gridlineColorForColumns(Color color) #

Sets the color used for the gridlines of the column axis and sends a Plot3DChangeEvent to all registered listeners.

Color get gridlineColorForRows #

Returns the color used for the gridlines of the row axis.

void set gridlineColorForRows(Color color) #

Sets the color used for the gridlines of the row axis and sends a Plot3DChangeEvent to all registered listeners.

Color get gridlineColorForValues #

Returns the color used for the gridlines of the value axis.

void set gridlineColorForValues(Color color) #

Sets the color used for the gridlines of the value axis and sends a Plot3DChangeEvent to all registered listeners.

Stroke get gridlineStrokeForColumns #

Returns the line stroke for gridlines for the column axis.

void set gridlineStrokeForColumns(Stroke stroke) #

Sets the line stroke for the gridlines of the column axis and sends a Plot3DChangeEvent to all registered listeners.

Stroke get gridlineStrokeForRows #

Returns the line stroke for gridlines for the row axis.

void set gridlineStrokeForRows(Stroke stroke) #

Sets the line stroke for the gridlines of the row axis and sends a Plot3DChangeEvent to all registered listeners.

Stroke get gridlineStrokeForValues #

Returns the line stroke for gridlines for the value axis.

void set gridlineStrokeForValues(Stroke stroke) #

Sets the line stroke for the gridlines of the value axis and sends a Plot3DChangeEvent to all registered listeners.

bool get gridlinesVisibleForColumns #

Returns the flag that controls whether or not gridlines are drawn perpendicular to the column axis.

void set gridlinesVisibleForColumns(bool visible) #

Sets the flag that controls whether or not gridlines are drawn perpendicular to the column axis and sends a Plot3DChangeEvent to all registered listeners.

bool get gridlinesVisibleForRows #

Returns the flag that controls whether or not gridlines are drawn perpendicular to the row axis.

void set gridlinesVisibleForRows(bool visible) #

Sets the flag that controls whether or not gridlines are drawn perpendicular to the row axis and sends a Plot3DChangeEvent to all registered listeners.

bool get gridlinesVisibleForValues #

Returns the flag that controls whether or not gridlines are drawn perpendicular to the value axis.

void set gridlinesVisibleForValues(bool visible) #

Sets the flag that controls whether or not gridlines are drawn perpendicular to the row axis and sends a Plot3DChangeEvent to all registered listeners.

final List<LegendItemInfo> legendInfo #

Returns a list of items to be displayed in the chart's legend. Typically there will be one item per series in the chart. The legendBuilder assigned to the chart will take this list and construct the elements for display.

docs inherited from Plot3D

CategoryLabelGenerator get legendLabelGenerator #

Returns the legend label generator (never null).

void set legendLabelGenerator(CategoryLabelGenerator generator) #

Sets the legend label generator (null is not permitted) and sends a change event to all registered listeners.

CategoryRenderer3D get renderer #

Returns the renderer that is currently assigned to the plot.

void set renderer(CategoryRenderer3D renderer) #

Sets the renderer for the plot and sends a Plot3DChangeEvent to all registered listeners.

CategoryAxis3D get rowAxis #

Returns the row axis.

void set rowAxis(CategoryAxis3D axis) #

Sets the row axis and sends a Plot3DChangeEvent to all registered listeners.

ValueAxis3D get valueAxis #

Returns the value axis.

void set valueAxis(ValueAxis3D axis) #

Sets the value axis and sends a Plot3DChangeEvent to all registered listeners.

Methods

void addChangeListener(Plot3DChangeListener listener) #

inherited from AbstractPlot3D

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

docs inherited from Plot3D

void axis3DChanged(Axis3DChangeEvent event) #

inherited from AbstractPlot3D

Receives notification of a change to one of the plot's axes. The event contains information about the source of the event.

void compose(World world, num xOffset, num yOffset, num zOffset) #

Composes the objects that are required to display this plot, placing them in the specified world. Typically most of the composition work will be delegated to a renderer, although some plot subclasses (for example, PiePlot3D) will perform the composition directly.

docs inherited from Plot3D

void dataset3DChanged(Dataset3DChangeEvent event) #

inherited from AbstractPlot3D

Receives notification of a change to the plot's dataset.

void fireChangeEvent() #

inherited from AbstractPlot3D

Sends a Plot3DChangeEvent to all registered listeners.

void receive(ChartElementVisitor visitor) #

Receives a visitor (this method is overridden to call receive on all the sub-elements of the plot: the column axis, the row axis, the value axis and the renderer, before performing the visit for the plot).

void removeChangeListener(Plot3DChangeListener listener) #

inherited from AbstractPlot3D

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

docs inherited from Plot3D

void renderer3DChanged(Renderer3DChangeEvent event) #

inherited from AbstractPlot3D

Receives notification of a change to the renderer. The event contains information about the source of the event.