Save This Page
Home » jcommon-1.0.13 » org.jfree » chart » annotations » [javadoc | source]
org.jfree.chart.annotations
public class: TextAnnotation [javadoc | source]
java.lang.Object
   org.jfree.chart.annotations.TextAnnotation

All Implemented Interfaces:
    Serializable

Direct Known Subclasses:
    CategoryPointerAnnotation, CategoryTextAnnotation

A base class for text annotations. This class records the content but not the location of the annotation.
Field Summary
public static final  Font DEFAULT_FONT    The default font. 
public static final  Paint DEFAULT_PAINT    The default paint. 
public static final  TextAnchor DEFAULT_TEXT_ANCHOR    The default text anchor. 
public static final  TextAnchor DEFAULT_ROTATION_ANCHOR    The default rotation anchor. 
public static final  double DEFAULT_ROTATION_ANGLE    The default rotation angle. 
Constructor:
 protected TextAnnotation(String text) 
    Creates a text annotation with default settings.
    Parameters:
    text - the text (null not permitted).
Method from org.jfree.chart.annotations.TextAnnotation Summary:
equals,   getFont,   getPaint,   getRotationAnchor,   getRotationAngle,   getText,   getTextAnchor,   hashCode,   setFont,   setPaint,   setRotationAnchor,   setRotationAngle,   setText,   setTextAnchor
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.jfree.chart.annotations.TextAnnotation Detail:
 public boolean equals(Object obj) 
    Tests this object for equality with an arbitrary object.
 public Font getFont() 
    Returns the font for the annotation.
 public Paint getPaint() 
    Returns the paint for the annotation.
 public TextAnchor getRotationAnchor() 
    Returns the rotation anchor.
 public double getRotationAngle() 
    Returns the rotation angle in radians.
 public String getText() 
    Returns the text for the annotation.
 public TextAnchor getTextAnchor() 
    Returns the text anchor.
 public int hashCode() 
    Returns a hash code for this instance.
 public  void setFont(Font font) 
    Sets the font for the annotation.
 public  void setPaint(Paint paint) 
    Sets the paint for the annotation.
 public  void setRotationAnchor(TextAnchor anchor) 
    Sets the rotation anchor point.
 public  void setRotationAngle(double angle) 
    Sets the rotation angle. The angle is measured clockwise in radians.
 public  void setText(String text) 
    Sets the text for the annotation.
 public  void setTextAnchor(TextAnchor anchor) 
    Sets the text anchor (the point on the text bounding rectangle that is aligned to the (x, y) coordinate of the annotation).