public class FixedPixelCircle extends Circle
displayModel| Constructor and Description |
|---|
FixedPixelCircle(org.mapsforge.core.model.LatLong latLong,
float radius,
org.mapsforge.core.graphics.Paint paintFill,
org.mapsforge.core.graphics.Paint paintStroke) |
FixedPixelCircle(org.mapsforge.core.model.LatLong latLong,
float radius,
org.mapsforge.core.graphics.Paint paintFill,
org.mapsforge.core.graphics.Paint paintStroke,
boolean keepAligned) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
contains(org.mapsforge.core.model.Point center,
org.mapsforge.core.model.Point point) |
protected int |
getRadiusInPixels(double latitude,
byte zoomLevel) |
boolean |
isScaleRadius() |
void |
setScaleRadius(boolean scaleRadius) |
contains, draw, getPaintFill, getPaintStroke, getPosition, getRadius, isKeepAligned, setLatLong, setPaintFill, setPaintStroke, setRadiusgetDisplayModel, isVisible, onAdd, onDestroy, onLongPress, onRemove, onTap, requestRedraw, setDisplayModel, setVisible, setVisiblepublic FixedPixelCircle(org.mapsforge.core.model.LatLong latLong,
float radius,
org.mapsforge.core.graphics.Paint paintFill,
org.mapsforge.core.graphics.Paint paintStroke)
latLong - the initial center point of this circle (may be null).radius - the initial non-negative radius of this circle in pixels.paintFill - the initial Paint used to fill this circle (may be null).paintStroke - the initial Paint used to stroke this circle (may be null).java.lang.IllegalArgumentException - if the given radius is negative or Float.NaN.public FixedPixelCircle(org.mapsforge.core.model.LatLong latLong,
float radius,
org.mapsforge.core.graphics.Paint paintFill,
org.mapsforge.core.graphics.Paint paintStroke,
boolean keepAligned)
latLong - the initial center point of this circle (may be null).radius - the initial non-negative radius of this circle in pixels.paintFill - the initial Paint used to fill this circle (may be null).paintStroke - the initial Paint used to stroke this circle (may be null).keepAligned - if set to true it will keep the bitmap aligned with the map, to avoid
a moving effect of a bitmap shader.java.lang.IllegalArgumentException - if the given radius is negative or Float.NaN.public boolean contains(org.mapsforge.core.model.Point center,
org.mapsforge.core.model.Point point)
protected int getRadiusInPixels(double latitude,
byte zoomLevel)
getRadiusInPixels in class Circlepublic boolean isScaleRadius()
public void setScaleRadius(boolean scaleRadius)
scaleRadius - if set to true it will scale the radius with the combined device/user
scale factor.