|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.refractions.udig.project.ui.render.displayAdapter.MapMouseEvent
public class MapMouseEvent
Encapsulates a mouse event. MapMouseListeners receive MapMouse events.
Field Summary | |
---|---|
static int |
ALT_DOWN_MASK
Indicates that the alt key is down |
int |
button
indicates the button that last changed |
static int |
BUTTON1
Indicates that the 1st mouse button, the left button on right handed mouses |
static int |
BUTTON2
Indicates that the 2nd mouse button. |
static int |
BUTTON3
Indicates that the 3rd mouse button. |
int |
buttons
All the buttons that are currently down ORed together |
static int |
CTRL_DOWN_MASK
Indicates that the ctrl key is down |
static int |
MOD1_DOWN_MASK
Indicates that the mod1 key is down |
static int |
MOD2_DOWN_MASK
Indicates that the mod2 key is down |
static int |
MOD3_DOWN_MASK
Indicates that the mod3 key is down |
static int |
MOD4_DOWN_MASK
Indicates that the mod3 key is down |
int |
modifiers
All the key modifiers ORed together |
static int |
NONE
Indicates no modifiers or no buttons. |
static int |
SHIFT_DOWN_MASK
Indicates that the shift key is down |
IMapDisplay |
source
The Viewport pane that raised the event. |
int |
state
Deprecated. user modifiers and buttons |
long |
timestamp
the time the event occurred |
int |
x
indicates the x position of the event |
int |
y
indicates the y position of the event |
Constructor Summary | |
---|---|
MapMouseEvent(IMapDisplay source,
int x,
int y,
int modifiers,
int buttons,
int button)
Construct MapMouseEvent . |
Method Summary | |
---|---|
boolean |
buttonsDown()
|
java.awt.Point |
getPoint()
Returns the location of the event. |
boolean |
isAltDown()
Returns true if alt key is down. |
boolean |
isControlDown()
Returns true if control key is down. |
boolean |
isModifierDown(int mask)
Returns true if the modifier is down |
boolean |
isShiftDown()
Returns true if shift key is down. |
boolean |
modifiersDown()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int NONE
public static final int ALT_DOWN_MASK
public static final int CTRL_DOWN_MASK
public static final int SHIFT_DOWN_MASK
public static final int MOD1_DOWN_MASK
public static final int MOD2_DOWN_MASK
public static final int MOD3_DOWN_MASK
public static final int MOD4_DOWN_MASK
public static final int BUTTON1
public static final int BUTTON2
public static final int BUTTON3
public final IMapDisplay source
public final int state
public final int buttons
public final int modifiers
public final int button
public final int x
public final int y
public final long timestamp
Constructor Detail |
---|
public MapMouseEvent(IMapDisplay source, int x, int y, int modifiers, int buttons, int button)
MapMouseEvent
.
source
- The object that raised the eventx
- the x position of the eventy
- the y position of the eventmodifiers
- indicates what modifiers are down. Modifiers are ORed togetherbuttons
- indicates the buttons that are down. button ids are ORed together.button
- the button that last changedMethod Detail |
---|
public java.awt.Point getPoint()
Point
public boolean isShiftDown()
public boolean isControlDown()
public boolean isAltDown()
public boolean isModifierDown(int mask)
mask
- the modifier to test for.
CTRL_DOWN_MASK
,
ALT_DOWN_MASK
,
SHIFT_DOWN_MASK
,
MOD1_DOWN_MASK
,
MOD2_DOWN_MASK
,
MOD3_DOWN_MASK
,
MOD4_DOWN_MASK
public boolean modifiersDown()
public boolean buttonsDown()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |