|
JFreeChart 1.0.14-redhat-2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jfree.chart.annotations.AbstractAnnotation
org.jfree.chart.annotations.AbstractXYAnnotation
public abstract class AbstractXYAnnotation
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 void |
draw(Graphics2D g2,
XYPlot plot,
Rectangle2D dataArea,
ValueAxis domainAxis,
ValueAxis rangeAxis,
int rendererIndex,
PlotRenderingInfo info)
Draws the annotation. |
boolean |
equals(Object obj)
Tests this annotation for equality with an arbitrary object. |
String |
getToolTipText()
Returns the tool tip text for the annotation. |
String |
getURL()
Returns the URL for the annotation. |
int |
hashCode()
Returns a hash code for this instance. |
void |
setToolTipText(String text)
Sets the tool tip text for the annotation. |
void |
setURL(String url)
Sets the URL for the annotation. |
Methods inherited from class org.jfree.chart.annotations.AbstractAnnotation |
---|
addChangeListener, clone, fireAnnotationChanged, getNotify, hasListener, notifyListeners, removeChangeListener, setNotify |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.jfree.chart.annotations.Annotation |
---|
addChangeListener, removeChangeListener |
Constructor Detail |
---|
protected AbstractXYAnnotation()
Method Detail |
---|
public String getToolTipText()
ChartPanel
when the mouse pointer hovers over
the annotation.
null
).setToolTipText(String)
public void setToolTipText(String text)
text
- the tool tip text (null
permitted).getToolTipText()
public String getURL()
null
).setURL(String)
public void setURL(String url)
url
- the URL (null
permitted).getURL()
public abstract void draw(Graphics2D g2, XYPlot plot, Rectangle2D dataArea, ValueAxis domainAxis, ValueAxis rangeAxis, int rendererIndex, PlotRenderingInfo info)
draw
in interface XYAnnotation
g2
- the graphics device.plot
- the plot.dataArea
- the data area.domainAxis
- the domain axis.rangeAxis
- the range axis.rendererIndex
- the renderer index.info
- if supplied, this info object will be populated with
entity information.protected void addEntity(PlotRenderingInfo info, Shape hotspot, int rendererIndex, String toolTipText, String urlText)
XYAnnotationEntity
to
a PlotRenderingInfo
instance.
info
- the plot rendering info (null
permitted).hotspot
- the hotspot area.rendererIndex
- the renderer index.toolTipText
- the tool tip text.urlText
- the URL text.public boolean equals(Object obj)
equals
in class Object
obj
- the object (null
permitted).
public int hashCode()
hashCode
in class Object
|
JFreeChart 1.0.14-redhat-2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |