public class AreaRenderer3D extends AbstractCategoryRenderer3D implements java.io.Serializable
CategoryDataset3D (for use with a CategoryPlot3D). For
example:
AreaChart3DDemo1.java for the code to generate the
above chart).
Chart3DFactory.createAreaChart(String, String, CategoryDataset3D,
String, String, String).
TRANSPARENT_COLOR| Constructor and Description |
|---|
AreaRenderer3D()
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
boolean |
equals(java.lang.Object obj)
Tests this renderer for equality with an arbitrary object.
|
Range |
findValueRange(Values3D<? extends java.lang.Number> data)
Returns the range (for the value axis) that is required for this
renderer to show all the values in the specified data set.
|
double |
getBase()
Returns the y-value for the base of the area.
|
java.awt.Color |
getBaseColor()
Returns the color used to paint the underside of the area polygons.
|
CategoryColorSource |
getClipColorSource()
Returns the color source used to determine the color used to highlight
clipping in the chart elements.
|
double |
getDepth()
Returns the depth (in 3D) for the area (in world units).
|
boolean |
getDrawFaceOutlines()
Returns the flag that controls whether or not the faces making up area
segments will be drawn with outlines.
|
void |
setBase(double base)
Sets the base value and sends a change event to all registered listeners.
|
void |
setBaseColor(java.awt.Color color)
Sets the color for the underside of the area shapes and sends a
change event to all registered listeners.
|
void |
setClipColorSource(CategoryColorSource source)
Sets the color source that determines the color used to highlight
clipping in the chart elements, and sends a
Renderer3DChangeEvent
to all registered listeners. |
void |
setDepth(double depth)
Sets the depth (in 3D) and sends a change event to all registered
listeners.
|
void |
setDrawFaceOutlines(boolean outline)
Sets the flag that controls whether or not outlines are drawn for the
faces making up the area segments and sends a change event to all
registered listeners.
|
getColorSource, getItemLabelGenerator, getItemLabelOffsets, getPlot, setColors, setColorSource, setItemLabelGenerator, setItemLabelOffsets, setPlotaddChangeListener, fireChangeEvent, getItemLabelBackgroundColor, getItemLabelColor, getItemLabelFont, getItemLabelPositioning, isNotify, notifyListeners, receive, removeChangeListener, setItemLabelBackgroundColor, setItemLabelColor, setItemLabelFont, setItemLabelPositioning, setNotifyclone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddChangeListener, removeChangeListenerreceivepublic AreaRenderer3D()
public double getBase()
0.0.public void setBase(double base)
base - the base value.public java.awt.Color getBaseColor()
null (which means the undersides are
painted using the regular series color).null).setBaseColor(java.awt.Color)public void setBaseColor(java.awt.Color color)
null the base will be painted with the regular
series color.color - the color (null permitted).public double getDepth()
0.6.public void setDepth(double depth)
depth - the depth.public CategoryColorSource getClipColorSource()
null,
then the regular series color is used instead.null).public void setClipColorSource(CategoryColorSource source)
Renderer3DChangeEvent
to all registered listeners.source - the source (null permitted).public boolean getDrawFaceOutlines()
true. When anti-aliasing is on, the fill area for the
faces will have some gray shades around the edges, and these will show
up on the chart as thin lines (usually not visible if you turn off
anti-aliasing). To mask this, the rendering engine can draw an outline
around each face in the same color (this usually results in cleaner
output, but it is slower and can introduce some minor visual artifacts
as well depending on the output target).public void setDrawFaceOutlines(boolean outline)
outline - the new flag value.public Range findValueRange(Values3D<? extends java.lang.Number> data)
findValueRange in interface CategoryRenderer3DfindValueRange in class AbstractCategoryRenderer3Ddata - the data (null not permitted).public void composeItem(CategoryDataset3D dataset, int series, int row, int column, World world, Dimension3D dimensions, double xOffset, double yOffset, double zOffset)
CategoryPlot3D class
while iterating over the items in the dataset.composeItem in interface CategoryRenderer3Ddataset - the dataset (null not permitted).series - the series index.row - the row index.column - the column index.world - the world (null not permitted).dimensions - the plot dimensions (null not permitted).xOffset - the x-offset.yOffset - the y-offset.zOffset - the z-offset.public boolean equals(java.lang.Object obj)
equals in class AbstractCategoryRenderer3Dobj - the object (null permitted).