Package 

Interface IMarker

    • Method Summary

      Modifier and Type Method Description
      abstract MPPointF getOffset()
      abstract MPPointF getOffsetForDrawingAtPoint(float posX, float posY)
      abstract void refreshContent(Entry e, Highlight highlight) This method enables a specified custom IMarker to update it's content every time the IMarker is redrawn.
      abstract void draw(Canvas canvas, float posX, float posY) Draws the IMarker on the given position on the screen with the given Canvas object.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getOffsetForDrawingAtPoint

         abstract MPPointF getOffsetForDrawingAtPoint(float posX, float posY)
        Parameters:
        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.
      • refreshContent

         abstract void refreshContent(Entry e, Highlight highlight)

        This method enables a specified custom IMarker to update it's content every time the IMarker is redrawn.

        Parameters:
        e - The Entry the IMarker belongs to.
        highlight - The highlight object contains information about the highlighted value such as it's dataset-index, theselected range or stack-index (only stacked bar entries).
      • draw

         abstract void draw(Canvas canvas, float posX, float posY)

        Draws the IMarker on the given position on the screen with the given Canvas object.