public final class

ChartPoint

extends ChartPointAttributes
com.artfulbits.aiCharts.Base.ChartPointAttributes
   ↳ com.artfulbits.aiCharts.Base.ChartPoint

Class Overview

Represents chart point class.

Summary

Public Constructors
ChartPoint(ChartPoint chartPoint)
Constructor.
ChartPoint(double x, double... yValues)
Initializes new instance of ChartPoint class with double X and Y values.
Public Methods
String getAxisLabel()
Returns axis label.
String getFormattedLabel()
Gets locally set label for element.
ChartSeries getSeries()
Gets parent series for this point.
double getX()
Gets corresponding X value.
double getY(int index)
Gets corresponding Y value at specified index position.
double[] getY()
Gets corresponding Y values.
void set(double x, double y)
Sets corresponding X and Y values.
void setAxisLabel(String axisLabel)
Sets text used to generate axis labels.
void setX(double x)
Sets corresponding X value.
void setY(double... values)
Sets corresponding Y values.
void setY(double y)
Sets corresponding Y value.
String toString()
[Expand]
Inherited Methods
From class com.artfulbits.aiCharts.Base.ChartPointAttributes

Public Constructors

public ChartPoint (ChartPoint chartPoint)

Constructor. Creates a new ChartPoint, initialized with the attributes in the specified pointAttributes parameter.

Parameters
chartPoint - Existing ChartPoint used to initialized the attributes of the new ChartPoint.

public ChartPoint (double x, double... yValues)

Initializes new instance of ChartPoint class with double X and Y values.

Parameters
x corresponding X value.
yValues corresponding Y values.

Public Methods

public String getAxisLabel ()

Returns axis label.

Returns
  • The corresponding axis label.

public String getFormattedLabel ()

Gets locally set label for element.

Returns

public ChartSeries getSeries ()

Gets parent series for this point.

Returns

public double getX ()

Gets corresponding X value.

Returns
  • X value.
See Also

public double getY (int index)

Gets corresponding Y value at specified index position.

Parameters
index value position.
Returns
  • corresponding Y value.
See Also

public double[] getY ()

Gets corresponding Y values.

Returns
  • Y values array.
See Also

public void set (double x, double y)

Sets corresponding X and Y values.

Parameters
x X value.
y Y value.
See Also

public void setAxisLabel (String axisLabel)

Sets text used to generate axis labels.

Parameters
axisLabel the axis label to set

public void setX (double x)

Sets corresponding X value.

Parameters
x X value.
See Also

public void setY (double... values)

Sets corresponding Y values.

Parameters
values Y values array.
See Also

public void setY (double y)

Sets corresponding Y value.

Parameters
y Y value.
See Also

public String toString ()

Since: API Level