| java.lang.Object | ||
| ↳ | org.jfree.chart.annotations.AbstractXYAnnotation | |
| ↳ | org.jfree.chart.annotations.XYTextAnnotation | |
Known Direct Subclasses
|
A text annotation that can be placed at a particular (x, y) location on an
XYPlot.
| Constants | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| double | DEFAULT_ROTATION_ANGLE | The default rotation angle. | |||||||||
| Fields | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| DEFAULT_FONT | The default font. | ||||||||||
| DEFAULT_PAINT | The default paint. | ||||||||||
| DEFAULT_ROTATION_ANCHOR | The default rotation anchor. | ||||||||||
| DEFAULT_TEXT_ANCHOR | The default text anchor. | ||||||||||
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Creates a new annotation to be displayed at the given coordinates.
| |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Returns a clone of the annotation.
| |||||||||||
Draws the annotation.
| |||||||||||
Tests this annotation for equality with an arbitrary object.
| |||||||||||
Returns the background paint for the annotation.
| |||||||||||
Returns the font for the annotation.
| |||||||||||
Returns the outline paint for the annotation.
| |||||||||||
Returns the outline stroke for the annotation.
| |||||||||||
Returns the paint for the annotation.
| |||||||||||
Returns the rotation anchor.
| |||||||||||
Returns the rotation angle.
| |||||||||||
Returns the text for the annotation.
| |||||||||||
Returns the text anchor.
| |||||||||||
Returns the x coordinate for the text anchor point (measured against the
domain axis).
| |||||||||||
Returns the y coordinate for the text anchor point (measured against the
range axis).
| |||||||||||
Returns a hash code for the object.
| |||||||||||
Returns the flag that controls whether or not the outline is drawn.
| |||||||||||
Sets the background paint for the annotation.
| |||||||||||
Sets the font for the annotation.
| |||||||||||
Sets the outline paint for the annotation.
| |||||||||||
Sets the outline stroke for the annotation.
| |||||||||||
Sets the flag that controls whether or not the outline is drawn.
| |||||||||||
Sets the paint for the annotation.
| |||||||||||
Sets the rotation anchor point.
| |||||||||||
Sets the rotation angle.
| |||||||||||
Sets the text for the annotation.
| |||||||||||
Sets the text anchor (the point on the text bounding rectangle that is
aligned to the (x, y) coordinate of the annotation).
| |||||||||||
Sets the x coordinate for the text anchor point (measured against the
domain axis).
| |||||||||||
Sets the y coordinate for the text anchor point (measured against the
range axis).
| |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.jfree.chart.annotations.AbstractXYAnnotation
| |||||||||||
From class
java.lang.Object
| |||||||||||
From interface
org.jfree.chart.annotations.XYAnnotation
| |||||||||||
The default rotation angle.
The default rotation anchor.
The default text anchor.
Creates a new annotation to be displayed at the given coordinates. The coordinates are specified in data space (they will be converted to Java2D space for display).
| text | the text (null not permitted). |
|---|---|
| x | the x-coordinate (in data space). |
| y | the y-coordinate (in data space). |
Returns a clone of the annotation.
| CloneNotSupportedException | if the annotation can't be cloned. |
|---|
Draws the annotation.
| g2 | the graphics device. |
|---|---|
| plot | the plot. |
| dataArea | the data area. |
| domainAxis | the domain axis. |
| rangeAxis | the range axis. |
| rendererIndex | the renderer index. |
| info | an optional info object that will be populated with entity information. |
Tests this annotation for equality with an arbitrary object.
| obj | the object (null permitted). |
|---|
Returns the background paint for the annotation.
null).Returns the outline paint for the annotation.
null).Returns the outline stroke for the annotation.
null).Returns the rotation anchor.
null).Returns the x coordinate for the text anchor point (measured against the domain axis).
Returns the y coordinate for the text anchor point (measured against the range axis).
Returns a hash code for the object.
Returns the flag that controls whether or not the outline is drawn.
Sets the background paint for the annotation.
| paint | the paint (null permitted). |
|---|
Sets the outline paint for the annotation.
| paint | the paint (null not permitted). |
|---|
Sets the outline stroke for the annotation.
| stroke | the stroke (null not permitted). |
|---|
Sets the flag that controls whether or not the outline is drawn.
| visible | the new flag value. |
|---|
Sets the paint for the annotation.
| paint | the paint (null not permitted). |
|---|
Sets the rotation anchor point.
| anchor | the anchor (null not permitted). |
|---|
Sets the rotation angle. The angle is measured clockwise in radians.
| angle | the angle (in radians). |
|---|
Sets the text anchor (the point on the text bounding rectangle that is aligned to the (x, y) coordinate of the annotation).
| anchor | the anchor point (null not permitted). |
|---|
Sets the x coordinate for the text anchor point (measured against the domain axis).
| x | the x coordinate (in data space). |
|---|
Sets the y coordinate for the text anchor point (measured against the range axis).
| y | the y coordinate. |
|---|