Class MapViewDrawing.MapViewOverlay

    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.awt.Color color  
      protected org.mapsforge.map.layer.Layer[] layers  
    • Constructor Summary

      Constructors 
      Constructor Description
      MapViewOverlay​(org.mapsforge.map.layer.Layer[] layers, java.awt.Color color)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void delete()
      Delete this marker.
      java.awt.Color getColor()  
      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

      • layers

        protected org.mapsforge.map.layer.Layer[] layers
      • color

        protected java.awt.Color color
    • Constructor Detail

      • MapViewOverlay

        public MapViewOverlay​(org.mapsforge.map.layer.Layer[] layers,
                              java.awt.Color color)
    • Method Detail

      • 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
      • 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