|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jfree.chart.ChartRenderingInfo
A structure for storing rendering information from one call to the JFreeChart.draw() method.
An instance of the JFreeChart
class can draw itself within an arbitrary
rectangle on any Graphics2D. It is assumed that client code will sometimes
render the same chart in more than one view, so the JFreeChart
instance does
not retain any information about its rendered dimensions. This information
can be useful sometimes, so you have the option to collect the information
at each call to JFreeChart.draw(...)
, by passing an instance of this
ChartRenderingInfo
class.
Constructor Summary | |
ChartRenderingInfo()
Constructs a new ChartRenderingInfo structure that can be used to collect information about the dimensions of a rendered chart. |
|
ChartRenderingInfo(EntityCollection entities)
Constructs a new ChartRenderingInfo structure. |
Method Summary | |
void |
clear()
Clears the information recorded by this object. |
java.lang.Object |
clone()
Returns a clone of this object. |
boolean |
equals(java.lang.Object obj)
Tests this object for equality with an arbitrary object. |
java.awt.geom.Rectangle2D |
getChartArea()
Returns the area in which the chart was drawn. |
EntityCollection |
getEntityCollection()
Returns the collection of entities maintained by this instance. |
java.awt.geom.Rectangle2D |
getPlotArea()
Returns the area in which the plot (and axes, if any) were drawn. |
PlotRenderingInfo |
getPlotInfo()
Returns the rendering info for the chart's plot. |
void |
setChartArea(java.awt.geom.Rectangle2D area)
Sets the area in which the chart was drawn. |
void |
setEntityCollection(EntityCollection entities)
Sets the entity collection. |
void |
setPlotArea(java.awt.geom.Rectangle2D area)
Sets the area in which the plot and axes were drawn. |
Methods inherited from class java.lang.Object |
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ChartRenderingInfo()
public ChartRenderingInfo(EntityCollection entities)
If an entity collection is supplied, it will be populated with information about the entities in a chart. If it is null, no entity information (including tool tips) will be collected.
entities
- an entity collection (null permitted).Method Detail |
public java.awt.geom.Rectangle2D getChartArea()
public void setChartArea(java.awt.geom.Rectangle2D area)
area
- the chart area.public java.awt.geom.Rectangle2D getPlotArea()
public void setPlotArea(java.awt.geom.Rectangle2D area)
area
- the plot area.public EntityCollection getEntityCollection()
null
.public void setEntityCollection(EntityCollection entities)
entities
- the entity collection (null
permitted).public void clear()
public PlotRenderingInfo getPlotInfo()
public boolean equals(java.lang.Object obj)
obj
- the object to test against (null
permitted).
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
java.lang.CloneNotSupportedException
- if the object cannot be cloned.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |