public class StackedBarRenderer3D extends BarRenderer3D
CategoryPlot3D class to create
3D stacked bar charts from data in a CategoryDataset3D. The
createStackedBarChart() method in the Chart3DFactory
class will construct a chart that uses this renderer. Here is a sample:
StackedBarChart3DDemo1.java for the code to generate
the above chart).
Chart3DFactory.createStackedBarChart(String, String, CategoryDataset3D, String, String, String).
TRANSPARENT_COLOR| Constructor and Description |
|---|
StackedBarRenderer3D()
Creates a 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.
|
protected void |
drawItemLabels(World world,
CategoryDataset3D dataset,
KeyedValues3DItemKey itemKey,
double xw,
double yw,
double zw,
double basew,
boolean inverted) |
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 of values that will be required on the value axis
to see all the data from the dataset.
|
composeItem, getBarXWidth, getBarZWidth, getBase, getBaseColorSource, getTopColorSource, setBarXWidth, setBarZWidth, setBase, setBaseColorSource, setTopColorSourcegetColorSource, 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 StackedBarRenderer3D()
public Range findValueRange(Values3D<? extends java.lang.Number> data)
findValueRange in interface CategoryRenderer3DfindValueRange in class BarRenderer3Ddata - the data (null not permitted).null)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 CategoryRenderer3DcomposeItem in class BarRenderer3Ddataset - 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.protected void drawItemLabels(World world, CategoryDataset3D dataset, KeyedValues3DItemKey itemKey, double xw, double yw, double zw, double basew, boolean inverted)
drawItemLabels in class BarRenderer3Dpublic boolean equals(java.lang.Object obj)
equals in class BarRenderer3Dobj - the object (null permitted).