java.lang.Object
org.jfree.chart.entity.ChartEntity
org.jfree.chart.entity.TitleEntity
- All Implemented Interfaces:
Serializable,Cloneable,PublicCloneable
A class that captures information about a Title of a chart.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionTitleEntity(Shape area, Title title) Creates a new chart entity.TitleEntity(Shape area, Title title, String toolTipText) Creates a new chart entity.TitleEntity(Shape area, Title title, String toolTipText, String urlText) Creates a new entity. -
Method Summary
Modifier and TypeMethodDescriptionclone()Returns a clone of the entity.booleanTests the entity for equality with an arbitrary object.getTitle()Returns the title 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.ChartEntity
getArea, getImageMapAreaTag, getShapeCoords, getShapeType, getToolTipText, getURLText, setArea, setToolTipText, setURLText
-
Constructor Details
-
TitleEntity
Creates a new chart entity.- Parameters:
area- the area (nullnot permitted).title- the title (nullnot permitted).
-
TitleEntity
Creates a new chart entity.- Parameters:
area- the area (nullnot permitted).title- the title (nullnot permitted).toolTipText- the tool tip text (nullpermitted).
-
TitleEntity
Creates a new entity.- Parameters:
area- the area (nullnot permitted).title- the title (nullnot permitted).toolTipText- the tool tip text (nullpermitted).urlText- the URL text for HTML image maps (nullpermitted).
-
-
Method Details
-
getTitle
Returns the title that occupies the entity area.- Returns:
- The title (never
null).
-
toString
Returns a string representation of the chart entity, useful for debugging.- Overrides:
toStringin classChartEntity- Returns:
- A string.
-
equals
Tests the entity for equality with an arbitrary object.- Overrides:
equalsin classChartEntity- Parameters:
obj- the object to test against (nullpermitted).- Returns:
- A boolean.
-
hashCode
public int hashCode()Returns a hash code for this instance.- Overrides:
hashCodein classChartEntity- Returns:
- A hash code.
-
clone
Returns a clone of the entity.- Specified by:
clonein interfacePublicCloneable- Overrides:
clonein classChartEntity- Returns:
- A clone.
- Throws:
CloneNotSupportedException- if there is a problem cloning the entity.
-