Public 成员函数 | |
| 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 成员函数 | |
| 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) |
Private 成员函数 | |
| String | getFitText (String text, float width, Paint paint) |
静态 Private 成员函数 | |
| static float[] | calculateDrawPoints (float p1x, float p1y, float p2x, float p2y, int screenHeight, int screenWidth) |
An abstract class to be implemented by the chart rendering classes.
|
inlinestaticprivate |
Calculate draw points.
| p1x | the p1x |
| p1y | the p1y |
| p2x | the p2x |
| p2y | the p2y |
| screenHeight | the screen height |
| screenWidth | the screen width |
|
abstract |
The graphical representation of the 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 |
Draws the chart background.
| renderer | the chart renderer |
| 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 used for drawing |
| newColor | if a new color is to be used |
| color | the color to be used |
|
inlineprotected |
Draws a text label.
| canvas | the canvas |
| labelText | the label text |
| renderer | the renderer |
| prevLabelsBounds | the previous rendered label bounds |
| centerX | the round chart center on X axis |
| centerY | the round chart center on Y axis |
| shortRadius | the short radius for the round chart |
| longRadius | the long radius for the round chart |
| currentAngle | the current angle |
| angle | the label extra angle |
| left | the left side |
| right | the right side |
| color | the label color |
| paint | the paint |
| line | if a line to the label should be drawn |
|
inlineprotected |
Draws the chart legend.
| canvas | the canvas to paint to |
| renderer | the series renderer |
| titles | the titles to go to the legend |
| left | the left X value of the area to draw to |
| right | the right X value of the area to draw to |
| y | the y value of the area to draw to |
| width | the width of the area to draw to |
| height | the height of the area to draw to |
| legendSize | the legend size |
| paint | the paint to be used for drawing |
| calculate | if only calculating the legend size |
|
abstract |
The graphical representation of the legend shape.
| canvas | the canvas to paint to |
| renderer | the series renderer |
| x | the x value of the point the shape should be drawn at |
| y | the y value of the point the shape should be drawn at |
| seriesIndex | the series index |
| paint | the paint to be used for drawing |
|
inlineprotected |
The graphical representation of a path.
| canvas | the canvas to paint to |
| points | the points that are contained in the path to paint |
| paint | the paint to be used for painting |
| circular | if the path ends with the start point |
|
inlineprotected |
Draw a multiple lines string.
| canvas | the canvas to paint to |
| text | the text to be painted |
| x | the x value of the area to draw to |
| y | the y value of the area to draw to |
| paint | the paint to be used for drawing |
|
inlineprotected |
Calculates if the current width exceeds the total width.
| currentWidth | the current width |
| renderer | the renderer |
| right | the right side pixel value |
| width | the total width |
|
inlineprivate |
Calculates the best text to fit into the available space.
| text | the entire text |
| width | the width to fit the text into |
| paint | the paint |
|
inlineprotected |
Makes sure the fraction digit is not displayed, if not needed.
| label | the input label value |
|
abstract |
Returns the legend shape width.
| seriesIndex | the series index |
|
inlineprotected |
Calculates the current legend size.
| renderer | the renderer |
| defaultHeight | the default height |
| extraHeight | the added extra height |
|
inline |
Given screen coordinates, returns the series and point indexes of a chart element. If there is no chart element (line, point, bar, etc) at those coordinates, null is returned.
| screenPoint | the screen point |
|
inline |
Checks if is null value.
| value | the value |
|
inline |
Checks if the current chart is rendered as vertical.
| renderer | the renderer |
1.8.8