- java.lang.Object
-
- org.jfree.chart.entity.ChartEntity
-
- org.jfree.chart.entity.PlotEntity
-
- All Implemented Interfaces:
Serializable,Cloneable,PublicCloneable
public class PlotEntity extends ChartEntity
A class that captures information about a plot during rendering.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description PlotEntity(Shape area, Plot plot)Creates a new plot entity.PlotEntity(Shape area, Plot plot, String toolTipText)Creates a new plot entity.PlotEntity(Shape area, Plot plot, String toolTipText, String urlText)Creates a new plot entity.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Objectclone()Returns a clone of the entity.booleanequals(Object obj)Tests the entity for equality with an arbitrary object.PlotgetPlot()Returns the plot that occupies the entity area.inthashCode()Returns a hash code for this instance.StringtoString()Returns a string representation of the plot entity, useful for debugging.-
Methods inherited from class org.jfree.chart.entity.ChartEntity
getArea, getImageMapAreaTag, getShapeCoords, getShapeType, getToolTipText, getURLText, setArea, setToolTipText, setURLText
-
-
-
-
Constructor Detail
-
PlotEntity
public PlotEntity(Shape area, Plot plot)
Creates a new plot entity.- Parameters:
area- the area (nullnot permitted).plot- the plot (nullnot permitted).
-
PlotEntity
public PlotEntity(Shape area, Plot plot, String toolTipText)
Creates a new plot entity.- Parameters:
area- the area (nullnot permitted).plot- the plot (nullnot permitted).toolTipText- the tool tip text (nullpermitted).
-
PlotEntity
public PlotEntity(Shape area, Plot plot, String toolTipText, String urlText)
Creates a new plot entity.- Parameters:
area- the area (nullnot permitted).plot- the plot (nullnot permitted).toolTipText- the tool tip text (nullpermitted).urlText- the URL text for HTML image maps (nullpermitted).
-
-
Method Detail
-
getPlot
public Plot getPlot()
Returns the plot that occupies the entity area.- Returns:
- The plot (never
null).
-
toString
public String toString()
Returns a string representation of the plot entity, useful for debugging.- Overrides:
toStringin classChartEntity- Returns:
- A string.
-
equals
public boolean equals(Object obj)
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
public Object clone() throws CloneNotSupportedException
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.
-
-