java.lang.Object | ||
↳ | org.jfree.chart.annotations.AbstractXYAnnotation | |
↳ | org.jfree.chart.annotations.XYDataImageAnnotation |
An annotation that allows an image to be placed within a rectangle specified
in data coordinates on an XYPlot
. Note that this annotation
is not currently serializable, so don't use it if you plan on serializing
your chart(s).
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Creates a new annotation to be displayed within the specified rectangle.
| |||||||||||
Creates a new annotation to be displayed within the specified rectangle.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns a clone of the annotation.
| |||||||||||
Draws the annotation.
| |||||||||||
Tests this object for equality with an arbitrary object.
| |||||||||||
Returns the height (in data space) of the data rectangle into which the
image will be drawn.
| |||||||||||
Returns the image for the annotation.
| |||||||||||
Returns the flag that controls whether or not the annotation should
contribute to the autoRange for the axis it is plotted against.
| |||||||||||
Returns the width (in data space) of the data rectangle into which the
image will be drawn.
| |||||||||||
Returns the x-coordinate (in data space) for the annotation.
| |||||||||||
Returns the x-range for the annotation.
| |||||||||||
Returns the y-coordinate (in data space) for the annotation.
| |||||||||||
Returns the y-range for the annotation.
| |||||||||||
Returns a hash code for this object.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() |
Creates a new annotation to be displayed within the specified rectangle.
image | the image (null not permitted). |
---|---|
x | the x-coordinate (in data space). |
y | the y-coordinate (in data space). |
w | the image display area width. |
h | the image display area height. |
Creates a new annotation to be displayed within the specified rectangle.
image | the image (null not permitted). |
---|---|
x | the x-coordinate (in data space). |
y | the y-coordinate (in data space). |
w | the image display area width. |
h | the image display area height. |
includeInDataBounds | a flag that controls whether or not the annotation is included in the data bounds for the axis autoRange. |
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 height (in data space) of the data rectangle into which the image will be drawn.
Returns the flag that controls whether or not the annotation should contribute to the autoRange for the axis it is plotted against.
Returns the width (in data space) of the data rectangle into which the image will be drawn.
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.