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

Public 成员函数

 RoundChart (CategorySeries dataset, DefaultRenderer renderer)
 
void drawTitle (Canvas canvas, int x, int y, int width, Paint paint)
 
int getLegendShapeWidth (int seriesIndex)
 
void drawLegendShape (Canvas canvas, SimpleSeriesRenderer renderer, float x, float y, int seriesIndex, Paint paint)
 
DefaultRenderer getRenderer ()
 
int getCenterX ()
 
int getCenterY ()
 
void setCenterX (int centerX)
 
void setCenterY (int centerY)
 
- Public 成员函数 继承自 com.ab.view.chart.AbstractChart
abstract void draw (Canvas canvas, int x, int y, int width, int height, Paint paint)
 
boolean isVertical (DefaultRenderer renderer)
 
abstract int getLegendShapeWidth (int seriesIndex)
 
abstract void drawLegendShape (Canvas canvas, SimpleSeriesRenderer renderer, float x, float y, int seriesIndex, Paint paint)
 
boolean isNullValue (double value)
 
SeriesSelection getSeriesAndPointForScreenCoordinate (Point screenPoint)
 

Protected 属性

CategorySeries mDataset
 
DefaultRenderer mRenderer
 
int mCenterX = NO_VALUE
 
int mCenterY = NO_VALUE
 

静态 Protected 属性

static final int SHAPE_WIDTH = 10
 
static final int NO_VALUE = Integer.MAX_VALUE
 

额外继承的成员函数

- Protected 成员函数 继承自 com.ab.view.chart.AbstractChart
void drawBackground (DefaultRenderer renderer, Canvas canvas, int x, int y, int width, int height, Paint paint, boolean newColor, int color)
 
int drawLegend (Canvas canvas, DefaultRenderer renderer, String[] titles, int left, int right, int y, int width, int height, int legendSize, Paint paint, boolean calculate)
 
void drawString (Canvas canvas, String text, float x, float y, Paint paint)
 
boolean getExceed (float currentWidth, DefaultRenderer renderer, int right, int width)
 
String getLabel (double label)
 
void drawPath (Canvas canvas, float[] points, Paint paint, boolean circular)
 
int getLegendSize (DefaultRenderer renderer, int defaultHeight, float extraHeight)
 
void drawLabel (Canvas canvas, String labelText, DefaultRenderer renderer, List< RectF > prevLabelsBounds, int centerX, int centerY, float shortRadius, float longRadius, float currentAngle, float angle, int left, int right, int color, Paint paint, boolean line)
 

详细描述

An abstract class to be extended by round like chart rendering classes.

构造及析构函数说明

com.ab.view.chart.RoundChart.RoundChart ( CategorySeries  dataset,
DefaultRenderer  renderer 
)
inline

Round chart.

参数
datasetthe series dataset
rendererthe series renderer

成员函数说明

void com.ab.view.chart.RoundChart.drawLegendShape ( Canvas  canvas,
SimpleSeriesRenderer  renderer,
float  x,
float  y,
int  seriesIndex,
Paint  paint 
)
inline

The graphical representation of the legend shape.

参数
canvasthe canvas to paint to
rendererthe series renderer
xthe x value of the point the shape should be drawn at
ythe y value of the point the shape should be drawn at
seriesIndexthe series index
paintthe paint to be used for drawing
void com.ab.view.chart.RoundChart.drawTitle ( Canvas  canvas,
int  x,
int  y,
int  width,
Paint  paint 
)
inline

The graphical representation of the round chart title.

参数
canvasthe canvas to paint to
xthe top left x value of the view to draw to
ythe top left y value of the view to draw to
widththe width of the view to draw to
paintthe paint
int com.ab.view.chart.RoundChart.getCenterX ( )
inline

Returns the center on X axis.

返回
the center on X axis
int com.ab.view.chart.RoundChart.getCenterY ( )
inline

Returns the center on Y axis.

返回
the center on Y axis
int com.ab.view.chart.RoundChart.getLegendShapeWidth ( int  seriesIndex)
inline

Returns the legend shape width.

参数
seriesIndexthe series index
返回
the legend shape width
DefaultRenderer com.ab.view.chart.RoundChart.getRenderer ( )
inline

Returns the renderer.

返回
the renderer
void com.ab.view.chart.RoundChart.setCenterX ( int  centerX)
inline

Sets a new center on X axis.

参数
centerXcenter on X axis
void com.ab.view.chart.RoundChart.setCenterY ( int  centerY)
inline

Sets a new center on Y axis.

参数
centerYcenter on Y axis

类成员变量说明

int com.ab.view.chart.RoundChart.mCenterX = NO_VALUE
protected

The chart center X axis.

int com.ab.view.chart.RoundChart.mCenterY = NO_VALUE
protected

The chart center y axis.

CategorySeries com.ab.view.chart.RoundChart.mDataset
protected

The series dataset.

DefaultRenderer com.ab.view.chart.RoundChart.mRenderer
protected

The series renderer.

final int com.ab.view.chart.RoundChart.NO_VALUE = Integer.MAX_VALUE
staticprotected

A no value constant.

final int com.ab.view.chart.RoundChart.SHAPE_WIDTH = 10
staticprotected

The legend shape width.


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