|
Header
|
|||||||||
| 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
public class 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 obj)
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. |
int |
hashCode()
Returns a hash code for this instance. |
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, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CategoryTextAnnotation(java.lang.String text,
java.lang.Comparable category,
double value)
text - the text (null not permitted).category - the category (null not permitted).value - the value.| Method Detail |
|---|
public java.lang.Comparable getCategory()
null).setCategory(Comparable)public void setCategory(java.lang.Comparable category)
category - the category (null not permitted).getCategory()public CategoryAnchor getCategoryAnchor()
setCategoryAnchor(CategoryAnchor)public void setCategoryAnchor(CategoryAnchor anchor)
anchor - the anchor point (null not permitted).getCategoryAnchor()public double getValue()
setValue(double)public void setValue(double value)
value - the value.getValue()
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 obj)
equals in class TextAnnotationobj - the object (null permitted).
true or false.public int hashCode()
hashCode in class TextAnnotation
public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
clone in interface org.jfree.util.PublicCloneableclone in class java.lang.Objectjava.lang.CloneNotSupportedException - this class will not throw this
exception, but subclasses (if any) might.
|
Footer
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||