public class XYZPlot extends AbstractPlot3D implements Dataset3DChangeListener, Axis3DChangeListener, Renderer3DChangeListener, java.io.Serializable
XYZDataset.
autoAdjustDimensions, dimensions| Constructor and Description |
|---|
XYZPlot(XYZDataset dataset,
XYZRenderer renderer,
ValueAxis3D xAxis,
ValueAxis3D yAxis,
ValueAxis3D zAxis)
Creates a new plot with the specified axes.
|
| Modifier and Type | Method and Description |
|---|---|
void |
axisChanged(Axis3DChangeEvent event)
Receives notification that one of the plot's axes has changed, and
responds by passing on a
Plot3DChangeEvent to the plot's
registered listeners (with the default set-up, this notifies the
chart). |
void |
compose(World world,
double xOffset,
double yOffset,
double zOffset)
Adds 3D objects representing the current data for the plot to the
specified world.
|
void |
datasetChanged(Dataset3DChangeEvent event)
Receives notification that the plot's dataset has changed, and
responds by passing on a
Plot3DChangeEvent to the plot's
registered listeners (with the default set-up, this notifies the
chart). |
boolean |
equals(java.lang.Object obj)
Tests this plot instance for equality with an arbitrary object.
|
java.lang.String |
generateToolTipText(ItemKey itemKey)
Returns the tool tip text for the specified data item, or
null if no tool tip is required. |
XYZDataset |
getDataset()
Returns the dataset for the plot.
|
java.awt.Paint |
getGridlinePaintX()
Returns the paint used to draw the gridlines for the x-axis.
|
java.awt.Paint |
getGridlinePaintY()
Returns the paint used to draw the gridlines for the y-axis.
|
java.awt.Paint |
getGridlinePaintZ()
Returns the paint used to draw the gridlines for the z-axis.
|
java.awt.Stroke |
getGridlineStrokeX()
Returns the stroke used to draw the gridlines for the x-axis.
|
java.awt.Stroke |
getGridlineStrokeY()
Returns the stroke used to draw the gridlines for the y-axis.
|
java.awt.Stroke |
getGridlineStrokeZ()
Returns the stroke used to draw the gridlines for the z-axis.
|
java.util.List<LegendItemInfo> |
getLegendInfo()
Returns a list containing legend item info, typically one item for
each series in the chart.
|
XYZLabelGenerator |
getLegendLabelGenerator()
Returns the legend label generator.
|
XYZRenderer |
getRenderer()
Returns the renderer for the plot.
|
ValueAxis3D |
getXAxis()
Returns the x-axis.
|
ValueAxis3D |
getYAxis()
Returns the y-axis.
|
ValueAxis3D |
getZAxis()
Returns the z-axis.
|
boolean |
isGridlinesVisibleX()
Returns the flag that controls whether or not gridlines are shown for
the x-axis.
|
boolean |
isGridlinesVisibleY()
Returns the flag that controls whether or not gridlines are shown for
the y-axis.
|
boolean |
isGridlinesVisibleZ()
Returns the flag that controls whether or not gridlines are shown for
the z-axis.
|
void |
receive(ChartElementVisitor visitor)
Receives a visitor.
|
void |
rendererChanged(Renderer3DChangeEvent event)
Receives notification that the plot's renderer has changed, and
responds by passing on a
Plot3DChangeEvent to the plot's
registered listeners (with the default set-up, this notifies the
chart). |
void |
setDataset(XYZDataset dataset)
Sets the dataset and sends a change event notification to all registered
listeners.
|
void |
setDimensions(Dimension3D dim)
Sets the dimensions for the plot and notifies registered listeners that
the plot dimensions have been changed.
|
void |
setGridlinePaintX(java.awt.Paint paint)
Sets the paint used to draw the gridlines for the x-axis, and sends
a
Plot3DChangeEvent to all registered listeners. |
void |
setGridlinePaintY(java.awt.Paint paint)
Sets the paint used to draw the gridlines for the y-axis, and sends
a
Plot3DChangeEvent to all registered listeners. |
void |
setGridlinePaintZ(java.awt.Paint paint)
Sets the paint used to draw the gridlines for the z-axis, and sends
a
Plot3DChangeEvent to all registered listeners. |
void |
setGridlineStrokeX(java.awt.Stroke stroke)
Sets the stroke used to draw the gridlines for the x-axis, and sends
a
Plot3DChangeEvent to all registered listeners. |
void |
setGridlineStrokeY(java.awt.Stroke stroke)
Sets the stroke used to draw the gridlines for the y-axis, and sends
a
Plot3DChangeEvent to all registered listeners. |
void |
setGridlineStrokeZ(java.awt.Stroke stroke)
Sets the stroke used to draw the gridlines for the z-axis, and sends
a
Plot3DChangeEvent to all registered listeners. |
void |
setGridlinesVisibleX(boolean visible)
Sets the flag that controls whether or not gridlines are shown for the
x-axis and sends a
Plot3DChangeEvent to all registered
listeners. |
void |
setGridlinesVisibleY(boolean visible)
Sets the flag that controls whether or not gridlines are shown for the
y-axis and sends a
Plot3DChangeEvent to all registered
listeners. |
void |
setGridlinesVisibleZ(boolean visible)
Sets the flag that controls whether or not gridlines are shown for the
z-axis and sends a
Plot3DChangeEvent to all registered
listeners. |
void |
setLegendLabelGenerator(XYZLabelGenerator generator)
Sets the legend label generator and sends a
Plot3DChangeEvent
to all registered listeners. |
void |
setRenderer(XYZRenderer renderer)
Sets the renderer for the plot and sends a
Plot3DChangeEvent
to all registered listeners. |
void |
setXAxis(ValueAxis3D xAxis)
Sets the x-axis and sends a
Plot3DChangeEvent to all registered
listeners. |
void |
setYAxis(ValueAxis3D yAxis)
Sets the y-axis and sends a
Plot3DChangeEvent to all registered
listeners. |
void |
setZAxis(ValueAxis3D zAxis)
Sets the z-axis and sends a
Plot3DChangeEvent to all registered
listeners. |
addChangeListener, fireChangeEvent, getChart, getDimensions, isAutoAdjustDimensions, isNotify, notifyListeners, removeChangeListener, setChart, setNotifypublic XYZPlot(XYZDataset dataset, XYZRenderer renderer, ValueAxis3D xAxis, ValueAxis3D yAxis, ValueAxis3D zAxis)
dataset - the dataset (null not permitted).renderer - the renderer (null not permitted).xAxis - the x-axis (null not permitted).yAxis - the y-axis (null not permitted).zAxis - the z-axis (null not permitted).public void setDimensions(Dimension3D dim)
dim - the new dimensions (null not permitted).public XYZDataset getDataset()
null).public void setDataset(XYZDataset dataset)
dataset - the new dataset (null not permitted).public ValueAxis3D getXAxis()
null).public void setXAxis(ValueAxis3D xAxis)
Plot3DChangeEvent to all registered
listeners.xAxis - the x-axis (null not permitted).public ValueAxis3D getYAxis()
null).public void setYAxis(ValueAxis3D yAxis)
Plot3DChangeEvent to all registered
listeners.yAxis - the y-axis (null not permitted).public ValueAxis3D getZAxis()
null).public void setZAxis(ValueAxis3D zAxis)
Plot3DChangeEvent to all registered
listeners.zAxis - the z-axis (null not permitted).public XYZRenderer getRenderer()
null).public void setRenderer(XYZRenderer renderer)
Plot3DChangeEvent
to all registered listeners.renderer - the renderer (null not permitted).public boolean isGridlinesVisibleX()
public void setGridlinesVisibleX(boolean visible)
Plot3DChangeEvent to all registered
listeners.visible - the new flag value.public java.awt.Paint getGridlinePaintX()
null not permitted).public void setGridlinePaintX(java.awt.Paint paint)
Plot3DChangeEvent to all registered listeners.paint - the paint (null not permitted).public java.awt.Stroke getGridlineStrokeX()
null not permitted).public void setGridlineStrokeX(java.awt.Stroke stroke)
Plot3DChangeEvent to all registered listeners.stroke - the stroke (null not permitted).public boolean isGridlinesVisibleY()
public void setGridlinesVisibleY(boolean visible)
Plot3DChangeEvent to all registered
listeners.visible - the new flag value.public java.awt.Paint getGridlinePaintY()
null not permitted).public void setGridlinePaintY(java.awt.Paint paint)
Plot3DChangeEvent to all registered listeners.paint - the paint (null not permitted).public java.awt.Stroke getGridlineStrokeY()
null not permitted).public void setGridlineStrokeY(java.awt.Stroke stroke)
Plot3DChangeEvent to all registered listeners.stroke - the stroke (null not permitted).public boolean isGridlinesVisibleZ()
public void setGridlinesVisibleZ(boolean visible)
Plot3DChangeEvent to all registered
listeners.visible - the new flag value.public java.awt.Paint getGridlinePaintZ()
null not permitted).public void setGridlinePaintZ(java.awt.Paint paint)
Plot3DChangeEvent to all registered listeners.paint - the paint (null not permitted).public java.awt.Stroke getGridlineStrokeZ()
null not permitted).public void setGridlineStrokeZ(java.awt.Stroke stroke)
Plot3DChangeEvent to all registered listeners.stroke - the stroke (null not permitted).public XYZLabelGenerator getLegendLabelGenerator()
StandardXYZLabelGenerator.null).public void setLegendLabelGenerator(XYZLabelGenerator generator)
Plot3DChangeEvent
to all registered listeners.generator - the generator (null not permitted).public java.util.List<LegendItemInfo> getLegendInfo()
getLegendInfo in interface Plot3Dpublic void compose(World world, double xOffset, double yOffset, double zOffset)
public java.lang.String generateToolTipText(ItemKey itemKey)
AbstractPlot3Dnull if no tool tip is required.generateToolTipText in interface Plot3DgenerateToolTipText in class AbstractPlot3DitemKey - the item key (null not permitted).null).public void receive(ChartElementVisitor visitor)
receive in interface ChartElementreceive in class AbstractPlot3Dvisitor - the visitor (null not permitted).public boolean equals(java.lang.Object obj)
equals in class AbstractPlot3Dobj - the object (null permitted).public void axisChanged(Axis3DChangeEvent event)
Plot3DChangeEvent to the plot's
registered listeners (with the default set-up, this notifies the
chart).axisChanged in interface Axis3DChangeListenerevent - the event.public void rendererChanged(Renderer3DChangeEvent event)
Plot3DChangeEvent to the plot's
registered listeners (with the default set-up, this notifies the
chart).rendererChanged in interface Renderer3DChangeListenerevent - the event.public void datasetChanged(Dataset3DChangeEvent event)
Plot3DChangeEvent to the plot's
registered listeners (with the default set-up, this notifies the
chart).datasetChanged in interface Dataset3DChangeListenerdatasetChanged in class AbstractPlot3Devent - the event.