| AndBase开发框架 1.6

- 首页
- 相关页面
- 命名空间
- 类
- 文件

- 类列表
- 类索引
- 类继承关系
- 类成员

全部 类 命名空间 文件 函数 变量 枚举值 页
Public 成员函数 | 静态 Public 属性 | Protected 成员函数 | 包函数 | Private 成员函数 | Private 属性 | 所有成员列表
com.ab.view.chart.TimeChart类 参考
类 com.ab.view.chart.TimeChart 继承关系图:

## Public 成员函数
| TimeChart (XYMultipleSeriesDataset dataset, XYMultipleSeriesRenderer renderer)
String | getDateFormat ()
void | setDateFormat (String format)
String | getChartType ()
Public 成员函数 继承自 com.ab.view.chart.LineChart
| LineChart (XYMultipleSeriesDataset dataset, XYMultipleSeriesRenderer renderer)
void | drawSeries (Canvas canvas, Paint paint, float[] points, int[] colors, SimpleSeriesRenderer seriesRenderer, float yAxisValue, int seriesIndex, int startIndex)
int | getLegendShapeWidth (int seriesIndex)
void | drawLegendShape (Canvas canvas, SimpleSeriesRenderer renderer, float x, float y, int seriesIndex, Paint paint)
boolean | isRenderPoints (SimpleSeriesRenderer renderer)
ScatterChart | getPointsChart ()
String | getChartType ()
Public 成员函数 继承自 com.ab.view.chart.XYChart
| XYChart (XYMultipleSeriesDataset dataset, XYMultipleSeriesRenderer renderer)
void | draw (Canvas canvas, int x, int y, int width, int height, Paint paint)
XYMultipleSeriesRenderer | getRenderer ()
XYMultipleSeriesDataset | getDataset ()
double[] | getCalcRange (int scale)
void | setCalcRange (double[] range, int scale)
double[] | toRealPoint (float screenX, float screenY)
double[] | toScreenPoint (double[] realPoint)
double[] | toRealPoint (float screenX, float screenY, int scale)
double[] | toScreenPoint (double[] realPoint, int scale)
SeriesSelection | getSeriesAndPointForScreenCoordinate (final Point screenPoint)
abstract void | drawSeries (Canvas canvas, Paint paint, float[] points, int[] colors, SimpleSeriesRenderer seriesRenderer, float yAxisValue, int seriesIndex, int startIndex)
boolean | isRenderPoints (SimpleSeriesRenderer renderer)
double | getDefaultMinimum ()
ScatterChart | getPointsChart ()
abstract String | getChartType ()
Map< Integer, List< Float > > | getPoints ()
Map< Integer, List< Double > > | getValues ()
Map< Integer, List< String > > | getExplains ()
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)

## 静态 Public 属性
static final String | TYPE = "Time"
static final long | DAY = 24 * 60 * 60 * 1000
静态 Public 属性 继承自 com.ab.view.chart.LineChart
static final String | TYPE = "Line"

## Protected 成员函数
void | drawXLabels (List< Double > xLabels, Double[] xTextLabelLocations, Canvas canvas, Paint paint, int left, int top, int bottom, double xPixelsPerUnit, double minX, double maxX)
List< Double > | getXLabels (double min, double max, int count)
Protected 成员函数 继承自 com.ab.view.chart.LineChart
void | setDatasetRenderer (XYMultipleSeriesDataset dataset, XYMultipleSeriesRenderer renderer)
ClickableArea[] | clickableAreasForPoints (float[] points, double[] values, float yAxisValue, int seriesIndex, int startIndex)
Protected 成员函数 继承自 com.ab.view.chart.XYChart
| XYChart ()
void | setDatasetRenderer (XYMultipleSeriesDataset dataset, XYMultipleSeriesRenderer renderer)
List< Double > | getXLabels (double min, double max, int count)
Map< Integer, List< Double > > | getYLabels (double[] minY, double[] maxY, int maxScaleNumber)
Rect | getScreenR ()
void | setScreenR (Rect screenR)
void | drawSeries (XYSeries series, Canvas canvas, Paint paint, List< Float > pointsList, List< Integer > colorsList, SimpleSeriesRenderer seriesRenderer, float yAxisValue, int seriesIndex, Orientation or, int startIndex)
void | drawChartValuesText (Canvas canvas, XYSeries series, SimpleSeriesRenderer renderer, Paint paint, float[] points, int seriesIndex, int startIndex)
void | drawText (Canvas canvas, String text, float x, float y, Paint paint, float extraAngle)
void | drawXLabels (List< Double > xLabels, Double[] xTextLabelLocations, Canvas canvas, Paint paint, int left, int top, int bottom, double xPixelsPerUnit, double minX, double maxX)
void | drawYLabels (Map< Integer, List< Double >> allYLabels, Canvas canvas, Paint paint, int maxScaleNumber, int left, int right, int bottom, double[] yPixelsPerUnit, double[] minY)
void | drawXTextLabels (Double[] xTextLabelLocations, Canvas canvas, Paint paint, boolean showLabels, int left, int top, int bottom, double xPixelsPerUnit, double minX, double maxX)
abstract ClickableArea[] | clickableAreasForPoints (float[] points, double[] values, float yAxisValue, int seriesIndex, int startIndex)
boolean | isRenderNullValues ()
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)

