| java.lang.Object org.jfree.chart.annotations.AbstractXYAnnotation
All known Subclasses: org.jfree.chart.annotations.XYPolygonAnnotation, org.jfree.chart.annotations.XYDrawableAnnotation, org.jfree.chart.annotations.XYTextAnnotation, org.jfree.chart.annotations.XYBoxAnnotation, org.jfree.chart.annotations.XYShapeAnnotation, org.jfree.chart.annotations.XYImageAnnotation, org.jfree.experimental.chart.annotations.XYTitleAnnotation, org.jfree.chart.annotations.XYLineAnnotation,
AbstractXYAnnotation | abstract public class AbstractXYAnnotation implements XYAnnotation(Code) | | The interface that must be supported by annotations that are to be added to
an
XYPlot .
|
Constructor Summary | |
protected | AbstractXYAnnotation() Creates a new instance that has no tool tip or URL specified. |
Method Summary | |
protected void | addEntity(PlotRenderingInfo info, Shape hotspot, int rendererIndex, String toolTipText, String urlText) A utility method for adding an
XYAnnotationEntity to
a
PlotRenderingInfo instance. | abstract public void | draw(Graphics2D g2, XYPlot plot, Rectangle2D dataArea, ValueAxis domainAxis, ValueAxis rangeAxis, int rendererIndex, PlotRenderingInfo info) Draws the annotation. | public boolean | equals(Object obj) Tests this annotation for equality with an arbitrary object.
Parameters: obj - the object (null permitted). | public String | getToolTipText() Returns the tool tip text for the annotation. | public String | getURL() Returns the URL for the annotation. | public int | hashCode() Returns a hash code for this instance. | public void | setToolTipText(String text) Sets the tool tip text for the annotation. | public void | setURL(String url) Sets the URL for the annotation. |
AbstractXYAnnotation | protected AbstractXYAnnotation()(Code) | | Creates a new instance that has no tool tip or URL specified.
|
addEntity | protected void addEntity(PlotRenderingInfo info, Shape hotspot, int rendererIndex, String toolTipText, String urlText)(Code) | | A utility method for adding an
XYAnnotationEntity to
a
PlotRenderingInfo instance.
Parameters: info - the plot rendering info (null permitted). Parameters: hotspot - the hotspot area. Parameters: rendererIndex - the renderer index. Parameters: toolTipText - the tool tip text. Parameters: urlText - the URL text. |
draw | abstract public void draw(Graphics2D g2, XYPlot plot, Rectangle2D dataArea, ValueAxis domainAxis, ValueAxis rangeAxis, int rendererIndex, PlotRenderingInfo info)(Code) | | Draws the annotation.
Parameters: g2 - the graphics device. Parameters: plot - the plot. Parameters: dataArea - the data area. Parameters: domainAxis - the domain axis. Parameters: rangeAxis - the range axis. Parameters: rendererIndex - the renderer index. Parameters: info - if supplied, this info object will be populated withentity information. |
equals | public boolean equals(Object obj)(Code) | | Tests this annotation for equality with an arbitrary object.
Parameters: obj - the object (null permitted). A boolean. |
hashCode | public int hashCode()(Code) | | Returns a hash code for this instance.
A hash code. |
|
|