Class AnnotationTextPanel

java.lang.Object
org.knowm.xchart.internal.chartpart.Annotation
org.knowm.xchart.AnnotationTextPanel
All Implemented Interfaces:
org.knowm.xchart.internal.chartpart.ChartPart

public class AnnotationTextPanel extends org.knowm.xchart.internal.chartpart.Annotation
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected double
     
    protected double
     

    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
    AnnotationTextPanel(String lines, double x, double y, boolean isValueInScreenSpace)
    Constructor
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    init(org.knowm.xchart.internal.chartpart.Chart chart)
     
    void
     
    void
     
    void
    setX(double x)
     
    void
    setY(double y)
     

    Methods inherited from class org.knowm.xchart.internal.chartpart.Annotation

    getBounds, getXAxisScreenValue, getXAxisScreenValueForMax, getXAxisScreenValueForMin, getYAxisScreenValue, getYAxisScreenValueForMax, getYAxisScreenValueForMin, setVisible

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • x

      protected double x
    • y

      protected double y
  • Constructor Details

    • AnnotationTextPanel

      public AnnotationTextPanel(String lines, double x, double y, boolean isValueInScreenSpace)
      Constructor
      Parameters:
      lines -
      x -
      y -
      isValueInScreenSpace -
  • Method Details

    • init

      public void init(org.knowm.xchart.internal.chartpart.Chart chart)
      Overrides:
      init in class org.knowm.xchart.internal.chartpart.Annotation
    • paint

      public void paint(Graphics2D g)
    • setLines

      public void setLines(List<String> lines)
    • setX

      public void setX(double x)
    • setY

      public void setY(double y)