AndBase开发框架  1.6
 全部  命名空间 文件 函数 变量 枚举值 
Public 成员函数 | Private 成员函数 | Private 属性 | 所有成员列表
com.ab.view.chart.XYSeries类 参考
类 com.ab.view.chart.XYSeries 继承关系图:
com.ab.view.chart.TimeSeries com.ab.view.chart.XYValueSeries

Public 成员函数

 XYSeries (String title)
 
 XYSeries (String title, int scaleNumber)
 
int getScaleNumber ()
 
String getTitle ()
 
void setTitle (String title)
 
synchronized void add (double x, double y)
 
synchronized void add (double x, double y, int c)
 
synchronized void add (double x, double y, int c, String e)
 
synchronized void remove (int index)
 
synchronized void clear ()
 
synchronized double getX (int index)
 
synchronized double getY (int index)
 
synchronized SortedMap< Double,
Double > 
getRange (double start, double stop, int beforeAfterPoints)
 
int getIndexForKey (double key)
 
synchronized int getItemCount ()
 
double getMinX ()
 
double getMinY ()
 
double getMaxX ()
 
double getMaxY ()
 
IndexXYMap< Double, Integer > getmXC ()
 
int getmXCValue (double key)
 
IndexXYMap< Double, String > getmXE ()
 
String getmXEValue (double key)
 

Private 成员函数

void initRange ()
 
void updateRange (double x, double y)
 

Private 属性

String mTitle
 
final IndexXYMap< Double, Double > mXY = new IndexXYMap<Double, Double>()
 
final IndexXYMap< Double, Integer > mXC = new IndexXYMap<Double, Integer>()
 
final IndexXYMap< Double, String > mXE = new IndexXYMap<Double, String>()
 
double mMinX = MathHelper.NULL_VALUE
 
double mMaxX = -MathHelper.NULL_VALUE
 
double mMinY = MathHelper.NULL_VALUE
 
double mMaxY = -MathHelper.NULL_VALUE
 
final int mScaleNumber
 

详细描述

An XY series encapsulates values for XY charts like line, time, area, scatter... charts.

构造及析构函数说明

com.ab.view.chart.XYSeries.XYSeries ( String  title)
inline

Builds a new XY series.

参数
titlethe series title.
com.ab.view.chart.XYSeries.XYSeries ( String  title,
int  scaleNumber 
)
inline

Builds a new XY series.

参数
titlethe series title.
scaleNumberthe series scale number

成员函数说明

synchronized void com.ab.view.chart.XYSeries.add ( double  x,
double  y 
)
inline

Adds a new value to the series.

参数
xthe value for the X axis
ythe value for the Y axis
synchronized void com.ab.view.chart.XYSeries.add ( double  x,
double  y,
int  c 
)
inline

Adds the.

参数
xthe x
ythe y
cthe c
synchronized void com.ab.view.chart.XYSeries.add ( double  x,
double  y,
int  c,
String  e 
)
inline

描述:添加坐标,颜色,描述.

参数
xthe x
ythe y
cthe c
ethe e
synchronized void com.ab.view.chart.XYSeries.clear ( )
inline

Removes all the existing values from the series.

int com.ab.view.chart.XYSeries.getIndexForKey ( double  key)
inline

Gets the index for key.

参数
keythe key
返回
the index for key
synchronized int com.ab.view.chart.XYSeries.getItemCount ( )
inline

Returns the series item count.

返回
the series item count
double com.ab.view.chart.XYSeries.getMaxX ( )
inline

Returns the maximum value on the X axis.

返回
the X axis maximum value
double com.ab.view.chart.XYSeries.getMaxY ( )
inline

Returns the maximum value on the Y axis.

返回
the Y axis maximum value
double com.ab.view.chart.XYSeries.getMinX ( )
inline

Returns the minimum value on the X axis.

返回
the X axis minimum value
double com.ab.view.chart.XYSeries.getMinY ( )
inline

Returns the minimum value on the Y axis.

返回
the Y axis minimum value
IndexXYMap<Double, Integer> com.ab.view.chart.XYSeries.getmXC ( )
inline

描述:获取颜色值.

返回
the m xc
int com.ab.view.chart.XYSeries.getmXCValue ( double  key)
inline

描述:获取这个点的颜色值.

参数
keythe key
返回
the m xc value
IndexXYMap<Double, String> com.ab.view.chart.XYSeries.getmXE ( )
inline

描述:获取这个点的说明.

返回
the m xe
String com.ab.view.chart.XYSeries.getmXEValue ( double  key)
inline

描述:获取值的说明.

参数
keythe key
返回
the m xe value
synchronized SortedMap<Double, Double> com.ab.view.chart.XYSeries.getRange ( double  start,
double  stop,
int  beforeAfterPoints 
)
inline

Returns submap of x and y values according to the given start and end.

参数
startstart x value
stopstop x value
beforeAfterPointsthe before after points
返回
a submap of x and y values
int com.ab.view.chart.XYSeries.getScaleNumber ( )
inline

Gets the scale number.

返回
the scale number
String com.ab.view.chart.XYSeries.getTitle ( )
inline

Returns the series title.

返回
the series title
synchronized double com.ab.view.chart.XYSeries.getX ( int  index)
inline

Returns the X axis value at the specified index.

参数
indexthe index
返回
the X value
synchronized double com.ab.view.chart.XYSeries.getY ( int  index)
inline

Returns the Y axis value at the specified index.

参数
indexthe index
返回
the Y value
void com.ab.view.chart.XYSeries.initRange ( )
inlineprivate

Initializes the range for both axes.

synchronized void com.ab.view.chart.XYSeries.remove ( int  index)
inline

Removes an existing value from the series.

参数
indexthe index in the series of the value to remove
void com.ab.view.chart.XYSeries.setTitle ( String  title)
inline

Sets the series title.

参数
titlethe series title
void com.ab.view.chart.XYSeries.updateRange ( double  x,
double  y 
)
inlineprivate

Updates the range on both axes.

参数
xthe new x value
ythe new y value

类成员变量说明

double com.ab.view.chart.XYSeries.mMaxX = -MathHelper.NULL_VALUE
private

The maximum value for the X axis.

double com.ab.view.chart.XYSeries.mMaxY = -MathHelper.NULL_VALUE
private

The maximum value for the Y axis.

double com.ab.view.chart.XYSeries.mMinX = MathHelper.NULL_VALUE
private

The minimum value for the X axis.

double com.ab.view.chart.XYSeries.mMinY = MathHelper.NULL_VALUE
private

The minimum value for the Y axis.

final int com.ab.view.chart.XYSeries.mScaleNumber
private

The scale number for this series.

String com.ab.view.chart.XYSeries.mTitle
private

The series title.

final IndexXYMap<Double, Integer> com.ab.view.chart.XYSeries.mXC = new IndexXYMap<Double, Integer>()
private

每个数据点的颜色值.

final IndexXYMap<Double, String> com.ab.view.chart.XYSeries.mXE = new IndexXYMap<Double, String>()
private

每个数据点的简要 说明.

final IndexXYMap<Double, Double> com.ab.view.chart.XYSeries.mXY = new IndexXYMap<Double, Double>()
private

A map to contain values for X and Y axes and index for each bundle.


该类的文档由以下文件生成: