Package org.knowm.xchart
Class AnnotationText
- java.lang.Object
-
- org.knowm.xchart.internal.chartpart.Annotation
-
- org.knowm.xchart.AnnotationText
-
- All Implemented Interfaces:
ChartPart
public class AnnotationText extends Annotation
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.Stringtextprotected doublexprotected doubley-
Fields inherited from class org.knowm.xchart.internal.chartpart.Annotation
bounds, chart, isValueInScreenSpace, isVisible, styler
-
Fields inherited from interface org.knowm.xchart.internal.chartpart.ChartPart
SOLID_STROKE
-
-
Constructor Summary
Constructors Constructor Description AnnotationText(java.lang.String text, double x, double y, boolean isValueInScreenSpace)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidpaint(java.awt.Graphics2D g)voidsetText(java.lang.String text)voidsetX(double x)voidsetY(double y)-
Methods inherited from class org.knowm.xchart.internal.chartpart.Annotation
getBounds, getXAxisScreenValue, getXAxisScreenValueForMax, getXAxisScreenValueForMin, getYAxisScreenValue, getYAxisScreenValueForMax, getYAxisScreenValueForMin, init, setVisible
-
-