public class BarXYZRenderer extends AbstractXYZRenderer implements XYZRenderer, java.io.Serializable
XYZPlot using data from an
XYZDataset. Here is a sample:
XYZBarChart3DDemo1.java for the code to generate
the above chart).
TRANSPARENT_COLOR| Constructor and Description |
|---|
BarXYZRenderer()
Creates a new default instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
composeItem(XYZDataset dataset,
int series,
int item,
World world,
Dimension3D dimensions,
double xOffset,
double yOffset,
double zOffset)
Adds a single bar representing one item from the dataset.
|
boolean |
equals(java.lang.Object obj)
Tests this renderer for equality with an arbitrary object.
|
Range |
findXRange(XYZDataset dataset)
Returns the range that needs to be set on the x-axis in order for this
renderer to be able to display all the data in the supplied dataset.
|
Range |
findYRange(XYZDataset dataset)
Returns the range to use for the y-axis to ensure that all data values
are visible on the chart.
|
Range |
findZRange(XYZDataset dataset)
Returns the range to use for the z-axis to ensure that all data values
are visible on the chart.
|
double |
getBarXWidth()
Returns the width of the bars in the direction of the x-axis, in the
units of the x-axis.
|
double |
getBarZWidth()
Returns the width of the bars in the direction of the z-axis, in the
units of the z-axis.
|
double |
getBase()
Returns the value for the base of the bars.
|
XYZColorSource |
getBaseColorSource()
Returns the object used to fetch the color for the base of bars
where the base of the bar is "cropped" (on account of the base value
falling outside of the bounds of the y-axis).
|
XYZColorSource |
getTopColorSource()
Returns the object used to fetch the color for the top of bars
where the top of the bar is "cropped" (on account of the data value
falling outside of the bounds of the y-axis).
|
void |
setBarXWidth(double width)
Sets the width of the bars in the direction of the x-axis and sends a
Renderer3DChangeEvent to all registered listeners. |
void |
setBarZWidth(double width)
Sets the width of the bars in the direction of the z-axis and sends a
Renderer3DChangeEvent to all registered listeners. |
void |
setBase(double base)
Sets the base value for the bars and sends a
Renderer3DChangeEvent to all registered listeners. |
void |
setBaseColorSource(XYZColorSource source)
Sets the object that determines the color to use for the base of bars
where the base value falls outside the axis range, and sends a
Renderer3DChangeEvent to all registered listeners. |
void |
setTopColorSource(XYZColorSource source)
Sets the object used to fetch the color for the top of bars where the
top of the bar is "cropped", and sends a
Renderer3DChangeEvent
to all registered listeners. |
composeAll, getColorSource, getComposeType, getItemLabelGenerator, getPlot, setColors, setColorSource, setItemLabelGenerator, setPlotaddChangeListener, fireChangeEvent, getItemLabelBackgroundColor, getItemLabelColor, getItemLabelFont, getItemLabelPositioning, isNotify, notifyListeners, receive, removeChangeListener, setItemLabelBackgroundColor, setItemLabelColor, setItemLabelFont, setItemLabelPositioning, setNotifyclone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcomposeAll, getColorSource, getComposeType, getPlot, setColors, setColorSource, setPlotaddChangeListener, removeChangeListenerreceivepublic BarXYZRenderer()
public double getBase()
0.0.public void setBase(double base)
Renderer3DChangeEvent to all registered listeners.base - the base.public double getBarXWidth()
0.8.public void setBarXWidth(double width)
Renderer3DChangeEvent to all registered listeners.width - the width.public double getBarZWidth()
0.8.public void setBarZWidth(double width)
Renderer3DChangeEvent to all registered listeners.width - the width.public XYZColorSource getBaseColorSource()
null, the regular series color
will be used for the top of the bars.null).public void setBaseColorSource(XYZColorSource source)
Renderer3DChangeEvent to all registered listeners. If you set
this to null, the regular series color will be used to draw
the base of the bar, but it will be harder for the end-user to know that
only a section of the bar is visible in the chart. Note that the
default base paint source returns Color.WHITE always.source - the source (null permitted).getBaseColorSource(),
getTopColorSource()public XYZColorSource getTopColorSource()
null, the regular series color
will be used for the top of the bars.null).public void setTopColorSource(XYZColorSource source)
Renderer3DChangeEvent
to all registered listeners.source - the source (null permitted).getTopColorSource(),
getBaseColorSource()public Range findXRange(XYZDataset dataset)
findXRange in interface XYZRendererfindXRange in class AbstractXYZRendererdataset - the dataset (null not permitted).null if there is no data in the dataset).public Range findYRange(XYZDataset dataset)
findYRange in interface XYZRendererfindYRange in class AbstractXYZRendererdataset - the dataset (null not permitted).null when there is no data).public Range findZRange(XYZDataset dataset)
findZRange in interface XYZRendererfindZRange in class AbstractXYZRendererdataset - the dataset (null not permitted).null when there is no data).public void composeItem(XYZDataset dataset, int series, int item, World world, Dimension3D dimensions, double xOffset, double yOffset, double zOffset)
composeItem in interface XYZRendererdataset - the dataset.series - the series index.item - the item index.world - the world used to model the 3D chart.dimensions - the plot dimensions in 3D.xOffset - the x-offset.yOffset - the y-offset.zOffset - the z-offset.public boolean equals(java.lang.Object obj)
equals in class AbstractXYZRendererobj - the object (null permitted).