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 class ChartPoint extends ChartPointAttributes

 

Represents chart point class.

 

Since: 1.0

 

 

Constructors Summary
ChartPoint(java.util.Calendar date, double[] yValues)
    
Initializes new instance of ChartPoint class with double X and Y values.
ChartPoint(java.util.Date date, double[] yValues)
    
Initializes new instance of ChartPoint class with double X and Y values.
ChartPoint(double x, double y)
    
Initializes new instance of ChartPoint class with double X and Y values.
ChartPoint(double x, double[] yValues)
    
Initializes new instance of ChartPoint class with double X and Y values.

 

 

Methods Summary
java.lang.String getAxisLabel()
    
Gets axis label for this point.
java.lang.String getFormatedLabel()
    
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 y)
    
Sets corresponding Y values.
void setY(double[] yValues)
    
Sets corresponding Y values.

 

Methods inherited from class: com.artfulbits.aiCharts.Base.ChartPointAttributes
getAttribute, getBackColor, getBackImage, getBorderColor, getHLabelAlignment, getLabel, getLabelColor, getLabelFont, getMarker, getShowLabel, getTag, getVLabelAlignment, reset, setAttribute, setBackColor, setBackImage, setBorderColor, setHLabelAlignment, setLabel, setLabelColor, setLabelFont, setLabelFormat, setLabelFormat, setMarker, setShowLabel, setTag, setVLabelAlignment

 

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

 

 

 

 

ChartPoint

 

public ChartPoint( double x,
double y)

 

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

 

Parameters:
x-
corresponding X value.
y-
corresponding Y values.

 

Since: 1.0

 

 

 

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

 

 

 

ChartPoint

 

public ChartPoint( java.util.Date date,
double[] yValues)

 

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

 

Parameters:
date-
corresponding X value.
yValues-
corresponding Y values.

 

Since: 1.0

 

 

 

ChartPoint

 

public ChartPoint( java.util.Calendar date,
double[] yValues)

 

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

 

Parameters:
date-
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 values.

 

Parameters:
y-
Y values array.

 

Since: 1.0
See also: setX(double)

 

 

 

setY

 

public void setY( double[] yValues)

 

Sets corresponding Y values.

 

Parameters:
yValues-
Y values array.

 

Since: 1.0
See also: setX(double)

 

 

 

setAxisLabel

 

public void setAxisLabel( java.lang.String axisLabel)

 

Parameters:
axisLabel-
the axis label to set

 

Since: 1.0

 

 

 

getAxisLabel

 

public java.lang.String getAxisLabel( )

 

Gets axis label for this point.

 

Returns:
the m_axisLabel

 

Since: 1.0

 

 

 

getFormatedLabel

 

public java.lang.String getFormatedLabel( )

 

 

© 2005 - 2010 ArtfulBits. All rights reserved.