java.lang.Object | |
↳ | org.jfree.chart.annotations.TextAnnotation |
![]() |
![]() |
A base class for text annotations. This class records the content but not the location of the annotation.
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. |
Protected Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Creates a text annotation with default settings.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Tests this object for equality with an arbitrary object.
| |||||||||||
Returns the font for the annotation.
| |||||||||||
Returns the paint for the annotation.
| |||||||||||
Returns the rotation anchor.
| |||||||||||
Returns the rotation angle in radians.
| |||||||||||
Returns the text for the annotation.
| |||||||||||
Returns the text anchor.
| |||||||||||
Returns a hash code for this instance.
| |||||||||||
Sets the font for the annotation.
| |||||||||||
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).
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
The default rotation angle.
The default rotation anchor.
The default text anchor.
Creates a text annotation with default settings.
text | the text (null not permitted).
|
---|
Tests this object for equality with an arbitrary object.
obj | the object (null permitted). |
---|
true
or false
.
Returns the rotation anchor.
null
).Returns the rotation angle in radians.
Returns a hash code for this instance.
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). |
---|