public class SimpleLinesMarker extends AbstractShapeMarker
interiorRingLocationArray, locations
color, hidden, highlightColor, highlightStrokeColor, id, location, properties, selected, strokeColor, strokeWeight
Constructor and Description |
---|
SimpleLinesMarker() |
SimpleLinesMarker(java.util.List<Location> locations)
Creates a polyline marker.
|
SimpleLinesMarker(java.util.List<Location> locations,
java.util.HashMap<java.lang.String,java.lang.Object> properties)
Creates a polyline marker with additional properties.
|
SimpleLinesMarker(Location startLocation,
Location endLocation)
Creates a marker for a single line, with a connection from start to end location.
|
Modifier and Type | Method and Description |
---|---|
void |
draw(processing.core.PGraphics pg,
java.util.List<MapPosition> mapPositions)
Draws marker in outer object coordinate system.
|
addLocation, addLocations, addLocations, contains, contains, draw, draw, draw, draw, getCentroid, getInteriorRings, getLocation, getLocation, getLocations, isInside, isInside, isInside, isInsideByLocation, isInsideByLocation, removeLocation, removeLocation, setInteriorRings, setLocation, setLocations
draw, getDistanceTo, getId, getIntegerProperty, getProperties, getProperty, getScreenPosition, getStringProperty, isHidden, isSelected, setColor, setHidden, setHighlightColor, setHighlightStrokeColor, setId, setLocation, setProperties, setProperty, setSelected, setStrokeColor, setStrokeWeight
public SimpleLinesMarker()
public SimpleLinesMarker(java.util.List<Location> locations)
locations
- The locations to connect via lines.public SimpleLinesMarker(java.util.List<Location> locations, java.util.HashMap<java.lang.String,java.lang.Object> properties)
locations
- The locations to connect via lines.properties
- Optional data properties.public SimpleLinesMarker(Location startLocation, Location endLocation)
startLocation
- The location of the start of this line.endLocation
- The location of the end of this line.public void draw(processing.core.PGraphics pg, java.util.List<MapPosition> mapPositions)
AbstractShapeMarker
draw
in class AbstractShapeMarker
pg
- The PGraphics to draw on.mapPositions
- The positions in map (, i.e. outer object) coordinates.