public class PlotRenderingInfo extends java.lang.Object implements java.lang.Cloneable, java.io.Serializable
Constructor and Description |
---|
PlotRenderingInfo(ChartRenderingInfo owner)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
void |
addSubplotInfo(PlotRenderingInfo info)
Adds the info for a subplot.
|
java.lang.Object |
clone()
Returns a clone of this object.
|
boolean |
equals(java.lang.Object obj)
Tests this instance for equality against an arbitrary object.
|
java.awt.geom.Rectangle2D |
getDataArea()
Returns the plot's data area (in Java2D space).
|
ChartRenderingInfo |
getOwner()
Returns the owner (as specified in the constructor).
|
java.awt.geom.Rectangle2D |
getPlotArea()
Returns the plot area (in Java2D space).
|
int |
getSubplotCount()
Returns the number of subplots (possibly zero).
|
int |
getSubplotIndex(java.awt.geom.Point2D source)
Returns the index of the subplot that contains the specified
(x, y) point (the "source" point).
|
PlotRenderingInfo |
getSubplotInfo(int index)
Returns the info for a subplot.
|
void |
setDataArea(java.awt.geom.Rectangle2D area)
Sets the data area.
|
void |
setPlotArea(java.awt.geom.Rectangle2D area)
Sets the plot area.
|
public PlotRenderingInfo(ChartRenderingInfo owner)
owner
- the owner (null
permitted).public ChartRenderingInfo getOwner()
null
).public java.awt.geom.Rectangle2D getPlotArea()
null
).setPlotArea(Rectangle2D)
public void setPlotArea(java.awt.geom.Rectangle2D area)
area
- the plot area (in Java2D space, null
permitted but discouraged)getPlotArea()
public java.awt.geom.Rectangle2D getDataArea()
null
).setDataArea(Rectangle2D)
public void setDataArea(java.awt.geom.Rectangle2D area)
area
- the data area (in Java2D space, null
permitted
but discouraged).getDataArea()
public int getSubplotCount()
public void addSubplotInfo(PlotRenderingInfo info)
info
- the subplot info.getSubplotInfo(int)
public PlotRenderingInfo getSubplotInfo(int index)
index
- the subplot index.addSubplotInfo(PlotRenderingInfo)
public int getSubplotIndex(java.awt.geom.Point2D source)
ChartPanel
,
and this method is then used to determine the subplot that
contains the source point.source
- the source point (in Java2D space, null
not
permitted).source
).public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
- the object (null
permitted).public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in class java.lang.Object
java.lang.CloneNotSupportedException
- if there is a problem cloning.