| java.lang.Object org.jfree.chart.entity.ChartEntity
All known Subclasses: org.jfree.chart.entity.XYAnnotationEntity, org.jfree.chart.entity.XYItemEntity, org.jfree.chart.entity.TickLabelEntity, org.jfree.chart.entity.LegendItemEntity, org.jfree.chart.entity.ContourEntity, org.jfree.chart.entity.CategoryItemEntity, org.jfree.chart.entity.PieSectionEntity,
ChartEntity | public class ChartEntity implements Cloneable,PublicCloneable,Serializable(Code) | | A class that captures information about some component of a chart (a bar,
line etc).
|
ChartEntity | public ChartEntity(Shape area)(Code) | | Creates a new chart entity.
Parameters: area - the area (null not permitted). |
ChartEntity | public ChartEntity(Shape area, String toolTipText)(Code) | | Creates a new chart entity.
Parameters: area - the area (null not permitted). Parameters: toolTipText - the tool tip text (null permitted). |
ChartEntity | public ChartEntity(Shape area, String toolTipText, String urlText)(Code) | | Creates a new entity.
Parameters: area - the area (null not permitted). Parameters: toolTipText - the tool tip text (null permitted). Parameters: urlText - the URL text for HTML image maps (null permitted). |
equals | public boolean equals(Object obj)(Code) | | Tests the entity for equality with an arbitrary object.
Parameters: obj - the object to test against (null permitted). A boolean. |
getArea | public Shape getArea()(Code) | | Returns the area occupied by the entity (in Java 2D space).
The area (never null ). |
getImageMapAreaTag | public String getImageMapAreaTag(ToolTipTagFragmentGenerator toolTipTagFragmentGenerator, URLTagFragmentGenerator urlTagFragmentGenerator)(Code) | | Returns an HTML image map tag for this entity. The returned fragment
should be XHTML 1.0 compliant.
Parameters: toolTipTagFragmentGenerator - a generator for the HTML fragmentthat will contain the tooltip text (null not permitted if this entity contains tooltip information). Parameters: urlTagFragmentGenerator - a generator for the HTML fragment thatwill contain the URL reference (null not permitted if this entity has a URL). The HTML tag. |
getShapeCoords | public String getShapeCoords()(Code) | | Returns the shape coordinates as a string.
The shape coordinates (never null ). |
getShapeType | public String getShapeType()(Code) | | Returns a string describing the entity area. This string is intended
for use in an AREA tag when generating an image map.
The shape type (never null ). |
getToolTipText | public String getToolTipText()(Code) | | Returns the tool tip text for the entity.
The tool tip text (possibly null ). |
getURLText | public String getURLText()(Code) | | Returns the URL text for the entity.
The URL text (possibly null ). |
setArea | public void setArea(Shape area)(Code) | | Sets the area for the entity.
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). |
setToolTipText | public void setToolTipText(String text)(Code) | | Sets the tool tip text.
Parameters: text - the text (null permitted). |
setURLText | public void setURLText(String text)(Code) | | Sets the URL text.
Parameters: text - the text (null permitted). |
toString | public String toString()(Code) | | Returns a string representation of the chart entity, useful for
debugging.
A string. |
|
|