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 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.
-
-
-
Method Detail
-
setColor
public void setColor(java.awt.Color color)
Description copied from interface:Overlay
Set the color of this overlay.
-
getColor
public java.awt.Color getColor()
-
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 interfaceOverlay
- Parameters:
visible
- true to show the marker, false to hide.
-
isVisible
public boolean isVisible()
-
delete
public void delete()
Description copied from interface:Overlay
Delete this marker.
-
-