Class MapViewDrawing.MapViewMarkerOverlay
- java.lang.Object
-
- org.insa.graphs.gui.drawing.components.MapViewDrawing.MapViewOverlay
-
- org.insa.graphs.gui.drawing.components.MapViewDrawing.MapViewMarkerOverlay
-
- All Implemented Interfaces:
MarkerOverlay
,Overlay
- Enclosing class:
- MapViewDrawing
private class MapViewDrawing.MapViewMarkerOverlay extends MapViewDrawing.MapViewOverlay implements MarkerOverlay
MarkerOverlay for MapViewDrawing.
-
-
Field Summary
Fields Modifier and Type Field Description private Drawing.AlphaMode
alphaMode
private java.awt.Color
innerColor
-
Fields inherited from class org.insa.graphs.gui.drawing.components.MapViewDrawing.MapViewOverlay
color, layers
-
-
Constructor Summary
Constructors Constructor Description MapViewMarkerOverlay(org.mapsforge.map.layer.overlay.Marker marker, java.awt.Color outer, java.awt.Color innerColor, Drawing.AlphaMode alphaMode)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Point
getPoint()
void
moveTo(Point point)
Move this marker to the specified location.void
setColor(java.awt.Color outer)
Set the color of this overlay.-
Methods inherited from class org.insa.graphs.gui.drawing.components.MapViewDrawing.MapViewOverlay
delete, getColor, isVisible, redraw, setVisible
-
-
-
-
Field Detail
-
alphaMode
private final Drawing.AlphaMode alphaMode
-
innerColor
private java.awt.Color innerColor
-
-
Constructor Detail
-
MapViewMarkerOverlay
public MapViewMarkerOverlay(org.mapsforge.map.layer.overlay.Marker marker, java.awt.Color outer, java.awt.Color innerColor, Drawing.AlphaMode alphaMode)
-
-
Method Detail
-
getPoint
public Point getPoint()
- Specified by:
getPoint
in interfaceMarkerOverlay
- Returns:
- The current position of this marker.
-
setColor
public void setColor(java.awt.Color outer)
Description copied from interface:Overlay
Set the color of this overlay.- Specified by:
setColor
in interfaceOverlay
- Overrides:
setColor
in classMapViewDrawing.MapViewOverlay
- Parameters:
outer
- New color for the overlay.
-
moveTo
public void moveTo(Point point)
Description copied from interface:MarkerOverlay
Move this marker to the specified location.- Specified by:
moveTo
in interfaceMarkerOverlay
- Parameters:
point
- New position for the marker.
-
-