Class MapViewDrawing.MapViewOverlay
- java.lang.Object
-
- org.insa.graphs.gui.drawing.components.MapViewDrawing.MapViewOverlay
-
- All Implemented Interfaces:
Overlay
- Direct Known Subclasses:
MapViewDrawing.MapViewMarkerOverlay,MapViewDrawing.MapViewPathOverlay,MapViewDrawing.MapViewPointSetOverlay
- Enclosing class:
- MapViewDrawing
private abstract class MapViewDrawing.MapViewOverlay extends java.lang.Object implements Overlay
Base Overlay for MapViewDrawing overlays.
-
-
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 voiddelete()Delete this marker.java.awt.ColorgetColor()booleanisVisible()voidredraw()Request a redraw of this overlay - This can start a full redraw of the inner drawing.voidsetColor(java.awt.Color color)Set the color of this overlay.voidsetVisible(boolean visible)Show or hide this marker - A marker should be visible when created.
-
-
-
Method Detail
-
setColor
public void setColor(java.awt.Color color)
Description copied from interface:OverlaySet the color of this overlay.
-
getColor
public java.awt.Color getColor()
-
setVisible
public void setVisible(boolean visible)
Description copied from interface:OverlayShow or hide this marker - A marker should be visible when created.- Specified by:
setVisiblein interfaceOverlay- Parameters:
visible- true to show the marker, false to hide.
-
isVisible
public boolean isVisible()
-
delete
public void delete()
Description copied from interface:OverlayDelete this marker.
-
-