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

All Implemented Interfaces:
    PublicCloneable, Cloneable, CategoryAnnotation, Serializable

Direct Known Subclasses:
    CategoryPointerAnnotation

A text annotation that can be placed on a CategoryPlot .
Fields inherited from org.jfree.chart.annotations.TextAnnotation:
DEFAULT_FONT,  DEFAULT_PAINT,  DEFAULT_TEXT_ANCHOR,  DEFAULT_ROTATION_ANCHOR,  DEFAULT_ROTATION_ANGLE
Constructor:
 public CategoryTextAnnotation(String text,
    Comparable category,
    double value) 
    Creates a new annotation to be displayed at the given location.
    Parameters:
    text - the text (null not permitted).
    category - the category (null not permitted).
    value - the value.
Method from org.jfree.chart.annotations.CategoryTextAnnotation Summary:
clone,   draw,   equals,   getCategory,   getCategoryAnchor,   getValue,   hashCode,   setCategory,   setCategoryAnchor,   setValue
Methods from org.jfree.chart.annotations.TextAnnotation:
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.CategoryTextAnnotation Detail:
 public Object clone() throws CloneNotSupportedException 
    Returns a clone of the annotation.
 public  void draw(Graphics2D g2,
    CategoryPlot plot,
    Rectangle2D dataArea,
    CategoryAxis domainAxis,
    ValueAxis rangeAxis) 
    Draws the annotation.
 public boolean equals(Object obj) 
    Tests this object for equality with another.
 public Comparable getCategory() 
    Returns the category.
 public CategoryAnchor getCategoryAnchor() 
    Returns the category anchor point.
 public double getValue() 
    Returns the value that the annotation attaches to.
 public int hashCode() 
    Returns a hash code for this instance.
 public  void setCategory(Comparable category) 
    Sets the category that the annotation attaches to.
 public  void setCategoryAnchor(CategoryAnchor anchor) 
    Sets the category anchor point.
 public  void setValue(double value) 
    Sets the value.