de.fhpotsdam.unfolding.marker
Class SimplePolygonMarker
java.lang.Object
de.fhpotsdam.unfolding.marker.AbstractMarker
de.fhpotsdam.unfolding.marker.AbstractShapeMarker
de.fhpotsdam.unfolding.marker.SimplePolygonMarker
- All Implemented Interfaces:
- Marker
public class SimplePolygonMarker
- extends AbstractShapeMarker
Marker representing multiple locations as polygon. Use directly to display as simple colored polygon, or extend it
for custom styles.
When in need of multiple connected polygons (e.g. a country and an island) use MultiMarker with Polygons.
Method Summary |
void |
draw(processing.core.PGraphics pg,
java.util.List<MapPosition> mapPositions)
Draws these markers in outer object coordinate system. |
Methods inherited from class de.fhpotsdam.unfolding.marker.AbstractShapeMarker |
addLocation, addLocations, addLocations, draw, draw, draw, getCentroid, getLocation, getLocation, getLocations, isInside, isInside, isInside, isInsideByLocation, isInsideByLocation, removeLocation, removeLocation, setLocation, setLocations |
Methods inherited from class de.fhpotsdam.unfolding.marker.AbstractMarker |
draw, getDistanceTo, getId, getProperties, getProperty, getScreenPosition, getStringProperty, isHidden, isSelected, setColor, setHidden, setHighlightColor, setHighlightStrokeColor, setId, setLocation, setProperties, setSelected, setStrokeColor, setStrokeWeight |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SimplePolygonMarker
public SimplePolygonMarker()
SimplePolygonMarker
public SimplePolygonMarker(java.util.List<Location> locations)
- Creates a polygon marker.
- Parameters:
locations
- The locations to display as polygon.
SimplePolygonMarker
public SimplePolygonMarker(java.util.List<Location> locations,
java.util.HashMap<java.lang.String,java.lang.Object> properties)
- Creates a polygon marker with additional properties.
- Parameters:
locations
- The locations to display as polygon.properties
- Optional data properties.
draw
public void draw(processing.core.PGraphics pg,
java.util.List<MapPosition> mapPositions)
- Description copied from class:
AbstractShapeMarker
- Draws these markers in outer object coordinate system.
e.g. for labels oriented to the map
- Specified by:
draw
in class AbstractShapeMarker
- Parameters:
pg
- The PGraphics to draw onmapPositions
- The positions in outer object coordinates.