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

Public 成员函数

void setDimensions (int pieRadius, int centerX, int centerY)
 
boolean areAllSegmentPresent (int datasetSize)
 
void addPieSegment (int dataIndex, float value, float startAngle, float angle)
 
void clearPieSegments ()
 
double getAngle (Point screenPoint)
 
boolean isOnPieChart (Point screenPoint)
 
SeriesSelection getSeriesAndPointForScreenCoordinate (Point screenPoint)
 

包属性

int mCenterY
 

Private 属性

List< PieSegmentmPieSegmentList = new ArrayList<PieSegment>()
 
int mPieChartRadius
 
int mCenterX
 

详细描述

PieChart Segment Selection Management.

成员函数说明

void com.ab.view.chart.PieMapper.addPieSegment ( int  dataIndex,
float  value,
float  startAngle,
float  angle 
)
inline

Add configuration for a PieChart Segment.

参数
dataIndexthe data index
valuethe value
startAnglethe start angle
anglethe angle
boolean com.ab.view.chart.PieMapper.areAllSegmentPresent ( int  datasetSize)
inline

If we have all PieChart Config then there is no point in reloading it.

参数
datasetSizethe dataset size
返回
true if cfg for each segment is present
void com.ab.view.chart.PieMapper.clearPieSegments ( )
inline

Clears the pie segments list.

double com.ab.view.chart.PieMapper.getAngle ( Point  screenPoint)
inline

Fetches angle relative to pie chart center point where 3 O'Clock is 0 and 12 O'Clock is 270degrees.

参数
screenPointthe screen point
返回
angle in degress from 0-360.
SeriesSelection com.ab.view.chart.PieMapper.getSeriesAndPointForScreenCoordinate ( Point  screenPoint)
inline

Fetches the SeriesSelection for the PieSegment selected.

参数
screenPoint- the user tap location
返回
null if screen point is not in PieChart or its config if it is
boolean com.ab.view.chart.PieMapper.isOnPieChart ( Point  screenPoint)
inline

Checks if Point falls within PieChart.

参数
screenPointthe screen point
返回
true if in PieChart
void com.ab.view.chart.PieMapper.setDimensions ( int  pieRadius,
int  centerX,
int  centerY 
)
inline

Set PieChart location on screen.

参数
pieRadiusthe pie radius
centerXthe center x
centerYthe center y

类成员变量说明

int com.ab.view.chart.PieMapper.mCenterX
private

The m center y.

int com.ab.view.chart.PieMapper.mCenterY
package
int com.ab.view.chart.PieMapper.mPieChartRadius
private

The m pie chart radius.

List<PieSegment> com.ab.view.chart.PieMapper.mPieSegmentList = new ArrayList<PieSegment>()
private

The m pie segment list.


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