public class AbstractXYZRenderer extends AbstractRenderer3D
XYZRenderer
subclasses.TRANSPARENT_COLOR| Modifier | Constructor and Description |
|---|---|
protected |
AbstractXYZRenderer()
Creates a new default instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
composeAll(XYZPlot plot,
World world,
Dimension3D dimensions,
double xOffset,
double yOffset,
double zOffset)
Adds objects to the
world to represent all the data items
that this renderer is responsible for. |
boolean |
equals(java.lang.Object obj)
Tests this renderer for equality with an arbitrary object.
|
Range |
findXRange(XYZDataset dataset)
Returns the range that is required on the x-axis for this renderer
to display all the items in the specified dataset.
|
Range |
findYRange(XYZDataset dataset)
Returns the range that is required on the y-axis for this renderer
to display all the items in the specified dataset.
|
Range |
findZRange(XYZDataset dataset)
Returns the range that is required on the z-axis for this renderer
to display all the items in the specified dataset.
|
XYZColorSource |
getColorSource()
Returns the object that provides the color instances for items drawn
by the renderer.
|
ComposeType |
getComposeType()
Returns the type of composition performed by this renderer.
|
XYZItemLabelGenerator |
getItemLabelGenerator()
Returns the item label generator for the renderer.
|
XYZPlot |
getPlot()
Returns the plot that the renderer is assigned to, if any.
|
void |
setColors(java.awt.Color... colors)
Sets a new color source for the renderer using the specified colors and
sends a
Renderer3DChangeEvent to all registered listeners. |
void |
setColorSource(XYZColorSource colorSource)
Sets the color source and sends a
Renderer3DChangeEvent to all
registered listeners. |
void |
setItemLabelGenerator(XYZItemLabelGenerator generator)
Sets the item label generator and sends a change event to all registered
listeners.
|
void |
setPlot(XYZPlot plot)
Sets the plot that the renderer is assigned to.
|
addChangeListener, fireChangeEvent, getItemLabelBackgroundColor, getItemLabelColor, getItemLabelFont, getItemLabelPositioning, isNotify, notifyListeners, receive, removeChangeListener, setItemLabelBackgroundColor, setItemLabelColor, setItemLabelFont, setItemLabelPositioning, setNotifyprotected AbstractXYZRenderer()
public XYZPlot getPlot()
null).public void setPlot(XYZPlot plot)
plot - the plot (null permitted).public XYZItemLabelGenerator getItemLabelGenerator()
null. Not all subclasses will use this generator
(for example, the SurfaceRenderer does not display item labels).null).public void setItemLabelGenerator(XYZItemLabelGenerator generator)
null in which case no
item labels will be generated.generator - the new generator (null permitted).public ComposeType getComposeType()
PER_ITEM which means the plot will ask the renderer
to compose one data item at a time into the 3D model. Some renderers
will override this method to return ALL, which means the
renderer will compose all of the data items in one go (the plot calls
the composeAll(XYZPlot, World, Dimension3D, double, double, double)
method to trigger this).null).public void composeAll(XYZPlot plot, World world, Dimension3D dimensions, double xOffset, double yOffset, double zOffset)
world to represent all the data items
that this renderer is responsible for. This method is only called for
renderers that return ComposeType.ALL from the
getComposeType() method.plot - the plot (not null).world - the 3D model (not null).dimensions - the dimensions of the plot (not null).xOffset - the x-offset.yOffset - the y-offset.zOffset - the z-offset.public XYZColorSource getColorSource()
null).public void setColorSource(XYZColorSource colorSource)
Renderer3DChangeEvent to all
registered listeners.colorSource - the color source (null not permitted).public void setColors(java.awt.Color... colors)
Renderer3DChangeEvent to all registered listeners. This
is a convenience method that is equivalent to
setColorSource(new StandardXYZColorSource(colors)).colors - one or more colors (null not permitted).public Range findXRange(XYZDataset dataset)
dataset - the dataset (null not permitted).public Range findYRange(XYZDataset dataset)
dataset - the dataset (null not permitted).public Range findZRange(XYZDataset dataset)
dataset - the dataset (null not permitted).public boolean equals(java.lang.Object obj)
equals in class AbstractRenderer3Dobj - the object (null permitted).