Class ObserverCallBack

    • Constructor Detail

      • ObserverCallBack

        public ObserverCallBack()
        setup a callback to be used on the Java API level
         // example (called when image appears):
         aRegion.onAppear(anImageOrPattern,
           new ObserverCallBack() {
             appeared(ObserveEvent e) {
               // do something
             }
           }
         );
         
      • ObserverCallBack

        public ObserverCallBack​(java.lang.Object callback,
                                ObserveEvent.Type obsType)
        INTERNAL: callbacks from Jython or JRuby
        Parameters:
        callback - funtion to call
        obsType - observer type
    • Method Detail

      • setType

        public void setType​(ObserveEvent.Type givenType)
        INTERNAL USE
        Parameters:
        givenType - observer type
      • appeared

        public void appeared​(ObserveEvent event)
        to be overwritten to handle appear events
        Parameters:
        event - that happened
      • vanished

        public void vanished​(ObserveEvent event)
        to be overwritten to handle vanish events
        Parameters:
        event - that happened
      • changed

        public void changed​(ObserveEvent event)
        to be overwritten to handle changed events
        Parameters:
        event - that happened
      • findfailed

        public void findfailed​(ObserveEvent event)
        to be overwritten to handle FindFailed events
        Parameters:
        event - that happened
      • missing

        public void missing​(ObserveEvent event)
        to be overwritten to handle image missing events
        Parameters:
        event - that happened
      • happened

        public void happened​(ObserveEvent event)
        to be overwritten to handle generic events
        Parameters:
        event - that happened