|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.nutiteq.ui.DefaultCursor
public class DefaultCursor
Default cursor implementation used in MapComponent.
Paints a cross with width and height of 10 pixels. Default color used in
library is red.
| Constructor Summary | |
|---|---|
DefaultCursor(int cursorColor)
Constructor for default cursor. |
|
| Method Summary | |
|---|---|
Point |
getPointOnDisplay(int displayWidth,
int displayHeight)
Get the "e;select"e; point on screen for cursor. |
void |
paint(Graphics g,
int screenX,
int screenY,
int displayWidth,
int displayHeight)
Paint cursor on the screen. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultCursor(int cursorColor)
cursorColor - color for the cursor (in format 0xAARRGGBB)| Method Detail |
|---|
public void paint(Graphics g,
int screenX,
int screenY,
int displayWidth,
int displayHeight)
CursorMapComponent or
MapItem) center.
paint in interface Cursorg - graphics object to paint onscreenX - cursor selection point x on screenscreenY - cursor selection point y on screendisplayWidth - displayed area (screen) widthdisplayHeight - displayed area (screen) height
public Point getPointOnDisplay(int displayWidth,
int displayHeight)
Cursor
getPointOnDisplay in interface CursordisplayWidth - map view widthdisplayHeight - map view height
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||