de.fhpotsdam.unfolding.marker
Class SimpleLinesMarker
java.lang.Object
de.fhpotsdam.unfolding.marker.AbstractMarker
de.fhpotsdam.unfolding.marker.AbstractShapeMarker
de.fhpotsdam.unfolding.marker.SimpleLinesMarker
- All Implemented Interfaces:
- Marker
public class SimpleLinesMarker
- extends AbstractShapeMarker
Marker representing multiple locations as lines. Use directly to display as simple lines, or extend it for custom styles.
This can be a polyline consisting of multiple locations, or a single line consisting of two locations.
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 |
SimpleLinesMarker
public SimpleLinesMarker()
SimpleLinesMarker
public SimpleLinesMarker(java.util.List<Location> locations)
- Creates a polyline marker.
- Parameters:
locations
- The locations to connect via lines.
SimpleLinesMarker
public SimpleLinesMarker(java.util.List<Location> locations,
java.util.HashMap<java.lang.String,java.lang.Object> properties)
- Creates a polyline marker with additional properties.
- Parameters:
locations
- The locations to connect via lines.properties
- Optional data properties.
SimpleLinesMarker
public SimpleLinesMarker(Location startLocation,
Location endLocation)
- Creates a marker for a single line, with a connection from start to end location. This convenience method adds the given
start and end locations to the list.
- Parameters:
startLocation
- The location of the start of this line.endLocation
- The location of the end of this line.
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.