com.nutiteq.ui
Interface Cursor

All Known Implementing Classes:
DefaultCursor

public interface Cursor

Interface for screen cursor used for places highlighting and selecting


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.
 

Method Detail

paint

void paint(Graphics g,
           int screenX,
           int screenY,
           int displayWidth,
           int displayHeight)
Paint cursor on the screen. At the moment the "selection point" will be always in displayed objects (MapComponent or MapItem) center.

Parameters:
g - graphics object to paint on
screenX - cursor selection point x on screen
screenY - cursor selection point y on screen
displayWidth - displayed area (screen) width
displayHeight - displayed area (screen) height

getPointOnDisplay

Point getPointOnDisplay(int displayWidth,
                        int displayHeight)
Get the "e;select"e; point on screen for cursor. This point will be used for place/map clicks, etc.

Parameters:
displayWidth - map view width
displayHeight - map view height
Returns:
point in pixels