- All Superinterfaces:
ChartElement,Renderer3D
- All Known Implementing Classes:
AbstractCategoryRenderer3D,AreaRenderer3D,BarRenderer3D,LineRenderer3D,StackedBarRenderer3D
Defines the methods that all renderers must support to work with a
CategoryPlot3D.-
Field Summary
Fields inherited from interface org.jfree.chart3d.renderer.Renderer3D
TRANSPARENT_COLOR -
Method Summary
Modifier and TypeMethodDescriptionvoidcomposeItem(CategoryDataset3D dataset, int series, int row, int column, World world, Dimension3D dimensions, double xOffset, double yOffset, double zOffset) Constructs and places one item from the specified dataset into the given world.findValueRange(Values3D<? extends Number> data) Returns the range that should be used on the value axis to display all the specified data using this renderer.Returns the color source for the renderer, which is an object that is responsible for providing the colors used by the renderer to draw data (and legend) items.getPlot()Returns the plot that this renderer is assigned to.voidSets the colors for the renderer.voidsetColorSource(CategoryColorSource source) Sets the color source for the renderer and sends aRenderer3DChangeEventto all registered listeners.voidsetPlot(CategoryPlot3D plot) Sets the plot that the renderer is assigned to.Methods inherited from interface org.jfree.chart3d.ChartElement
receiveMethods inherited from interface org.jfree.chart3d.renderer.Renderer3D
addChangeListener, removeChangeListener
-
Method Details
-
getPlot
Returns the plot that this renderer is assigned to.- Returns:
- The plot (possibly
null).
-
setPlot
Sets the plot that the renderer is assigned to. Although this method is part of the public API, client code should not need to call it.- Parameters:
plot- the plot (nullpermitted).
-
getColorSource
Returns the color source for the renderer, which is an object that is responsible for providing the colors used by the renderer to draw data (and legend) items.- Returns:
- The paint source (never
null).
-
setColorSource
Sets the color source for the renderer and sends aRenderer3DChangeEventto all registered listeners.- Parameters:
source- the color source (nullnot permitted).
-
setColors
Sets the colors for the renderer.- Parameters:
colors- the colors.- Since:
- 1.2
-
findValueRange
Returns the range that should be used on the value axis to display all the specified data using this renderer. Normally this will return the minimum and maximum values in the dataset, but some renderers require a larger range (for example, the stacked bar renderer).- Parameters:
data- the data values (nullnot permitted).- Returns:
- The data range.
-
composeItem
void composeItem(CategoryDataset3D dataset, int series, int row, int column, World world, Dimension3D dimensions, double xOffset, double yOffset, double zOffset) Constructs and places one item from the specified dataset into the given world. This method will be called by theCategoryPlot3Dclass while iterating over the items in the dataset.- Parameters:
dataset- the dataset (nullnot permitted).series- the series index.row- the row index.column- the column index.world- the world (nullnot permitted).dimensions- the plot dimensions (nullnot permitted).xOffset- the x-offset.yOffset- the y-offset.zOffset- the z-offset.
-