public abstract class AbstractPlot3D extends java.lang.Object implements Plot3D, Dataset3DChangeListener, java.io.Serializable
Plot3D.
Chart3D instance that owns
the plot will be automatically registered as a listener so that it receives
notification whenever the plot (or some other object managed by the plot)
changes.
Plot3DChangeEvent to all *its* listeners. If the plot
has axes, then the same approach is used to listen for changes to the axes.
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
autoAdjustDimensions
A flag that controls whether or not the plot dimensions (in the 3D
model) are adjusted automatically.
|
protected Dimension3D |
dimensions
The plot dimensions in 3D space.
|
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractPlot3D()
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addChangeListener(Plot3DChangeListener listener)
Registers an object for notification of changes to the plot.
|
void |
datasetChanged(Dataset3DChangeEvent event)
Receives notification of a dataset change, and passes this event on
wrapped in a
Plot3DChangeEvent. |
boolean |
equals(java.lang.Object obj)
Tests this plot for equality with an arbitrary object.
|
protected void |
fireChangeEvent(boolean requiresWorldUpdate)
Sends a
Plot3DChangeEvent to all registered listeners. |
abstract java.lang.String |
generateToolTipText(ItemKey itemKey)
Returns the tool tip text for the specified data item, or
null if no tool tip is required. |
Chart3D |
getChart()
Returns the chart that the plot is assigned to, if any.
|
Dimension3D |
getDimensions()
Returns the dimensions of the box in 3D space into which the plot will
be composed.
|
boolean |
isAutoAdjustDimensions()
Returns the flag that controls whether or not the plot dimensions are
auto-adjusted when the dataset changes.
|
boolean |
isNotify()
Returns a flag that controls whether or not change events are sent to
registered listeners.
|
void |
notifyListeners(Plot3DChangeEvent event)
Notifies all registered listeners that the plot has been modified.
|
abstract void |
receive(ChartElementVisitor visitor)
Accepts a
ChartElementVisitor. |
void |
removeChangeListener(Plot3DChangeListener listener)
Unregisters an object for notification of changes to the plot.
|
void |
setChart(Chart3D chart)
Sets the chart that the plot is assigned to.
|
void |
setNotify(boolean notify)
Sets a flag that controls whether or not listeners receive
Plot3DChangeEvent notifications. |
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcompose, getLegendInfoprotected Dimension3D dimensions
protected boolean autoAdjustDimensions
protected AbstractPlot3D()
public Dimension3D getDimensions()
getDimensions in interface Plot3Dnull).isAutoAdjustDimensions()public boolean isAutoAdjustDimensions()
CategoryPlot3D and XYZPlot)
while others will always auto-adjust the dimensions (PiePlot3D).public abstract java.lang.String generateToolTipText(ItemKey itemKey)
null if no tool tip is required.generateToolTipText in interface Plot3DitemKey - the item key (null not permitted).null).public abstract void receive(ChartElementVisitor visitor)
ChartElementVisitor. This is part of
a general purpose mechanism for traversing the chart
structure, you won't normally call this method directly.receive in interface ChartElementvisitor - the visitor (never null).public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectobj - the object (null permitted).public boolean isNotify()
setNotify(boolean)public void setNotify(boolean notify)
Plot3DChangeEvent notifications.notify - a boolean.isNotify()public void addChangeListener(Plot3DChangeListener listener)
addChangeListener in interface Plot3Dlistener - the object to be registered.removeChangeListener(Plot3DChangeListener)public void removeChangeListener(Plot3DChangeListener listener)
removeChangeListener in interface Plot3Dlistener - the object to be unregistered.addChangeListener(Plot3DChangeListener)public void notifyListeners(Plot3DChangeEvent event)
event - information about the change event.protected void fireChangeEvent(boolean requiresWorldUpdate)
Plot3DChangeEvent to all registered listeners.requiresWorldUpdate - requires the world to be updated?public void datasetChanged(Dataset3DChangeEvent event)
Plot3DChangeEvent.datasetChanged in interface Dataset3DChangeListenerevent - the dataset change event.