Summ:  Constr. Methods    Details:  Constr. Methods      Class:  Prev Next
com.artfulbits.aiCharts.Base
Class ChartPoint

java.lang.Object com.artfulbits.aiCharts.Base.ChartPointAttributes com.artfulbits.aiCharts.Base.ChartPoint

Declaration: public final class ChartPoint extends ChartPointAttributes

 

Represents chart point class.

 

Since: 1.0

 

 

Constructors Summary
ChartPoint(double x, double... yValues)
    
Initializes new instance of ChartPoint class with double X and Y values.

 

 

Methods Summary
java.lang.String getAxisLabel()
    
java.lang.String getFormatedLabel()
    
ChartSeries getSeries()
    
Gets parent series for this point.
double getX()
    
Gets corresponding X value.
double[] getY()
    
Gets corresponding Y values.
double getY(int index)
    
Gets corresponding Y value at specified index position.
void setAxisLabel(java.lang.String axisLabel)
    
void setX(double x)
    
Sets corresponding X value.
void setY(double... values)
    
Sets corresponding Y values.
void setY(double y)
    
Sets corresponding Y value.
java.lang.String toString()
    

 

Methods inherited from class: com.artfulbits.aiCharts.Base.ChartPointAttributes
getAttribute, getBackColor, getBackDrawable, getBorderColor, getHLabelAlignment, getLabel, getLabelBackground, getLabelFormat, getLabelPadding, getLineWidth, getMarkerDrawable, getMarkerSize, getPathEffect, getShowLabel, getTag, getTextPaint, getVLabelAlignment, isBackFilterEnabled, reset, setAttribute, setBackColor, setBackDrawable, setBackFilterEnabled, setBorderColor, setHLabelAlignment, setLabel, setLabelBackground, setLabelFormat, setLabelPadding, setLineWidth, setMarkerDrawable, setMarkerPaint, setMarkerSize, setPathEffect, setShowLabel, setTag, setVLabelAlignment

 

Methods inherited from class: java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait

 

 

 

 

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.

 

Since: 1.0

 

 

 

 

getX

 

public double getX( )

 

Gets corresponding X value.

 

Returns:
X value.

 

Since: 1.0
See also: setY(double...)

 

 

 

setX

 

public void setX( double x)

 

Sets corresponding X value.

 

Parameters:
x-
X value.

 

Since: 1.0
See also: getX()

 

 

 

getY

 

public double[] getY( )

 

Gets corresponding Y values.

 

Returns:
Y values array.

 

Since: 1.0
See also: getX()

 

 

 

getY

 

public double getY( int index)

 

Gets corresponding Y value at specified index position.

 

Parameters:
index-
value position.
Returns:
corresponding Y value.

 

Since: 1.0
See also: getX()

 

 

 

setY

 

public void setY( double y)

 

Sets corresponding Y value.

 

Parameters:
y-
Y value.

 

Since: 1.5.0.2
See also: setY(double...)

 

 

 

setY

 

public void setY( double... values)

 

Sets corresponding Y values.

 

Parameters:
values-
Y values array.

 

Since: 1.0
See also: setX(double)

 

 

 

getSeries

 

public ChartSeries getSeries( )

 

Gets parent series for this point.

 

Returns:
instance of ChartSeries

 

Since: 1.5.1

 

 

 

setAxisLabel

 

public void setAxisLabel( java.lang.String axisLabel)

 

Parameters:
axisLabel-
the axis label to set

 

Since: 1.0

 

 

 

getAxisLabel

 

public java.lang.String getAxisLabel( )

 

Returns:
the m_axisLabel

 

Since: 1.0

 

 

 

toString

 

public java.lang.String toString( )

 

Overrides: java.lang.Object.toString()

 

 

 

getFormatedLabel

 

public java.lang.String getFormatedLabel( )

 

 

© 2005 - 2010 ArtfulBits. All rights reserved.