|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.micello.mapapi.standard.LocationMarker
public class LocationMarker
This is a standard implementation of an AnchoredDrawable that displays a single image.
| Constructor Summary | |
|---|---|
LocationMarker(MapViewRegion viewRegion,
MapData mapData)
Default Constructor |
|
| Method Summary | |
|---|---|
void |
draw(Canvas canvas,
float pixX,
float pixY)
This method renders the marker icon to the canvas with the anchor point located at the specified pixel location. |
float |
getMarkerOffsetX()
This method returns the marker offset. |
float |
getMarkerOffsetY()
This method returns the marker offset. |
boolean |
hitCheck(float hitX,
float hitY,
float anchorX,
float anchorY,
boolean executeHit)
|
boolean |
isLoaded()
This method returns true if the image is loaded. |
boolean |
loadImage(MicelloManager micelloManager,
MapTheme mapTheme)
This method will be called by the map rendering thread if the image is not loaded. |
void |
setErrorRadiusMeters(float errorMeters)
|
void |
showErrorRadius(boolean showError)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LocationMarker(MapViewRegion viewRegion,
MapData mapData)
| Method Detail |
|---|
public void showErrorRadius(boolean showError)
public void setErrorRadiusMeters(float errorMeters)
public boolean isLoaded()
isLoaded in interface AnchoredDrawable
public boolean loadImage(MicelloManager micelloManager,
MapTheme mapTheme)
loadImage in interface AnchoredDrawablemapTheme - Them active map theme.
public void draw(Canvas canvas,
float pixX,
float pixY)
draw in interface AnchoredDrawablepublic float getMarkerOffsetX()
getMarkerOffsetX in interface AnchoredDrawablepublic float getMarkerOffsetY()
getMarkerOffsetY in interface AnchoredDrawable
public boolean hitCheck(float hitX,
float hitY,
float anchorX,
float anchorY,
boolean executeHit)
hitCheck in interface AnchoredDrawablehitX - Pixel coordinate of hithitY - Pixel coordinate of hitanchorX - Pixel coordinate at which object is anchoredanchorY - Pixel coordinate at which object is anchoredexecuteHit - If this is true, any actions associated with the hit are executed.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||