org.jfree.chart.entity
public class ChartEntity extends Object implements Cloneable, PublicCloneable, Serializable
Constructor Summary | |
---|---|
ChartEntity(Shape area)
Creates a new chart entity.
| |
ChartEntity(Shape area, String toolTipText)
Creates a new chart entity.
| |
ChartEntity(Shape area, String toolTipText, String urlText)
Creates a new entity.
|
Method Summary | |
---|---|
Object | clone()
Returns a clone of the entity.
|
boolean | equals(Object obj)
Tests the entity for equality with an arbitrary object.
|
Shape | getArea()
Returns the area occupied by the entity (in Java 2D space).
|
String | getImageMapAreaTag(ToolTipTagFragmentGenerator toolTipTagFragmentGenerator, URLTagFragmentGenerator urlTagFragmentGenerator)
Returns an HTML image map tag for this entity. |
String | getShapeCoords()
Returns the shape coordinates as a string.
|
String | getShapeType()
Returns a string describing the entity area. |
String | getToolTipText()
Returns the tool tip text for the entity. |
String | getURLText()
Returns the URL text for the entity. |
int | hashCode()
Returns a hash code for this instance.
|
void | setArea(Shape area)
Sets the area for the entity.
|
void | setToolTipText(String text)
Sets the tool tip text.
|
void | setURLText(String text)
Sets the URL text.
|
String | toString()
Returns a string representation of the chart entity, useful for
debugging.
|
Parameters: area the area (null
not permitted).
Parameters: area the area (null
not permitted). toolTipText the tool tip text (null
permitted).
Parameters: area the area (null
not permitted). toolTipText the tool tip text (null
permitted). urlText the URL text for HTML image maps (null
permitted).
Returns: A clone.
Throws: CloneNotSupportedException if there is a problem cloning the entity.
Parameters: obj the object to test against (null
permitted).
Returns: A boolean.
Returns: The area (never null
).
XHTML 1.0
compliant.
Parameters: toolTipTagFragmentGenerator a generator for the HTML fragment
that will contain the tooltip text (null
not permitted
if this entity contains tooltip information). urlTagFragmentGenerator a generator for the HTML fragment that
will contain the URL reference (null
not permitted if
this entity has a URL).
Returns: The HTML tag.
Returns: The shape coordinates (never null
).
Returns: The shape type (never null
).
Returns: The tool tip text (possibly null
).
Returns: The URL text (possibly null
).
Returns: A hash code.
This class conveys information about chart entities back to a client. Setting this area doesn't change the entity (which has already been drawn).
Parameters: area the area (null
not permitted).
Parameters: text the text (null
permitted).
Parameters: text the text (null
permitted).
Returns: A string.