|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectde.fhpotsdam.unfolding.marker.AbstractMarker
de.fhpotsdam.unfolding.marker.SimplePointMarker
public class SimplePointMarker
Marker representing a single location. Use directly to display as simple circle, or extend it for custom styles.
| Field Summary | |
|---|---|
protected float |
radius
|
| Fields inherited from class de.fhpotsdam.unfolding.marker.AbstractMarker |
|---|
color, hidden, highlightColor, highlightStrokeColor, id, location, properties, selected, strokeColor, strokeWeight |
| Constructor Summary | |
|---|---|
SimplePointMarker()
Creates an empty point marker. |
|
SimplePointMarker(Location location)
Creates a point marker for the given location. |
|
SimplePointMarker(Location location,
java.util.HashMap<java.lang.String,java.lang.Object> properties)
Creates a point marker for the given location and properties. |
|
| Method Summary | |
|---|---|
void |
draw(processing.core.PGraphics pg,
float x,
float y)
Draws this point marker as circle in the defined style. |
boolean |
isInside(float checkX,
float checkY,
float x,
float y)
Checks whether given position is inside the marker. |
void |
setRadius(float radius)
Sets the radius of this marker. |
| Methods inherited from class de.fhpotsdam.unfolding.marker.AbstractMarker |
|---|
draw, draw, getDistanceTo, getId, getLocation, getProperties, getProperty, getScreenPosition, getStringProperty, isHidden, isInside, isSelected, setColor, setHidden, setHighlightColor, setHighlightStrokeColor, setId, setLocation, setLocation, setProperties, setSelected, setStrokeColor, setStrokeWeight |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected float radius
| Constructor Detail |
|---|
public SimplePointMarker()
public SimplePointMarker(Location location)
location - The location of this Marker.
public SimplePointMarker(Location location,
java.util.HashMap<java.lang.String,java.lang.Object> properties)
location - The location of this Marker.properties - Some data properties for this marker.| Method Detail |
|---|
public void draw(processing.core.PGraphics pg,
float x,
float y)
draw in class AbstractMarkerpg - The PGraphics to draw onx - The x position in outer object coordinates.y - The y position in outer object coordinates.
public boolean isInside(float checkX,
float checkY,
float x,
float y)
AbstractMarker
isInside in class AbstractMarkercheckX - The x position to check in screen coordinates.checkY - The y position to check in screen coordinates.x - The x position of this marker in screen coordinates.y - The y position of this marker in screen coordinates.
public void setRadius(float radius)
radius -
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||