Package 

Interface Overlay


  • 
    public interface Overlay
    
                        

    Base interface for overlays.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      enum Overlay.Target
    • Method Summary

      Modifier and Type Method Description
      abstract void drawOn(Overlay.Target target, Canvas canvas) Called for this overlay to draw itself on the specified target and canvas.
      abstract boolean drawsOn(Overlay.Target target) Called to understand if this overlay would like to draw onto the giventarget or not.
      • Methods inherited from class java.lang.Object

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

      • drawOn

         abstract void drawOn(Overlay.Target target, Canvas canvas)

        Called for this overlay to draw itself on the specified target and canvas.

        Parameters:
        target - target
        canvas - target canvas
      • drawsOn

         abstract boolean drawsOn(Overlay.Target target)

        Called to understand if this overlay would like to draw onto the giventarget or not. If true is returned, drawOn can becalled at a future time.

        Parameters:
        target - the target