public class BubbleChartRenderer extends BarLineScatterCandleBubbleRenderer
BarLineScatterCandleBubbleRenderer.XBounds| Modifier and Type | Field and Description |
|---|---|
protected BubbleDataProvider |
mChart |
mXBoundsmAnimator, mDrawPaint, mHighlightPaint, mRenderPaint, mValuePaintmViewPortHandler| Constructor and Description |
|---|
BubbleChartRenderer(BubbleDataProvider chart,
ChartAnimator animator,
ViewPortHandler viewPortHandler) |
| Modifier and Type | Method and Description |
|---|---|
void |
drawData(android.graphics.Canvas c)
Draws the actual data in form of lines, bars, ...
|
protected void |
drawDataSet(android.graphics.Canvas c,
IBubbleDataSet dataSet) |
void |
drawExtras(android.graphics.Canvas c)
Draws any kind of additional information (e.g.
|
void |
drawHighlighted(android.graphics.Canvas c,
Highlight[] indices)
Draws all highlight indicators for the values that are currently highlighted.
|
void |
drawValue(android.graphics.Canvas c,
java.lang.String valueText,
float x,
float y,
int color)
Draws the value of the given entry by using the provided IValueFormatter.
|
void |
drawValues(android.graphics.Canvas c)
Loops over all Entrys and draws their values.
|
protected float |
getShapeSize(float entrySize,
float maxSize,
float reference,
boolean normalizeSize) |
void |
initBuffers()
Initializes the buffers used for rendering with a new size.
|
isInBoundsX, shouldDrawValuesapplyValueTextStyle, getPaintHighlight, getPaintRender, getPaintValues, isDrawingValuesAllowedprotected BubbleDataProvider mChart
public BubbleChartRenderer(BubbleDataProvider chart, ChartAnimator animator, ViewPortHandler viewPortHandler)
public void initBuffers()
DataRendererinitBuffers in class DataRendererpublic void drawData(android.graphics.Canvas c)
DataRendererdrawData in class DataRendererprotected float getShapeSize(float entrySize,
float maxSize,
float reference,
boolean normalizeSize)
protected void drawDataSet(android.graphics.Canvas c,
IBubbleDataSet dataSet)
public void drawValues(android.graphics.Canvas c)
DataRendererdrawValues in class DataRendererpublic void drawValue(android.graphics.Canvas c,
java.lang.String valueText,
float x,
float y,
int color)
DataRendererdrawValue in class DataRendererc - canvasvalueText - label to drawx - positiony - positionpublic void drawExtras(android.graphics.Canvas c)
DataRendererdrawExtras in class DataRendererpublic void drawHighlighted(android.graphics.Canvas c,
Highlight[] indices)
DataRendererdrawHighlighted in class DataRendererindices - the highlighted values