| java.lang.Object | ||
| ↳ | org.jfree.chart.annotations.AbstractXYAnnotation | |
| ↳ | org.jfree.chart.annotations.XYImageAnnotation | |
An annotation that allows an image to be placed at some location on
an XYPlot.
TODO: implement serialization properly (image is not serializable).
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Creates a new annotation to be displayed at the specified (x, y)
location.
| |||||||||||
Creates a new annotation to be displayed at the specified (x, y)
location.
| |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Returns a clone of the annotation.
| |||||||||||
Draws the annotation.
| |||||||||||
Tests this object for equality with an arbitrary object.
| |||||||||||
Returns the image for the annotation.
| |||||||||||
Returns the image anchor for the annotation.
| |||||||||||
Returns the x-coordinate (in data space) for the annotation.
| |||||||||||
Returns the y-coordinate (in data space) for the annotation.
| |||||||||||
Returns a hash code for this object.
| |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.jfree.chart.annotations.AbstractXYAnnotation
| |||||||||||
From class
java.lang.Object
| |||||||||||
From interface
org.jfree.chart.annotations.XYAnnotation
| |||||||||||
Creates a new annotation to be displayed at the specified (x, y) location.
| x | the x-coordinate (in data space). |
|---|---|
| y | the y-coordinate (in data space). |
| image | the image (null not permitted).
|
Creates a new annotation to be displayed at the specified (x, y) location.
| x | the x-coordinate (in data space). |
|---|---|
| y | the y-coordinate (in data space). |
| image | the image (null not permitted). |
| anchor | the image anchor (null not permitted). |
Returns a clone of the annotation.
| CloneNotSupportedException | if the annotation can't be cloned. |
|---|
Draws the annotation. This method is called by the drawing code in the
XYPlot class, you don't normally need to call this method
directly.
| 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. |
Tests this object for equality with an arbitrary object.
| obj | the object (null permitted). |
|---|
Returns the image anchor for the annotation.
Returns the x-coordinate (in data space) for the annotation.
Returns the y-coordinate (in data space) for the annotation.
Returns a hash code for this object.