org.jfree.chart.plot
Class PlotRenderingInfo
java.lang.Object
org.jfree.chart.plot.PlotRenderingInfo
- Cloneable, Serializable
extends java.lang.Object
implements Cloneable, Serializable
Stores information about the dimensions of a plot and its subplots.
clone
public Object clone()
throws CloneNotSupportedException
Returns a clone of this object.
equals
public boolean equals(Object obj)
Tests this instance for equality against an arbitrary object.
obj
- the object (null
permitted).
getDataArea
public Rectangle2D getDataArea()
Returns the plot's data area (in Java2D space).
- The data area (possibly
null
).
getPlotArea
public Rectangle2D getPlotArea()
Returns the plot area (in Java2D space).
- The plot area (possibly
null
).
getSubplotCount
public int getSubplotCount()
Returns the number of subplots (possibly zero).
getSubplotIndex
public int getSubplotIndex(Point2D source)
Returns the index of the subplot that contains the specified
(x, y) point (the "source" point). The source point will usually
come from a mouse click on a
ChartPanel
,
and this method is then used to determine the subplot that
contains the source point.
source
- the source point (in Java2D space).
- The subplot index (or -1 if no subplot contains the point).
setDataArea
public void setDataArea(Rectangle2D area)
Sets the data area.
area
- the data area (in Java2D space, null
permitted
but discouraged).
setPlotArea
public void setPlotArea(Rectangle2D area)
Sets the plot area.
area
- the plot area (in Java2D space, null
permitted but discouraged)