|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.achartengine.model.XYSeries
public class XYSeries
An XY series encapsulates values for XY charts like line, time, area, scatter... charts.
Constructor Summary | |
---|---|
XYSeries(java.lang.String title)
Builds a new XY series. |
|
XYSeries(java.lang.String title,
int scaleNumber)
Builds a new XY series. |
Method Summary | |
---|---|
void |
add(double x,
double y)
Adds a new value to the series. |
void |
clear()
Removes all the existing values from the series. |
int |
getItemCount()
Returns the series item count. |
double |
getMaxX()
Returns the maximum value on the X axis. |
double |
getMaxY()
Returns the maximum value on the Y axis. |
double |
getMinX()
Returns the minimum value on the X axis. |
double |
getMinY()
Returns the minimum value on the Y axis. |
int |
getScaleNumber()
|
java.lang.String |
getTitle()
Returns the series title. |
double |
getX(int index)
Returns the X axis value at the specified index. |
double |
getY(int index)
Returns the Y axis value at the specified index. |
void |
remove(int index)
Removes an existing value from the series. |
void |
setTitle(java.lang.String title)
Sets the series title. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public XYSeries(java.lang.String title)
title
- the series title.public XYSeries(java.lang.String title, int scaleNumber)
title
- the series title.scaleNumber
- the series scale numberMethod Detail |
---|
public int getScaleNumber()
public java.lang.String getTitle()
public void setTitle(java.lang.String title)
title
- the series titlepublic void add(double x, double y)
x
- the value for the X axisy
- the value for the Y axispublic void remove(int index)
index
- the index in the series of the value to removepublic void clear()
public double getX(int index)
index
- the index
public double getY(int index)
index
- the index
public int getItemCount()
public double getMinX()
public double getMinY()
public double getMaxX()
public double getMaxY()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |