Class Annotation
- java.lang.Object
-
- org.knowm.xchart.internal.chartpart.Annotation
-
- All Implemented Interfaces:
ChartPart
- Direct Known Subclasses:
AnnotationImage,AnnotationLine,AnnotationText,AnnotationTextPanel
public abstract class Annotation extends java.lang.Object implements ChartPart
-
-
Field Summary
Fields Modifier and Type Field Description protected java.awt.geom.Rectangle2Dboundsprotected Chartchartprotected booleanisValueInScreenSpaceprotected booleanisVisibleprotected Stylerstyler-
Fields inherited from interface org.knowm.xchart.internal.chartpart.ChartPart
SOLID_STROKE
-
-
Constructor Summary
Constructors Constructor Description Annotation(boolean isValueInScreenSpace)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.awt.geom.Rectangle2DgetBounds()protected intgetXAxisScreenValue(double chartSpaceValue)protected intgetXAxisScreenValueForMax()protected intgetXAxisScreenValueForMin()protected intgetYAxisScreenValue(double chartSpaceValue)protected intgetYAxisScreenValueForMax()protected intgetYAxisScreenValueForMin()voidinit(Chart chart)voidsetVisible(boolean visible)
-
-
-
Method Detail
-
init
public void init(Chart chart)
-
getBounds
public java.awt.geom.Rectangle2D getBounds()
-
setVisible
public void setVisible(boolean visible)
-
getXAxisScreenValue
protected int getXAxisScreenValue(double chartSpaceValue)
-
getYAxisScreenValue
protected int getYAxisScreenValue(double chartSpaceValue)
-
getXAxisScreenValueForMax
protected int getXAxisScreenValueForMax()
-
getXAxisScreenValueForMin
protected int getXAxisScreenValueForMin()
-
getYAxisScreenValueForMax
protected int getYAxisScreenValueForMax()
-
getYAxisScreenValueForMin
protected int getYAxisScreenValueForMin()
-
-