Class SimplePolygonMarker

  extended by de.fhpotsdam.unfolding.marker.AbstractMarker
      extended by de.fhpotsdam.unfolding.marker.AbstractShapeMarker
          extended by de.fhpotsdam.unfolding.marker.SimplePolygonMarker
All Implemented Interfaces:

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.

Field Summary
Fields inherited from class de.fhpotsdam.unfolding.marker.AbstractShapeMarker
Fields inherited from class de.fhpotsdam.unfolding.marker.AbstractMarker
color, hidden, highlightColor, highlightStrokeColor, id, location, properties, selected, strokeColor, strokeWeight
Constructor Summary
SimplePolygonMarker(java.util.List<Location> locations)
          Creates a polygon marker.
SimplePolygonMarker(java.util.List<Location> locations, java.util.HashMap<java.lang.String,java.lang.Object> properties)
          Creates a polygon marker with additional properties.
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

Constructor Detail


public SimplePolygonMarker()


public SimplePolygonMarker(java.util.List<Location> locations)
Creates a polygon marker.

locations - The locations to display as polygon.


public SimplePolygonMarker(java.util.List<Location> locations,
                           java.util.HashMap<java.lang.String,java.lang.Object> properties)
Creates a polygon marker with additional properties.

locations - The locations to display as polygon.
properties - Optional data properties.
Method Detail


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
pg - The PGraphics to draw on
mapPositions - The positions in outer object coordinates.