Module org.jfree.chart3d
Class AbstractCategoryRenderer3D
java.lang.Object
org.jfree.chart3d.renderer.AbstractRenderer3D
org.jfree.chart3d.renderer.category.AbstractCategoryRenderer3D
- All Implemented Interfaces:
Serializable
,ChartElement
,CategoryRenderer3D
,Renderer3D
- Direct Known Subclasses:
AreaRenderer3D
,BarRenderer3D
,LineRenderer3D
public abstract class AbstractCategoryRenderer3D
extends AbstractRenderer3D
implements CategoryRenderer3D, Serializable
A base class that can be used to implement renderers for a
CategoryPlot3D
.- See Also:
-
Field Summary
Fields inherited from interface org.jfree.chart3d.renderer.Renderer3D
TRANSPARENT_COLOR
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
Tests this renderer for equality with an arbitrary object.findValueRange
(Values3D<? extends Number> data) Returns the range of values that will be required on the value axis to see all the data from the dataset.Returns the color source for the renderer.Returns the item label generator for the renderer (possiblynull
).Returns the item label offsets.getPlot()
Returns the plot that the renderer is currently assigned to, if any.void
Sets a new color source for the renderer using the specified colors and sends aRenderer3DChangeEvent
to all registered listeners.void
setColorSource
(CategoryColorSource colorSource) Sets the color source for the renderer and sends aRenderer3DChangeEvent
to all registered listeners.void
setItemLabelGenerator
(CategoryItemLabelGenerator generator) Sets the item label generator for the renderer and sends a change event to all registered listeners.void
setItemLabelOffsets
(Offset3D offsets) Sets the item label offsets and sends a change event to all registered listeners.void
setPlot
(CategoryPlot3D plot) Sets the plot that the renderer is assigned to.Methods inherited from class org.jfree.chart3d.renderer.AbstractRenderer3D
addChangeListener, fireChangeEvent, getItemLabelBackgroundColor, getItemLabelColor, getItemLabelFont, getItemLabelPositioning, isNotify, notifyListeners, receive, removeChangeListener, setItemLabelBackgroundColor, setItemLabelColor, setItemLabelFont, setItemLabelPositioning, setNotify
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.jfree.chart3d.renderer.category.CategoryRenderer3D
composeItem
Methods inherited from interface org.jfree.chart3d.ChartElement
receive
Methods inherited from interface org.jfree.chart3d.renderer.Renderer3D
addChangeListener, removeChangeListener
-
Constructor Details
-
AbstractCategoryRenderer3D
public AbstractCategoryRenderer3D()Default constructor.
-
-
Method Details
-
getPlot
Returns the plot that the renderer is currently assigned to, if any.- Specified by:
getPlot
in interfaceCategoryRenderer3D
- Returns:
- The plot or
null
.
-
setPlot
Sets the plot that the renderer is assigned to. You do not need to call this method yourself, the plot takes care of it when you call thesetRenderer()
method on the plot.- Specified by:
setPlot
in interfaceCategoryRenderer3D
- Parameters:
plot
- the plot (null
permitted).
-
getColorSource
Returns the color source for the renderer. This is used to determine the colors used for individual items in the chart, and the color to display for a series in the chart legend.- Specified by:
getColorSource
in interfaceCategoryRenderer3D
- Returns:
- The color source (never
null
).
-
setColorSource
Sets the color source for the renderer and sends aRenderer3DChangeEvent
to all registered listeners.- Specified by:
setColorSource
in interfaceCategoryRenderer3D
- Parameters:
colorSource
- the color source (null
not permitted).
-
setColors
Sets a new color source for the renderer using the specified colors and sends aRenderer3DChangeEvent
to all registered listeners. This is a convenience method that is equivalent tosetColorSource(new StandardCategoryColorSource(colors))
.- Specified by:
setColors
in interfaceCategoryRenderer3D
- Parameters:
colors
- one or more colors (null
not permitted).- Since:
- 1.1
-
getItemLabelGenerator
Returns the item label generator for the renderer (possiblynull
).- Returns:
- The item label generator (possibly
null
). - Since:
- 1.3
-
setItemLabelGenerator
Sets the item label generator for the renderer and sends a change event to all registered listeners.- Parameters:
generator
- the generator (null
permitted).- Since:
- 1.3
-
getItemLabelOffsets
Returns the item label offsets.- Returns:
- The item label offsets (never
null
). - Since:
- 1.3
-
setItemLabelOffsets
Sets the item label offsets and sends a change event to all registered listeners.- Parameters:
offsets
- the offsets (null
not permitted).- Since:
- 1.3
-
findValueRange
Returns the range of values that will be required on the value axis to see all the data from the dataset.- Specified by:
findValueRange
in interfaceCategoryRenderer3D
- Parameters:
data
- the data (null
not permitted).- Returns:
- The range (possibly
null
)
-
equals
Tests this renderer for equality with an arbitrary object.- Overrides:
equals
in classAbstractRenderer3D
- Parameters:
obj
- the object (null
permitted).- Returns:
- A boolean.
-