|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.nutiteq.components.PlaceLabel
public class PlaceLabel
Place label to be displayed on map if a place is highlighted.
| Field Summary | |
|---|---|
static int |
DISPLAY_BOTTOM
Display label on bottom of map componeny |
static int |
DISPLAY_CENTER
Display label on screen, right over the place. |
static int |
DISPLAY_NONE
Don't display label |
static int |
DISPLAY_TOP
Display label on top of map component |
| Constructor Summary | |
|---|---|
PlaceLabel(java.lang.String name)
Create label with default display style (label displayed right over place on map) |
|
PlaceLabel(java.lang.String label,
int displayStyle)
PlaceLabel constructor. |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object obj)
|
java.lang.String |
getLabel()
Not part of public API |
Point |
getViewUpdate(int screenX,
int screenY,
int displayWidth,
int displayHeight)
Get pixels needed for proper label display. |
int |
hashCode()
|
void |
labelClicked(int screenX,
int screenY,
int displayWidth,
int displayHeight,
int clickX,
int clickY)
Notify label about the click and click location on screen |
void |
paint(com.nutiteq.wrappers.Graphics g,
int screenX,
int screenY,
int displayWidth,
int displayHeight)
Not part of public API |
boolean |
pointOnLabel(int screenX,
int screenY,
int displayWidth,
int displayHeight,
int clickX,
int clickY)
Is given screen point on label |
void |
setZoom(int zoom)
|
void |
setUsedIcon(Placemark icon)
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int DISPLAY_NONE
public static final int DISPLAY_CENTER
public static final int DISPLAY_BOTTOM
public static final int DISPLAY_TOP
| Constructor Detail |
|---|
public PlaceLabel(java.lang.String label,
int displayStyle)
label - string label for placedisplayStyle - display style for the labelpublic PlaceLabel(java.lang.String name)
name - string label for place| Method Detail |
|---|
public java.lang.String getLabel()
getLabel in interface Label
public void paint(com.nutiteq.wrappers.Graphics g,
int screenX,
int screenY,
int displayWidth,
int displayHeight)
paint in interface Labelg - graphics object to be drawn onscreenX - place x location on screenscreenY - place y location on screendisplayWidth - available display widthdisplayHeight - available display heightpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Objectpublic void setUsedIcon(Placemark icon)
public void setZoom(int zoom)
public boolean pointOnLabel(int screenX,
int screenY,
int displayWidth,
int displayHeight,
int clickX,
int clickY)
Label
pointOnLabel in interface LabelscreenX - place x location on screenscreenY - place y location on screendisplayWidth - available display widthdisplayHeight - available display heightclickX - point location x on displayclickY - point location y on display
public void labelClicked(int screenX,
int screenY,
int displayWidth,
int displayHeight,
int clickX,
int clickY)
Label
labelClicked in interface LabelscreenX - place x location on screenscreenY - place y location on screendisplayWidth - available display widthdisplayHeight - available display heightclickX - click location x on displayclickY - click location y on display
public Point getViewUpdate(int screenX,
int screenY,
int displayWidth,
int displayHeight)
Label
getViewUpdate in interface LabelscreenX - object location x on screenscreenY - object location y on screendisplayWidth - available display widthdisplayHeight - available display height
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||