Package 

Interface ZoomEngine.Listener


  • 
    public interface ZoomEngine.Listener
    
                        

    An interface to listen for updates in the inner matrix. This will be called typically on animation frames.

    • Method Summary

      Modifier and Type Method Description
      abstract Unit onUpdate(ZoomEngine engine, Matrix matrix) Notifies that the inner matrix was updated.
      abstract Unit onIdle(ZoomEngine engine) Notifies that the engine is in an idle state.
      • Methods inherited from class java.lang.Object

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

      • onUpdate

         abstract Unit onUpdate(ZoomEngine engine, Matrix matrix)

        Notifies that the inner matrix was updated. The passed matrix can be changed, but is not guaranteed to be stable. For a long lasting value it is recommended to make a copy of it using Matrix.set.

        Parameters:
        engine - the engine hosting the matrix
        matrix - a matrix with the given updates
      • onIdle

         abstract Unit onIdle(ZoomEngine engine)

        Notifies that the engine is in an idle state. This means that (most probably) running animations have completed and there are no touch actions in place.

        Parameters:
        engine - this engine