Client API. The Codename One framework your app is built on: this runs on the device, not in a backend.

public final class ChartPoint

  1. Object
  2. ChartPoint
A data point the user tapped, hovered or selected.

Constructors

public ChartPoint(Series series, int index, double x, double y, int screenX, int screenY, String label)Creates a point reference.

Methods

public Series getSeries()The series.
public int getIndex()The point’s index within its series.
public double getX()The x value.
public double getY()The value.
public int getScreenX()Screen x relative to the chart component.
public int getScreenY()Screen y relative to the chart component.
public String getLabel()The point’s own name, or null.

Inherited methods

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 Series
the series the point belongs to
index int
the point’s index in the series
x double
its x value (or category index)
y double
its value
screenX int
where it is drawn, relative to the chart
screenY int
where it is drawn, relative to the chart
label String
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.