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.
- 参数
-
| dataIndex | the data index |
| value | the value |
| startAngle | the start angle |
| angle | the 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.
- 参数
-
| datasetSize | the 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.
- 参数
-
| screenPoint | the screen point |
- 返回
- angle in degress from 0-360.
| SeriesSelection com.ab.view.chart.PieMapper.getSeriesAndPointForScreenCoordinate |
( |
Point |
screenPoint | ) |
|
|
inline |
| boolean com.ab.view.chart.PieMapper.isOnPieChart |
( |
Point |
screenPoint | ) |
|
|
inline |
| void com.ab.view.chart.PieMapper.setDimensions |
( |
int |
pieRadius, |
|
|
int |
centerX, |
|
|
int |
centerY |
|
) |
| |
|
inline |
Set PieChart location on screen.
- 参数
-
| pieRadius | the pie radius |
| centerX | the center x |
| centerY | the center y |
| int com.ab.view.chart.PieMapper.mCenterX |
|
private |
| int com.ab.view.chart.PieMapper.mCenterY |
|
package |
| int com.ab.view.chart.PieMapper.mPieChartRadius |
|
private |
该类的文档由以下文件生成: