A renderer that composes area charts for a CategoryPlot3D.
new AreaRenderer3D() #
Creates a new
AreaRenderer instance with default attributes.
num get base #
Returns the base value for the area (defaults to 0.0).
void set base(num base) #
Sets the base value and sends a Renderer3DChangeEvent to all registered listeners.
Sets the base color and sends a Renderer3DChangeEvent to all registered listeners.
Applies these colors to the current color source and sends a Renderer3DChangeEvent to all registered listeners.
CategoryColorSource get colorSource #
Returns the color source for the renderer.
void set colorSource(CategoryColorSource source) #
num get depth #
Returns the depth (or thickness) of the area object as a percentage of the row width. The default value is 0.6 (sixty percent).
void set depth(num depth) #
Sets the depth (usually a number in the range 0.0 to 1.0) and sends a Renderer3DChangeEvent to all registered listeners.
CategoryPlot3D get plot #
Returns the plot that the renderer is assigned to.
void addChangeListener(Renderer3DChangeListener listener) #
Registers a listener so that it will receive notification of changes to the renderer.
void composeItem(CategoryDataset3D dataset, int series, int row, int column, World world, Dimension3D dimensions, num xOffset, num yOffset, num zOffset) #
Composes an item from the dataset (this is the process of constructing the 3D object(s) to represent the data item, and adding it/them to the world).
Returns the range of values that this renderer requires on the y-axis in order to display all the items in the dataset. The method is overridden here to ensure that the base value is included in the range.
void fireChangeEvent() #
Sends a Renderer3DChangeEvent (with this renderer as the source) to all registered listeners.
bool isBaselineCrossed(num y0, num y1, num baseline) #
true if the two values are on opposite sides of
the baseline. If the data values cross the baseline, then we need
to construct two 3D objects to represent the data, whereas if there is
no crossing, a single 3D object will be sufficient.
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.