Class Cursor

java.lang.Object
java.awt.event.MouseAdapter
org.knowm.xchart.internal.chartpart.Cursor
All Implemented Interfaces:
MouseListener, MouseMotionListener, MouseWheelListener, EventListener, ChartPart

public class Cursor extends MouseAdapter implements ChartPart
Cursor movement to display matching point data information.
  • Field Details

    • LINE_SPACING

      private static final int LINE_SPACING
      See Also:
    • MOUSE_SPACING

      private static final int MOUSE_SPACING
      See Also:
    • dataPointList

      private final List<Cursor.DataPoint> dataPointList
    • matchingDataPointList

      private final List<Cursor.DataPoint> matchingDataPointList
    • chart

      private final Chart chart
    • styler

      private final XYStyler styler
    • seriesMap

      private final Map<String,Series> seriesMap
    • mouseX

      private double mouseX
    • mouseY

      private double mouseY
    • startX

      private double startX
    • startY

      private double startY
    • textHeight

      private double textHeight
  • Constructor Details

    • Cursor

      public Cursor(Chart chart)
      Constructor
      Parameters:
      chart -
  • Method Details