Class ChartPoint

java.lang.Object
com.codename1.ui.chart.ChartPoint

public final class ChartPoint extends Object
A data point the user tapped, hovered or selected.
  • Constructor Details

    • ChartPoint

      public ChartPoint(Series series, int index, double x, double y, int screenX, int screenY, String label)

      Creates a point reference.

      Parameters
      • series: the series the point belongs to

      • index: the point's index in the series

      • x: its x value (or category index)

      • y: its value

      • screenX: where it is drawn, relative to the chart

      • screenY: where it is drawn, relative to the chart

      • label: a name for the point (a pie slice or treemap cell), or null

  • Method Details

    • getSeries

      public Series getSeries()
      The series.
    • getIndex

      public int getIndex()
      The point's index within its series.
    • getX

      public double getX()
      The x value.
    • getY

      public double getY()
      The value.
    • getScreenX

      public int getScreenX()
      Screen x relative to the chart component.
    • getScreenY

      public int getScreenY()
      Screen y relative to the chart component.
    • getLabel

      public String getLabel()
      The point's own name, or null.