java.lang.Object
org.jfree.chart.entity.ChartEntity
org.jfree.chart.entity.JFreeChartEntity
- All Implemented Interfaces:
- Serializable,- Cloneable,- PublicCloneable
A class that captures information about an entire chart.
- See Also:
- 
Constructor SummaryConstructorsConstructorDescriptionJFreeChartEntity(Shape area, JFreeChart chart) Creates a new chart entity.JFreeChartEntity(Shape area, JFreeChart chart, String toolTipText) Creates a new chart entity.JFreeChartEntity(Shape area, JFreeChart chart, String toolTipText, String urlText) Creates a new chart entity.
- 
Method SummaryModifier and TypeMethodDescriptionclone()Returns a clone of the entity.booleanTests the entity for equality with an arbitrary object.getChart()Returns the chart that occupies the entity area.inthashCode()Returns a hash code for this instance.toString()Returns a string representation of the chart entity, useful for debugging.Methods inherited from class org.jfree.chart.entity.ChartEntitygetArea, getImageMapAreaTag, getShapeCoords, getShapeType, getToolTipText, getURLText, setArea, setToolTipText, setURLText
- 
Constructor Details- 
JFreeChartEntityCreates a new chart entity.- Parameters:
- area- the area (- nullnot permitted).
- chart- the chart (- nullnot permitted).
 
- 
JFreeChartEntityCreates a new chart entity.- Parameters:
- area- the area (- nullnot permitted).
- chart- the chart (- nullnot permitted).
- toolTipText- the tool tip text (- nullpermitted).
 
- 
JFreeChartEntityCreates a new chart entity.- Parameters:
- area- the area (- nullnot permitted).
- chart- the chart (- nullnot permitted).
- toolTipText- the tool tip text (- nullpermitted).
- urlText- the URL text for HTML image maps (- nullpermitted).
 
 
- 
- 
Method Details- 
getChartReturns the chart that occupies the entity area.- Returns:
- The chart (never null).
 
- 
toStringReturns a string representation of the chart entity, useful for debugging.- Overrides:
- toStringin class- ChartEntity
- Returns:
- A string.
 
- 
equalsTests the entity for equality with an arbitrary object.- Overrides:
- equalsin class- ChartEntity
- Parameters:
- obj- the object to test against (- nullpermitted).
- Returns:
- A boolean.
 
- 
hashCodepublic int hashCode()Returns a hash code for this instance.- Overrides:
- hashCodein class- ChartEntity
- Returns:
- A hash code.
 
- 
cloneReturns a clone of the entity.- Specified by:
- clonein interface- PublicCloneable
- Overrides:
- clonein class- ChartEntity
- Returns:
- A clone.
- Throws:
- CloneNotSupportedException- if there is a problem cloning the entity.
 
 
-