Class BasicDrawing.BasicOverlay

    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.awt.Color color  
      protected boolean visible  
    • Constructor Summary

      Constructors 
      Constructor Description
      BasicOverlay​(java.awt.Color color)  
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      void delete()
      Delete this marker.
      void draw​(java.awt.Graphics2D g)
      Draw the given overlay.
      abstract void drawImpl​(java.awt.Graphics2D g)  
      java.awt.Color getColor()  
      abstract int getZLevel()  
      boolean isVisible()  
      void redraw()
      Request a redraw of this overlay - This can start a full redraw of the inner drawing.
      void setColor​(java.awt.Color color)
      Set the color of this overlay.
      void setVisible​(boolean visible)
      Show or hide this marker - A marker should be visible when created.
      • Methods inherited from class java.lang.Object

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

      • visible

        protected boolean visible
      • color

        protected java.awt.Color color
    • Constructor Detail

      • BasicOverlay

        public BasicOverlay​(java.awt.Color color)
    • Method Detail

      • getZLevel

        public abstract int getZLevel()
        Returns:
        The Z level of this overlay (>= 1).
      • setColor

        public void setColor​(java.awt.Color color)
        Description copied from interface: Overlay
        Set the color of this overlay.
        Specified by:
        setColor in interface Overlay
        Parameters:
        color - New color for the overlay.
      • getColor

        public java.awt.Color getColor()
        Specified by:
        getColor in interface Overlay
        Returns:
        The current color of this overlay.
      • setVisible

        public void setVisible​(boolean visible)
        Description copied from interface: Overlay
        Show or hide this marker - A marker should be visible when created.
        Specified by:
        setVisible in interface Overlay
        Parameters:
        visible - true to show the marker, false to hide.
      • isVisible

        public boolean isVisible()
        Specified by:
        isVisible in interface Overlay
        Returns:
        true if this overlay is visible.
      • delete

        public void delete()
        Description copied from interface: Overlay
        Delete this marker.
        Specified by:
        delete in interface Overlay
      • draw

        public void draw​(java.awt.Graphics2D g)
        Draw the given overlay.
      • drawImpl

        public abstract void drawImpl​(java.awt.Graphics2D g)
      • redraw

        public void redraw()
        Description copied from interface: Overlay
        Request a redraw of this overlay - This can start a full redraw of the inner drawing.
        Specified by:
        redraw in interface Overlay