java.lang.Object
org.jfree.chart3d.renderer.AbstractRenderer3D
org.jfree.chart3d.renderer.category.AbstractCategoryRenderer3D
org.jfree.chart3d.renderer.category.LineRenderer3D
- All Implemented Interfaces:
Serializable,ChartElement,CategoryRenderer3D,Renderer3D
A renderer that can be used with the
(refer to
Some attributes in the renderer are specified in "world units" - see the
There is a factory method to create a chart using this renderer - see
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.
CategoryPlot3D class to create
3D lines charts from data in a CategoryDataset3D. The
createLineChart() method in the Chart3DFactory class
will construct a chart that uses this renderer. Here is a sample:
LineChart3DDemo1.java for the code to generate the
above chart).
Some attributes in the renderer are specified in "world units" - see the
Chart3D class description for more information about world units.
There is a factory method to create a chart using this renderer - see
Chart3DFactory.createLineChart(String, String, CategoryDataset3D, String, String, String).
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(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.booleanTests this renderer for equality with an arbitrary object.Returns the color source used to determine the color used to highlight clipping in the chart elements.doubleReturns the width for isolated data items as a percentage of the category width.doubleReturns the line height in world units.doubleReturns the line width in world units.voidSets the color source that determines the color used to highlight clipping in the chart elements, and sends aRenderer3DChangeEventto all registered listeners.voidsetIsolatedItemWidthPercent(double percent) Sets the width for isolated data items as a percentage of the category width and sends a change event to all registered listeners.voidsetLineHeight(double height) Sets the line height (in world units) and sends aRenderer3DChangeEventto all registered listeners.voidsetLineWidth(double width) Sets the line width (in world units) and sends aRenderer3DChangeEventto all registered listeners.Methods inherited from class org.jfree.chart3d.renderer.category.AbstractCategoryRenderer3D
findValueRange, getColorSource, getItemLabelGenerator, getItemLabelOffsets, getPlot, setColors, setColorSource, setItemLabelGenerator, setItemLabelOffsets, 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, removeChangeListener
-
Constructor Details
-
LineRenderer3D
public LineRenderer3D()Creates a new instance with default attribute values.
-
-
Method Details
-
getLineWidth
Returns the line width in world units. The default value is0.4.- Returns:
- The line width in world units.
-
setLineWidth
Sets the line width (in world units) and sends aRenderer3DChangeEventto all registered listeners.- Parameters:
width- the width (in world units).
-
getLineHeight
Returns the line height in world units. The default value is0.2.- Returns:
- The line height in world units.
-
setLineHeight
Sets the line height (in world units) and sends aRenderer3DChangeEventto all registered listeners.- Parameters:
height- the height (in world units).
-
getIsolatedItemWidthPercent
Returns the width for isolated data items as a percentage of the category width. The default value is 0.25 (twenty five percent).- Returns:
- The width percentage.
- Since:
- 1.3
-
setIsolatedItemWidthPercent
Sets the width for isolated data items as a percentage of the category width and sends a change event to all registered listeners.- Parameters:
percent- the new percentage.- Since:
- 1.3
-
getClipColorSource
Returns the color source used to determine the color used to highlight clipping in the chart elements. If the source isnull, then the regular series color is used instead.- Returns:
- The color source (possibly
null).
-
setClipColorSource
Sets the color source that determines the color used to highlight clipping in the chart elements, and sends aRenderer3DChangeEventto all registered listeners.- Parameters:
source- the source (nullpermitted).
-
composeItem
public 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.- Specified by:
composeItemin interfaceCategoryRenderer3D- 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.
-
equals
Tests this renderer for equality with an arbitrary object.- Overrides:
equalsin classAbstractCategoryRenderer3D- Parameters:
obj- the object (nullnot permitted).- Returns:
- A boolean.
-