## 包函数
| TimeChart ()
包函数 继承自 com.ab.view.chart.LineChart
| LineChart ()

## Private 成员函数
DateFormat | getDateFormat (double start, double end)

## Private 属性
String | mDateFormat
Double | mStartPoint

## 额外继承的成员函数
Protected 属性 继承自 com.ab.view.chart.XYChart
XYMultipleSeriesDataset | mDataset
XYMultipleSeriesRenderer | mRenderer

## 详细描述

The time chart rendering class.

## 构造及析构函数说明

com.ab.view.chart.TimeChart.TimeChart | ( |  | ) |
| inline package

Instantiates a new time chart.

com.ab.view.chart.TimeChart.TimeChart | ( | XYMultipleSeriesDataset | dataset,
|  | XYMultipleSeriesRenderer | renderer
| ) |  |
| inline

Builds a new time chart instance.

参数

  dataset | the multiple series dataset
  renderer | the multiple series renderer

## 成员函数说明

void com.ab.view.chart.TimeChart.drawXLabels | ( | List< Double > | xLabels,
|  | Double[] | xTextLabelLocations,
|  | Canvas | canvas,
|  | Paint | paint,
|  | int | left,
|  | int | top,
|  | int | bottom,
|  | double | xPixelsPerUnit,
|  | double | minX,
|  | double | maxX
| ) |  |
| inline protected

The graphical representation of the labels on the X axis.

参数

  xLabels | the X labels values
  xTextLabelLocations | the X text label locations
  canvas | the canvas to paint to
  paint | the paint to be used for drawing
  left | the left value of the labels area
  top | the top value of the labels area
  bottom | the bottom value of the labels area
  xPixelsPerUnit | the amount of pixels per one unit in the chart labels
  minX | the minimum value on the X axis in the chart
  maxX | the maximum value on the X axis in the chart

String com.ab.view.chart.TimeChart.getChartType | ( |  | ) |
| inline

Returns the chart type identifier.

返回
  the chart type

String com.ab.view.chart.TimeChart.getDateFormat | ( |  | ) |
| inline

Returns the date format pattern to be used for formatting the X axis labels.

返回
  the date format pattern for the X axis labels

DateFormat com.ab.view.chart.TimeChart.getDateFormat | ( | double | start,
|  | double | end
| ) |  |
| inline private

Returns the date format pattern to be used, based on the date range.

参数

  start | the start date in milliseconds
  end | the end date in milliseconds

返回
  the date format

List<Double> com.ab.view.chart.TimeChart.getXLabels | ( | double | min,
|  | double | max,
|  | int | count
| ) |  |
| inline protected

描述：TODO.

版本
  v1.0

参数

  min | the min
  max | the max
  count | the count

返回
  the x labels

参见
  com.ab.view.chart.XYChart::getXLabels(double, double, int)

作者
  : amsoft.cn

日期
  ：2013-6-17 上午9:04:48

void com.ab.view.chart.TimeChart.setDateFormat | ( | String | format | ) |
| inline

Sets the date format pattern to be used for formatting the X axis labels.

参数

  format | the date format pattern for the X axis labels. If null, an appropriate default format will be used.

## 类成员变量说明

final long com.ab.view.chart.TimeChart.DAY = 24 * 60 * 60 * 1000
| static

The number of milliseconds in a day.

String com.ab.view.chart.TimeChart.mDateFormat
| private

The date format pattern to be used in formatting the X axis labels.

Double com.ab.view.chart.TimeChart.mStartPoint
| private

The starting point for labels.

final String com.ab.view.chart.TimeChart.TYPE = "Time"
| static

The constant to identify this chart type.

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

- src/com/ab/view/chart/TimeChart.java