public class PlotRenderingInfo extends Object implements Cloneable, 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.
|
Object |
clone()
Returns a clone of this object.
|
boolean |
equals(Object obj)
Tests this instance for equality against an arbitrary object.
|
Rectangle2D |
getDataArea()
Returns the plot's data area (in Java2D space).
|
ChartRenderingInfo |
getOwner()
Returns the owner (as specified in the constructor).
|
Rectangle2D |
getPlotArea()
Returns the plot area (in Java2D space).
|
int |
getSubplotCount()
Returns the number of subplots (possibly zero).
|
int |
getSubplotIndex(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(Rectangle2D area)
Sets the data area.
|
void |
setPlotArea(Rectangle2D area)
Sets the plot area.
|
public PlotRenderingInfo(ChartRenderingInfo owner)
owner
- the owner (null
permitted).public ChartRenderingInfo getOwner()
null
).public Rectangle2D getPlotArea()
null
).setPlotArea(Rectangle2D)
public void setPlotArea(Rectangle2D area)
area
- the plot area (in Java2D space, null
permitted but discouraged)getPlotArea()
public Rectangle2D getDataArea()
null
).setDataArea(Rectangle2D)
public void setDataArea(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(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(Object obj)
public Object clone() throws CloneNotSupportedException
clone
in class Object
CloneNotSupportedException
- if there is a problem cloning.Jas4pp 1.5 © Java Analysis Studio for Particle Physics