Package 

Interface OnDrawListener


  • 
    public interface OnDrawListener
    
                        

    Listener for callbacks when drawing on the chart.

    • Method Summary

      Modifier and Type Method Description
      abstract void onEntryAdded(Entry entry) Called whenever an entry is added with the finger.
      abstract void onEntryMoved(Entry entry) Called whenever an entry is moved by the user after beeing highlighted
      abstract void onDrawFinished(DataSet<out Object> dataSet) Called when drawing finger is lifted and the draw is finished.
      • Methods inherited from class java.lang.Object

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

      • onEntryAdded

         abstract void onEntryAdded(Entry entry)

        Called whenever an entry is added with the finger. Note this is also called for entries that are generated by thelibrary, when the touch gesture is too fast and skips points.

        Parameters:
        entry - the last drawn entry
      • onEntryMoved

         abstract void onEntryMoved(Entry entry)

        Called whenever an entry is moved by the user after beeing highlighted

      • onDrawFinished

         abstract void onDrawFinished(DataSet<out Object> dataSet)

        Called when drawing finger is lifted and the draw is finished.

        Parameters:
        dataSet - the last drawn DataSet