Class OverlayDrawing<E extends OverlayDrawing.Element<?>>

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static interface  OverlayDrawing.Element<T>  
    • Constructor Summary

      Constructors 
      Constructor Description
      OverlayDrawing​(@NotNull java.util.List<E> elements)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void dispose()
      Disposes the object by performing required cleanup operations.
      @NotNull java.util.List<E> getElements()  
      boolean isDisposed()  
      void showFor​(float duration)
      Defines how long the drawing should be shown (in seconds).
      • Methods inherited from class java.lang.Object

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

      • OverlayDrawing

        public OverlayDrawing​(@NotNull
                              @NotNull java.util.List<E> elements)
    • Method Detail

      • showFor

        public void showFor​(float duration)
        Defines how long the drawing should be shown (in seconds). Has no effect when isDisposed() already returns true.
        Parameters:
        duration - defines time in seconds to show the drawing
      • getElements

        @NotNull
        public @NotNull java.util.List<E> getElements()
      • isDisposed

        public boolean isDisposed()
      • dispose

        public void dispose()
        Description copied from interface: Disposable
        Disposes the object by performing required cleanup operations.
        Specified by:
        dispose in interface Disposable