Public 成员函数 | |
| 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) |
Protected 成员函数 | |
| 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) |
Protected 属性 | |
| XYMultipleSeriesDataset | mDataset |
| XYMultipleSeriesRenderer | mRenderer |
Private 成员函数 | |
| List< Double > | getValidLabels (List< Double > labels) |
| void | setStroke (Cap cap, Join join, float miter, Style style, PathEffect pathEffect, Paint paint) |
| void | transform (Canvas canvas, float angle, boolean inverse) |
| int | getLabelLinePos (Align align) |
Private 属性 | |
| float | mScale |
| float | mTranslate |
| Point | mCenter |
| Rect | mScreenR |
| final Map< Integer, double[]> | mCalcRange = new HashMap<Integer, double[]>() |
| Map< Integer, List < ClickableArea > > | clickableAreas = new HashMap<Integer, List<ClickableArea>>() |
| Map< Integer, List< Double > > | values = new HashMap<Integer, List<Double>>() |
| Map< Integer, List< Float > > | points = new HashMap<Integer, List<Float>>() |
| final Map< Integer, List < Integer > > | colors = new HashMap<Integer, List<Integer>>() |
| final Map< Integer, List < String > > | explains = new HashMap<Integer, List<String>>() |
The XY chart rendering class.
|
inlineprotected |
Instantiates a new xY chart.
|
inline |
Builds a new XY chart instance.
| dataset | the multiple series dataset |
| renderer | the multiple series renderer |
|
abstractprotected |
Returns the clickable areas for all passed points.
| points | the array of points |
| values | the array of values of each point |
| yAxisValue | the minimum value of the y axis |
| seriesIndex | the index of the series to which the points belong |
| startIndex | the start index of the rendering points |
|
inline |
The graphical representation of the XY chart.
| canvas | the canvas to paint to |
| x | the top left x value of the view to draw to |
| y | the top left y value of the view to draw to |
| width | the width of the view to draw to |
| height | the height of the view to draw to |
| paint | the paint |
|
inlineprotected |
The graphical representation of the series values as text. 绘制点上的文本 显示的文本判断两点之间距离100以内不显示中间的点的文本
| canvas | the canvas to paint to |
| series | the series to be painted |
| renderer | the series renderer |
| paint | the paint to be used for drawing |
| points | the array of points to be used for drawing the series |
| seriesIndex | the index of the series currently being drawn |
| startIndex | the start index of the rendering points |
|
inlineprotected |
Draws the series.
| series | the series |
| canvas | the canvas |
| paint | the paint object |
| pointsList | the points to be rendered |
| colorsList | the colors list |
| seriesRenderer | the series renderer |
| yAxisValue | the y axis value in pixels |
| seriesIndex | the series index |
| or | the orientation |
| startIndex | the start index of the rendering points |
|
abstract |
The graphical representation of a series.
| canvas | the canvas to paint to |
| paint | the paint to be used for drawing |
| points | the array of points to be used for drawing the series |
| colors | the colors |
| seriesRenderer | the series renderer |
| yAxisValue | the minimum value of the y axis |
| seriesIndex | the index of the series currently being drawn |
| startIndex | the start index of the rendering points |
|
inlineprotected |
The graphical representation of a text, to handle both HORIZONTAL and VERTICAL orientations and extra rotation angles.
| canvas | the canvas to paint to |
| text | the text to be rendered |
| x | the X axis location of the text |
| y | the Y axis location of the text |
| paint | the paint to be used for drawing |
| extraAngle | the text angle |
|
inlineprotected |
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 |
|
inlineprotected |
The graphical representation of the text labels on the X axis.
| xTextLabelLocations | the X text label locations |
| canvas | the canvas to paint to |
| paint | the paint to be used for drawing |
| showLabels | the show labels |
| 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 |
|
inlineprotected |
The graphical representation of the labels on the X axis.
| allYLabels | the Y labels values |
| canvas | the canvas to paint to |
| paint | the paint to be used for drawing |
| maxScaleNumber | the maximum scale number |
| left | the left value of the labels area |
| right | the right value of the labels area |
| bottom | the bottom value of the labels area |
| yPixelsPerUnit | the amount of pixels per one unit in the chart labels |
| minY | the minimum value on the Y axis in the chart |
|
inline |
Gets the calc range.
| scale | the scale |
|
abstract |
Returns the chart type identifier.
|
inline |
Gets the dataset.
|
inline |
Returns the default axis minimum.
|
inline |
描述:获取点的说明.
|
inlineprivate |
Gets the label line pos.
| align | the align |
|
inline |
描述:获取点的坐标值 形如(1,2,2,3) 标示2个点,x=1 y=2是一个点 ,另一个点是x=2 y=3.
|
inline |
Returns the scatter chart to be used for drawing the data points.
|
inline |
描述:获取这个XY复合渲染器.
|
inlineprotected |
Gets the screen r.
|
inline |
描述:TODO.
| screenPoint | the screen point |
|
inlineprivate |
Gets the valid labels.
| labels | the labels |
|
inline |
描述:获取点的值.
|
inlineprotected |
Gets the x labels.
| min | the min |
| max | the max |
| count | the count |
|
inlineprotected |
Gets the y labels.
| minY | the min y |
| maxY | the max y |
| maxScaleNumber | the max scale number |
|
inlineprotected |
Returns if the chart should display the null values.
|
inline |
Returns if the chart should display the points as a certain shape.
| renderer | the series renderer |
|
inline |
Sets the calc range.
| range | the range |
| scale | the scale |
|
inlineprotected |
Sets the dataset renderer.
| dataset | the dataset |
| renderer | the renderer |
|
inlineprotected |
Sets the screen r.
| screenR | the new screen r |
|
inlineprivate |
Sets the stroke.
| cap | the cap |
| join | the join |
| miter | the miter |
| style | the style |
| pathEffect | the path effect |
| paint | the paint |
|
inline |
To real point.
| screenX | the screen x |
| screenY | the screen y |
|
inline |
Transforms a screen point to a real coordinates point.
| screenX | the screen x axis value |
| screenY | the screen y axis value |
| scale | the scale |
|
inline |
To screen point.
| realPoint | the real point |
|
inline |
To screen point.
| realPoint | the real point |
| scale | the scale |
|
inlineprivate |
Transform the canvas such as it can handle both HORIZONTAL and VERTICAL orientations.
| canvas | the canvas to paint to |
| angle | the angle of rotation |
| inverse | if the inverse transform needs to be applied |
|
private |
The clickable areas for all points. The array index is the series index, and the RectF list index is the point index in that series.
|
private |
每个数据点的简要 说明.
|
private |
每个数据点的简要 说明.
|
private |
The calculated range.
|
private |
The canvas center point.
|
protected |
The multiple series dataset.
|
protected |
The multiple series renderer.
|
private |
The current scale value.
|
private |
The visible chart area, in screen coordinates.
|
private |
The current translate value.
|
private |
点的真实坐标.
|
private |
点的值.
1.8.8