|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Placemark
Interface for defining custom placemarks. Defines the size and relative position (anchor point) to place. If image is used and it will be centered on place point then anchorX would be image.getWidth() / 2. Placemark can also have different properties based on zoom level. For example in placemarks showing person location an icon can be shown at country level. But on city level additional data, for example name, can be added to placemark paint. (Check custom elements example for additional details). How and if the placemark will be shown will be calculated outside placemark.
| Method Summary | |
|---|---|
int |
getAnchorX(int zoom)
Get placemarks relative position x |
int |
getAnchorY(int zoom)
Get placemarks relative position y. |
int |
getHeight(int zoom)
Get height of the placemark, based on current zoom level |
int |
getWidth(int zoom)
Get width of the placemark, based on current zoom level |
void |
paint(com.nutiteq.wrappers.Graphics g,
int screenX,
int screenY,
int zoom)
Paint placemark to screen. screenX and screenY are 0, 0 for placemark. |
| Method Detail |
|---|
int getWidth(int zoom)
zoom - view zoom level
int getHeight(int zoom)
zoom - view zoom level
int getAnchorX(int zoom)
zoom - current zoom level
int getAnchorY(int zoom)
zoom - current zoom level
void paint(com.nutiteq.wrappers.Graphics g,
int screenX,
int screenY,
int zoom)
g - graphics object to paint onscreenX - x point to paint on screenscreenY - y point to paint on screen
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||