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 Object implements ChartPart
  • Field Details

    • isVisible

      protected boolean isVisible
    • isValueInScreenSpace

      protected boolean isValueInScreenSpace
    • chart

      protected Chart chart
    • styler

      protected Styler styler
    • bounds

      protected Rectangle2D bounds
  • Constructor Details

    • Annotation

      public Annotation(boolean isValueInScreenSpace)
  • Method Details

    • init

      public void init(Chart chart)
    • getBounds

      public Rectangle2D getBounds()
      Specified by:
      getBounds in interface ChartPart
    • 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()