java.lang.Object
org.jfree.chart3d.renderer.AbstractRenderer3D
org.jfree.chart3d.renderer.xyz.AbstractXYZRenderer
org.jfree.chart3d.renderer.xyz.ScatterXYZRenderer
- All Implemented Interfaces:
Serializable
,ChartElement
,Renderer3D
,XYZRenderer
A renderer for 3D scatter plots. This renderer is used with an
(refer to
TIP: to create a chart using this renderer, you can use the
NOTE: This class is serializable, but the serialization format is subject to change in future releases and should not be relied upon for persisting instances of this class.
XYZPlot
and any XYZDataset
instance. Here is a sample:
ScatterPlot3DDemo2.java
for the code to generate
the above chart).
TIP: to create a chart using this renderer, you can use the
Chart3DFactory.createScatterChart(String, String, XYZDataset, String, String, String)
method.
NOTE: This class is serializable, but the serialization format is subject to change in future releases and should not be relied upon for persisting instances of this class.
- See Also:
-
Field Summary
Fields inherited from interface org.jfree.chart3d.renderer.Renderer3D
TRANSPARENT_COLOR
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
composeItem
(XYZDataset dataset, int series, int item, World world, Dimension3D dimensions, double xOffset, double yOffset, double zOffset) Constructs and places one item from the specified dataset into the given world.boolean
Tests this renderer for equality with an arbitrary object.Returns the item label offsets.double
getSize()
Returns the size of the cubes (in world units) used to display each data item.void
setItemLabelOffsetPercent
(Offset3D offset) Sets the item label offsets and sends a change event to all registered listeners.void
setSize
(double size) Sets the size (in world units) of the cubes used to represent each data item and sends aRenderer3DChangeEvent
to all registered listeners.Methods inherited from class org.jfree.chart3d.renderer.xyz.AbstractXYZRenderer
composeAll, findXRange, findYRange, findZRange, getColorSource, getComposeType, getItemLabelGenerator, getPlot, setColors, setColorSource, setItemLabelGenerator, setPlot
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.ChartElement
receive
Methods inherited from interface org.jfree.chart3d.renderer.Renderer3D
addChangeListener, removeChangeListener
Methods inherited from interface org.jfree.chart3d.renderer.xyz.XYZRenderer
composeAll, findXRange, findYRange, findZRange, getColorSource, getComposeType, getPlot, setColors, setColorSource, setPlot
-
Constructor Details
-
ScatterXYZRenderer
public ScatterXYZRenderer()Creates a new instance with default attribute values.
-
-
Method Details
-
getSize
Returns the size of the cubes (in world units) used to display each data item. The default value is0.10
.- Returns:
- The size (in world units).
-
setSize
Sets the size (in world units) of the cubes used to represent each data item and sends aRenderer3DChangeEvent
to all registered listeners.- Parameters:
size
- the size (in world units, must be positive).
-
getItemLabelOffsetPercent
Returns the item label offsets.- Returns:
- The item label offsets (never
null
). - Since:
- 1.3
-
setItemLabelOffsetPercent
Sets the item label offsets and sends a change event to all registered listeners.- Parameters:
offset
- the new offset (null
not permitted).- Since:
- 1.3
-
composeItem
public void composeItem(XYZDataset dataset, int series, int item, World world, Dimension3D dimensions, double xOffset, double yOffset, double zOffset) Constructs and places one item from the specified dataset into the given world. TheXYZPlot
class will iterate over its dataset and and call this method for each item (in other words, you don't need to call this method directly).- Specified by:
composeItem
in interfaceXYZRenderer
- Parameters:
dataset
- the dataset (null
not permitted).series
- the series index.item
- the item index.world
- the world (null
not permitted).dimensions
- the dimensions (null
not permitted).xOffset
- the x-offset.yOffset
- the y-offset.zOffset
- the z-offset.
-
equals
Tests this renderer for equality with an arbitrary object.- Overrides:
equals
in classAbstractXYZRenderer
- Parameters:
obj
- the object to test (null
permitted).- Returns:
- A boolean.
-