org.jfree.chart.annotations
Class TextAnnotation

java.lang.Object
  |
  +--org.jfree.chart.annotations.TextAnnotation
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
CategoryTextAnnotation, XYTextAnnotation

public class TextAnnotation
extends java.lang.Object
implements java.io.Serializable

A base class for text annotations. This class records the content but not the location of the annotation.

Author:
David Gilbert
See Also:
Serialized Form

Field Summary
static java.awt.Font DEFAULT_FONT
          The default font.
static java.awt.Paint DEFAULT_PAINT
          The default paint.
 
Constructor Summary
protected TextAnnotation(java.lang.String text, java.awt.Font font, java.awt.Paint paint)
          Creates a text annotation.
 
Method Summary
 java.awt.Font getFont()
          Returns the font for the annotation.
 java.awt.Paint getPaint()
          Returns the paint for the annotation.
 java.lang.String getText()
          Returns the text for the annotation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_FONT

public static final java.awt.Font DEFAULT_FONT
The default font.


DEFAULT_PAINT

public static final java.awt.Paint DEFAULT_PAINT
The default paint.

Constructor Detail

TextAnnotation

protected TextAnnotation(java.lang.String text,
                         java.awt.Font font,
                         java.awt.Paint paint)
Creates a text annotation.

Parameters:
text - the text.
font - the font.
paint - the paint.
Method Detail

getText

public java.lang.String getText()
Returns the text for the annotation.

Returns:
The text.

getFont

public java.awt.Font getFont()
Returns the font for the annotation.

Returns:
The font.

getPaint

public java.awt.Paint getPaint()
Returns the paint for the annotation.

Returns:
The paint.