Client API. The Codename One framework your app is built on: this runs on the device, not in a backend.
public final class ChartPoint
- Object
- 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
seriesSeries- the series the point belongs to
indexint- the point’s index in the series
xdouble- its x value (or category index)
ydouble- its value
screenXint- where it is drawn, relative to the chart
screenYint- where it is drawn, relative to the chart
labelString- 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.