|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectMapMouseEvent
public final class MapMouseEvent
A MouseEvent which contains methods to obtain coordinates in real world CoordinateSystem as well as Screen Coordinates.
Constructor Summary | |
---|---|
MapMouseEvent(SwtMapPane pane,
MouseEvent event,
boolean isWheel)
Constructor. |
Method Summary | |
---|---|
DirectPosition2D |
getMapPosition()
Get the position, in map (world) coordinates of this mouse event |
int |
getMouseButton()
The button that was pressed or released; 1 for the first button, 2 for the second button, and 3 for the third button, etc. |
Point |
getPoint()
Getter for the mouse location? |
int |
getStateMask()
Returns the state mask of the mouse event. |
int |
getWheelAmount()
When isWheelEvent is true this indicate the amount of travel. |
boolean |
isWheelEvent()
Indicates a mouse wheel event. |
Methods inherited from class Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MapMouseEvent(SwtMapPane pane, MouseEvent event, boolean isWheel)
pane
- the map pane sending this event.event
- the mouse event.isWheel
- if true
then the event comes from the mouse wheel.Method Detail |
---|
public boolean isWheelEvent()
true
if this a mouse wheel eventpublic int getWheelAmount()
public Point getPoint()
public int getMouseButton()
MouseEvent.button
public int getStateMask()
MouseEvent.stateMask
public DirectPosition2D getMapPosition()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |