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 TypeMethodDescriptionvoidcomposeItem(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.booleanTests this renderer for equality with an arbitrary object.Returns the item label offsets.doublegetSize()Returns the size of the cubes (in world units) used to display each data item.voidsetItemLabelOffsetPercent(Offset3D offset) Sets the item label offsets and sends a change event to all registered listeners.voidsetSize(double size) Sets the size (in world units) of the cubes used to represent each data item and sends aRenderer3DChangeEventto all registered listeners.Methods inherited from class org.jfree.chart3d.renderer.xyz.AbstractXYZRenderer
composeAll, findXRange, findYRange, findZRange, getColorSource, getComposeType, getItemLabelGenerator, getPlot, setColors, setColorSource, setItemLabelGenerator, setPlotMethods inherited from class org.jfree.chart3d.renderer.AbstractRenderer3D
addChangeListener, fireChangeEvent, getItemLabelBackgroundColor, getItemLabelColor, getItemLabelFont, getItemLabelPositioning, isNotify, notifyListeners, receive, removeChangeListener, setItemLabelBackgroundColor, setItemLabelColor, setItemLabelFont, setItemLabelPositioning, setNotifyMethods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.jfree.chart3d.ChartElement
receiveMethods inherited from interface org.jfree.chart3d.renderer.Renderer3D
addChangeListener, removeChangeListenerMethods 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 aRenderer3DChangeEventto 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 (nullnot 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. TheXYZPlotclass 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:
composeItemin interfaceXYZRenderer- Parameters:
dataset- the dataset (nullnot permitted).series- the series index.item- the item index.world- the world (nullnot permitted).dimensions- the dimensions (nullnot permitted).xOffset- the x-offset.yOffset- the y-offset.zOffset- the z-offset.
-
equals
Tests this renderer for equality with an arbitrary object.- Overrides:
equalsin classAbstractXYZRenderer- Parameters:
obj- the object to test (nullpermitted).- Returns:
- A boolean.
-