Package 

Class ZoomEngine.SimpleListener

  • All Implemented Interfaces:
    com.otaliastudios.zoom.ZoomEngine.Listener

    
    public abstract class ZoomEngine.SimpleListener
     implements ZoomEngine.Listener
                        

    A simple implementation of Listener that will extract the translation and scale values from the output matrix.

    • Method Summary

      Modifier and Type Method Description
      Unit onUpdate(ZoomEngine engine, Matrix matrix) Notifies that the inner matrix was updated.
      • Methods inherited from class com.otaliastudios.zoom.ZoomEngine.SimpleListener

        onIdle
      • Methods inherited from class java.lang.Object

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

      • ZoomEngine.SimpleListener

        ZoomEngine.SimpleListener()
    • Method Detail

      • onUpdate

         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