public class ChartEntity extends Object implements Cloneable, org.jfree.util.PublicCloneable, Serializable
Constructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
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.
|
public ChartEntity(Shape area)
area
- the area (null
not permitted).public ChartEntity(Shape area, String toolTipText)
area
- the area (null
not permitted).toolTipText
- the tool tip text (null
permitted).public Shape getArea()
null
).public void setArea(Shape area)
This class conveys information about chart entities back to a client. Setting this area doesn't change the entity (which has already been drawn).
area
- the area (null
not permitted).public String getToolTipText()
null
).public void setToolTipText(String text)
text
- the text (null
permitted).public String getURLText()
null
).public void setURLText(String text)
text
- the text (null
permitted).public String getShapeType()
null
).public String getShapeCoords()
null
).public String getImageMapAreaTag(ToolTipTagFragmentGenerator toolTipTagFragmentGenerator, URLTagFragmentGenerator urlTagFragmentGenerator)
XHTML 1.0
compliant.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).public String toString()
public boolean equals(Object obj)
public int hashCode()
public Object clone() throws CloneNotSupportedException
clone
in interface org.jfree.util.PublicCloneable
clone
in class Object
CloneNotSupportedException
- if there is a problem cloning the
entity.Jas4pp 1.5 © Java Analysis Studio for Particle Physics