|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jfree.chart.annotations.TextAnnotation
org.jfree.chart.annotations.CategoryTextAnnotation
A text annotation that can be placed on a CategoryPlot.
| Field Summary |
| Fields inherited from class org.jfree.chart.annotations.TextAnnotation |
DEFAULT_FONT, DEFAULT_PAINT, DEFAULT_ROTATION_ANCHOR, DEFAULT_ROTATION_ANGLE, DEFAULT_TEXT_ANCHOR |
| Constructor Summary | |
CategoryTextAnnotation(java.lang.String text,
java.lang.Comparable category,
double value)
Creates a new annotation to be displayed at the given location. |
|
| Method Summary | |
java.lang.Object |
clone()
Returns a clone of the annotation. |
void |
draw(java.awt.Graphics2D g2,
CategoryPlot plot,
java.awt.geom.Rectangle2D dataArea,
CategoryAxis domainAxis,
ValueAxis rangeAxis)
Draws the annotation. |
boolean |
equals(java.lang.Object object)
Tests this object for equality with another. |
java.lang.Comparable |
getCategory()
Returns the category. |
CategoryAnchor |
getCategoryAnchor()
Returns the category anchor point. |
double |
getValue()
Returns the value that the annotation attaches to. |
void |
setCategory(java.lang.Comparable category)
Sets the category that the annotation attaches to. |
void |
setCategoryAnchor(CategoryAnchor anchor)
Sets the category anchor point. |
void |
setValue(double value)
Sets the value. |
| Methods inherited from class org.jfree.chart.annotations.TextAnnotation |
getFont, getPaint, getRotationAnchor, getRotationAngle, getText, getTextAnchor, setFont, setPaint, setRotationAnchor, setRotationAngle, setText, setTextAnchor |
| Methods inherited from class java.lang.Object |
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public CategoryTextAnnotation(java.lang.String text,
java.lang.Comparable category,
double value)
text - the text.category - the category.value - the value.| Method Detail |
public java.lang.Comparable getCategory()
public void setCategory(java.lang.Comparable category)
category - the category.public CategoryAnchor getCategoryAnchor()
public void setCategoryAnchor(CategoryAnchor anchor)
anchor - the anchor point.public double getValue()
public void setValue(double value)
value - the value.
public void draw(java.awt.Graphics2D g2,
CategoryPlot plot,
java.awt.geom.Rectangle2D dataArea,
CategoryAxis domainAxis,
ValueAxis rangeAxis)
draw in interface CategoryAnnotationg2 - the graphics device.plot - the plot.dataArea - the data area.domainAxis - the domain axis.rangeAxis - the range axis.public boolean equals(java.lang.Object object)
equals in class TextAnnotationobject - the object to test against.
true or false.
public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
java.lang.CloneNotSupportedException - this class will not throw this exception, but subclasses
(if any) might.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||