public abstract class Renderer
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected int |
mMaxX
the maximum value on the x-axis that should be plotted
|
protected int |
mMinX
the minimum value on the x-axis that should be plotted
|
protected ViewPortHandler |
mViewPortHandler
the component that handles the drawing area of the chart and it's offsets
|
| Constructor and Description |
|---|
Renderer(ViewPortHandler viewPortHandler) |
| Modifier and Type | Method and Description |
|---|---|
void |
calcXBounds(BarLineScatterCandleBubbleDataProvider dataProvider,
int xAxisModulus)
Calculates the minimum and maximum x-value the chart can currently
display (with the given zoom level).
|
protected boolean |
fitsBounds(float val,
float min,
float max)
Returns true if the specified value fits in between the provided min
and max bounds, false if not.
|
protected ViewPortHandler mViewPortHandler
protected int mMinX
protected int mMaxX
public Renderer(ViewPortHandler viewPortHandler)
protected boolean fitsBounds(float val,
float min,
float max)
val - min - max - public void calcXBounds(BarLineScatterCandleBubbleDataProvider dataProvider, int xAxisModulus)
dataProvider - xAxisModulus -