public class BarChartRenderer extends BarLineScatterCandleBubbleRenderer
BarLineScatterCandleBubbleRenderer.XBounds| Modifier and Type | Field and Description |
|---|---|
protected android.graphics.Paint |
mBarBorderPaint |
protected BarBuffer[] |
mBarBuffers |
protected android.graphics.RectF |
mBarRect
the rect object that is used for drawing the bars
|
protected BarDataProvider |
mChart |
protected android.graphics.Paint |
mShadowPaint |
mXBoundsmAnimator, mDrawPaint, mHighlightPaint, mRenderPaint, mValuePaintmViewPortHandler| Constructor and Description |
|---|
BarChartRenderer(BarDataProvider 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,
IBarDataSet dataSet,
int index) |
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.
|
void |
initBuffers()
Initializes the buffers used for rendering with a new size.
|
protected void |
prepareBarHighlight(float x,
float y1,
float y2,
float barWidthHalf,
Transformer trans) |
protected void |
setHighlightDrawPos(Highlight high,
android.graphics.RectF bar)
Sets the drawing position of the highlight object based on the riven bar-rect.
|
isInBoundsX, shouldDrawValuesapplyValueTextStyle, getPaintHighlight, getPaintRender, getPaintValues, isDrawingValuesAllowedprotected BarDataProvider mChart
protected android.graphics.RectF mBarRect
protected BarBuffer[] mBarBuffers
protected android.graphics.Paint mShadowPaint
protected android.graphics.Paint mBarBorderPaint
public BarChartRenderer(BarDataProvider chart, ChartAnimator animator, ViewPortHandler viewPortHandler)
public void initBuffers()
DataRendererinitBuffers in class DataRendererpublic void drawData(android.graphics.Canvas c)
DataRendererdrawData in class DataRendererprotected void drawDataSet(android.graphics.Canvas c,
IBarDataSet dataSet,
int index)
protected void prepareBarHighlight(float x,
float y1,
float y2,
float barWidthHalf,
Transformer trans)
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 drawHighlighted(android.graphics.Canvas c,
Highlight[] indices)
DataRendererdrawHighlighted in class DataRendererindices - the highlighted valuesprotected void setHighlightDrawPos(Highlight high, android.graphics.RectF bar)
high - public void drawExtras(android.graphics.Canvas c)
DataRendererdrawExtras in class DataRenderer