public class SimplePointMarker extends AbstractMarker
Modifier and Type | Field and Description |
---|---|
protected float |
diameter |
color, hidden, highlightColor, highlightStrokeColor, id, location, properties, selected, strokeColor, strokeWeight
Constructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
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 |
setDiameter(float diameter)
Sets the diameter of this marker.
|
void |
setRadius(float radius)
Deprecated.
Fixed behavior! (value was wrongly used as diameter). Use
setDiameter(float) instead. |
draw, draw, getDistanceTo, getId, getIntegerProperty, getLocation, getProperties, getProperty, getScreenPosition, getStringProperty, isHidden, isInside, isSelected, setColor, setHidden, setHighlightColor, setHighlightStrokeColor, setId, setLocation, setLocation, setProperties, setProperty, setSelected, setStrokeColor, setStrokeWeight
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.public void draw(processing.core.PGraphics pg, float x, float y)
draw
in class AbstractMarker
pg
- 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 AbstractMarker
checkX
- 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)
setDiameter(float)
instead.radius
- The radius of the circle in pixel.public void setDiameter(float diameter)
diameter
- The diameter of the circle in pixel.