Class MapViewDrawing.MapViewPointSetOverlay
- java.lang.Object
-
- org.insa.graphs.gui.drawing.components.MapViewDrawing.MapViewOverlay
-
- org.insa.graphs.gui.drawing.components.MapViewDrawing.MapViewPointSetOverlay
-
- All Implemented Interfaces:
Overlay,PointSetOverlay
- Enclosing class:
- MapViewDrawing
private class MapViewDrawing.MapViewPointSetOverlay extends MapViewDrawing.MapViewOverlay implements PointSetOverlay
PointSetOverlay for MapViewDrawing - Not currently implemented.
-
-
Constructor Summary
Constructors Constructor Description MapViewPointSetOverlay()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddPoint(Point point)Add a new point using the current width and color.voidaddPoint(Point point, int width)Set the current width and then add a new point.voidaddPoint(Point point, int width, java.awt.Color color)Add a new point at the given location, with the given color and width, and update the current width and color.voidaddPoint(Point point, java.awt.Color color)Set the current color and then add a new point.private booleanccw(Point a, Point b, Point c)private java.util.List<Point>convexHull(java.util.List<Point> p)voidsetColor(java.awt.Color color)Set the color of this overlay.voidsetWidth(int width)Set the width of this overlay for future addPoint().voidsetWidthAndColor(int width, java.awt.Color color)Set color and width for this overlay for future addPoint().-
Methods inherited from class org.insa.graphs.gui.drawing.components.MapViewDrawing.MapViewOverlay
delete, getColor, isVisible, redraw, setVisible
-
-
-
-
Field Detail
-
points
private java.util.List<Point> points
-
polygon
private final org.mapsforge.map.layer.overlay.Polygon polygon
-
-
Method Detail
-
setColor
public void setColor(java.awt.Color color)
Description copied from interface:OverlaySet the color of this overlay.- Specified by:
setColorin interfaceOverlay- Overrides:
setColorin classMapViewDrawing.MapViewOverlay- Parameters:
color- New color for the overlay.
-
setWidth
public void setWidth(int width)
Description copied from interface:PointSetOverlaySet the width of this overlay for future addPoint().- Specified by:
setWidthin interfacePointSetOverlay- Parameters:
width- New default width for this overlay.
-
setWidthAndColor
public void setWidthAndColor(int width, java.awt.Color color)Description copied from interface:PointSetOverlaySet color and width for this overlay for future addPoint().- Specified by:
setWidthAndColorin interfacePointSetOverlay- Parameters:
width- New default width for this overlay.color- New default color for this overlay.
-
addPoint
public void addPoint(Point point)
Description copied from interface:PointSetOverlayAdd a new point using the current width and color.- Specified by:
addPointin interfacePointSetOverlay- Parameters:
point- Position of the point to add.- See Also:
PointSetOverlay.setWidth(int),Overlay.setColor(Color)
-
addPoint
public void addPoint(Point point, int width)
Description copied from interface:PointSetOverlaySet the current width and then add a new point.- Specified by:
addPointin interfacePointSetOverlay- Parameters:
point- Position of the point to add.width- New default width for this overlay.- See Also:
PointSetOverlay.setWidth(int),PointSetOverlay.addPoint(Point)
-
addPoint
public void addPoint(Point point, java.awt.Color color)
Description copied from interface:PointSetOverlaySet the current color and then add a new point.- Specified by:
addPointin interfacePointSetOverlay- Parameters:
point- Position of the point to add.color- New default color for this overlay.- See Also:
Overlay.setColor(Color),PointSetOverlay.addPoint(Point)
-
addPoint
public void addPoint(Point point, int width, java.awt.Color color)
Description copied from interface:PointSetOverlayAdd a new point at the given location, with the given color and width, and update the current width and color.- Specified by:
addPointin interfacePointSetOverlay- Parameters:
point- Position of the point to add.width- New default width for this overlay.color- New default color for this overlay.- See Also:
PointSetOverlay.setWidth(int),Overlay.setColor(Color),PointSetOverlay.addPoint(Point)
-
-