public interface IMarker
| 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.
|
MPPointF |
getOffset() |
MPPointF |
getOffsetForDrawingAtPoint(float posX,
float posY) |
void |
refreshContent(Entry e,
Highlight highlight)
This method enables a specified custom IMarker to update it's content every time the IMarker is redrawn.
|
MPPointF getOffset()
MPPointF getOffsetForDrawingAtPoint(float posX, float posY)
posX - 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.void refreshContent(Entry e, Highlight highlight)
e - 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).void draw(android.graphics.Canvas canvas,
float posX,
float posY)
canvas - posX - posY -