|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.micello.mapapi.data.MapPoint
public class MapPoint
This class implements the PointReference interface, defining a point in terms
of map coordinates and the level in terms of the level id. Map coordinates are like
pixels when the zoom scale is set to 1.
| Field Summary |
|---|
| Fields inherited from interface com.micello.mapapi.data.PointReference |
|---|
ADDRESS_GEOM_TYPE, ID_GEOM_TYPE, LAT_LON_POINT_TYPE, MAP_POINT_TYPE |
| Constructor Summary | |
|---|---|
MapPoint(float x,
float y,
int lid)
Constructor |
|
| Method Summary | |
|---|---|
int |
getLevelId()
This method returns the level id. |
float[] |
getXY()
This method returns the XY. |
float[] |
getXY(DrawingLevel level)
This method is intended for internal use. |
boolean |
isOnLevel(DrawingLevel level)
This method is intended for internal use. |
static MapPoint |
load(JSONArray json)
This method loads a map point from a JSON object. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MapPoint(float x,
float y,
int lid)
x - The X location in map coordinatesy - The Y location in map coordinateslid - The micello level ID for the level| Method Detail |
|---|
public float[] getXY(DrawingLevel level)
getXY in interface PointReferencepublic boolean isOnLevel(DrawingLevel level)
isOnLevel in interface PointReferencelevel - The level on shich to check if the point resides.
public float[] getXY()
public int getLevelId()
public static MapPoint load(JSONArray json)
throws java.lang.Exception
java.lang.Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||