| Constructor and Description |
|---|
MarkerImage(android.content.Context context,
int drawableResourceId)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
draw(android.graphics.Canvas canvas,
float posX,
float posY)
Draws the IMarker on the given position on the screen with the given Canvas object.
|
Chart |
getChartView() |
MPPointF |
getOffset() |
MPPointF |
getOffsetForDrawingAtPoint(float posX,
float posY) |
FSize |
getSize() |
void |
refreshContent(Entry e,
Highlight highlight)
This method enables a specified custom IMarker to update it's content every time the IMarker is redrawn.
|
void |
setChartView(Chart chart) |
void |
setOffset(float offsetX,
float offsetY) |
void |
setOffset(MPPointF offset) |
void |
setSize(FSize size) |
public MarkerImage(android.content.Context context,
int drawableResourceId)
context - drawableResourceId - the drawable resource to renderpublic void setOffset(MPPointF offset)
public void setOffset(float offsetX,
float offsetY)
public MPPointF getOffset()
public void setSize(FSize size)
public FSize getSize()
public void setChartView(Chart chart)
public Chart getChartView()
public MPPointF getOffsetForDrawingAtPoint(float posX, float posY)
getOffsetForDrawingAtPoint in interface IMarkerposX - This is the X position at which the marker wants to be drawn.
You can adjust the offset conditionally based on this argument.posY - This is the X position at which the marker wants to be drawn.
You can adjust the offset conditionally based on this argument.public void refreshContent(Entry e, Highlight highlight)
IMarkerrefreshContent in interface IMarkere - The Entry the IMarker belongs to. This can also be any subclass of Entry, like BarEntry or
CandleEntry, simply cast it at runtime.highlight - The highlight object contains information about the highlighted value such as it's dataset-index, the
selected range or stack-index (only stacked bar entries).