public class TextAnnotation extends AbstractAnnotation implements Serializable
Modifier and Type | Field and Description |
---|---|
static Font |
DEFAULT_FONT
The default font.
|
static Paint |
DEFAULT_PAINT
The default paint.
|
static org.jfree.ui.TextAnchor |
DEFAULT_ROTATION_ANCHOR
The default rotation anchor.
|
static double |
DEFAULT_ROTATION_ANGLE
The default rotation angle.
|
static org.jfree.ui.TextAnchor |
DEFAULT_TEXT_ANCHOR
The default text anchor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj)
Tests this object for equality with an arbitrary object.
|
Font |
getFont()
Returns the font for the annotation.
|
Paint |
getPaint()
Returns the paint for the annotation.
|
org.jfree.ui.TextAnchor |
getRotationAnchor()
Returns the rotation anchor.
|
double |
getRotationAngle()
Returns the rotation angle in radians.
|
String |
getText()
Returns the text for the annotation.
|
org.jfree.ui.TextAnchor |
getTextAnchor()
Returns the text anchor.
|
int |
hashCode()
Returns a hash code for this instance.
|
void |
setFont(Font font)
Sets the font for the annotation and sends an
AnnotationChangeEvent to all registered listeners. |
void |
setPaint(Paint paint)
Sets the paint for the annotation and sends an
AnnotationChangeEvent to all registered listeners. |
void |
setRotationAnchor(org.jfree.ui.TextAnchor anchor)
Sets the rotation anchor point and sends an
AnnotationChangeEvent to all registered listeners. |
void |
setRotationAngle(double angle)
Sets the rotation angle and sends an
AnnotationChangeEvent to
all registered listeners. |
void |
setText(String text)
Sets the text for the annotation and sends an
AnnotationChangeEvent to all registered listeners. |
void |
setTextAnchor(org.jfree.ui.TextAnchor anchor)
Sets the text anchor (the point on the text bounding rectangle that is
aligned to the (x, y) coordinate of the annotation) and sends an
AnnotationChangeEvent to all registered listeners. |
addChangeListener, clone, getNotify, hasListener, removeChangeListener, setNotify
public static final Font DEFAULT_FONT
public static final Paint DEFAULT_PAINT
public static final org.jfree.ui.TextAnchor DEFAULT_TEXT_ANCHOR
public static final org.jfree.ui.TextAnchor DEFAULT_ROTATION_ANCHOR
public static final double DEFAULT_ROTATION_ANGLE
public String getText()
null
).setText(String)
public void setText(String text)
AnnotationChangeEvent
to all registered listeners.text
- the text (null
not permitted).getText()
public Font getFont()
null
).setFont(Font)
public void setFont(Font font)
AnnotationChangeEvent
to all registered listeners.font
- the font (null
not permitted).getFont()
public Paint getPaint()
null
).setPaint(Paint)
public void setPaint(Paint paint)
AnnotationChangeEvent
to all registered listeners.paint
- the paint (null
not permitted).getPaint()
public org.jfree.ui.TextAnchor getTextAnchor()
setTextAnchor(TextAnchor)
public void setTextAnchor(org.jfree.ui.TextAnchor anchor)
AnnotationChangeEvent
to all registered listeners.anchor
- the anchor point (null
not permitted).getTextAnchor()
public org.jfree.ui.TextAnchor getRotationAnchor()
null
).setRotationAnchor(TextAnchor)
public void setRotationAnchor(org.jfree.ui.TextAnchor anchor)
AnnotationChangeEvent
to all registered listeners.anchor
- the anchor (null
not permitted).getRotationAnchor()
public double getRotationAngle()
setRotationAngle(double)
public void setRotationAngle(double angle)
AnnotationChangeEvent
to
all registered listeners. The angle is measured clockwise in radians.angle
- the angle (in radians).getRotationAngle()
public boolean equals(Object obj)
Jas4pp 1.5 © Java Analysis Studio for Particle Physics