|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.nutiteq.components.PlaceIcon
public class PlaceIcon
Icon used for marking a place on map
| Constructor Summary | |
|---|---|
PlaceIcon(Image icon)
Create a icon object with default anchor point. |
|
PlaceIcon(Image icon,
int anchorX,
int anchorY)
Create a icon object with custom image placement. |
|
| 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 |
Image |
getIcon()
Not part of public API |
int |
getWidth(int zoom)
Get width of the placemark, based on current zoom level |
void |
paint(Graphics g,
int screenX,
int screenY,
int zoom)
Paint placemark to screen. screenX and screenY are 0, 0 for placemark. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PlaceIcon(Image icon)
icon - image used for place marking
public PlaceIcon(Image icon,
int anchorX,
int anchorY)
icon - place imageanchorX - x coordinate on icon anchor pointanchorY - y coordinate on icon anchor point| Method Detail |
|---|
public Image getIcon()
public int getWidth(int zoom)
Placemark
getWidth in interface Placemarkzoom - view zoom level
public int getHeight(int zoom)
Placemark
getHeight in interface Placemarkzoom - view zoom level
public int getAnchorX(int zoom)
Placemark
getAnchorX in interface Placemarkzoom - current zoom level
public int getAnchorY(int zoom)
Placemark
getAnchorY in interface Placemarkzoom - current zoom level
public void paint(Graphics g,
int screenX,
int screenY,
int zoom)
Placemark
paint in interface Placemarkg - 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 | ||||||||