|
Eclipse GEF 2.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.eclipse.gef.util.FlagSupport | +--org.eclipse.gef.tools.AbstractTool.Input
Allows the user to access mouse and keyboard input.
Constructor Summary | |
AbstractTool.Input()
|
Method Summary | |
protected int |
getModifiers()
|
org.eclipse.draw2d.geometry.Point |
getMouseLocation()
Returns the current location of the mouse. |
boolean |
isAltKeyDown()
Returns true if the ALT key is pressed. |
boolean |
isAnyButtonDown()
Returns true if any of the 3 mouse buttons are pressed. |
boolean |
isControlKeyDown()
Returns true if the CTRL key is pressed. |
boolean |
isMouseButtonDown(int which)
Returns true if button # which (1, 2, or 3)
is pressed. |
boolean |
isShiftKeyDown()
Returns true if the SHIFT key is pressed. |
void |
setInput(MouseEvent me)
Sets the mouse and keyboard input based on the MouseEvent. |
void |
setMouseButton(int which,
boolean state)
Sets mouse button # which to be pressed if
state is true. |
Methods inherited from class org.eclipse.gef.util.FlagSupport |
getFlag, setFlag |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public AbstractTool.Input()
Method Detail |
protected int getModifiers()
public org.eclipse.draw2d.geometry.Point getMouseLocation()
public boolean isAltKeyDown()
true
if the ALT key is pressed.
public boolean isAnyButtonDown()
true
if any of the 3 mouse buttons are pressed.
public boolean isControlKeyDown()
true
if the CTRL key is pressed.
public boolean isMouseButtonDown(int which)
true
if button # which
(1, 2, or 3)
is pressed.
public boolean isShiftKeyDown()
true
if the SHIFT key is pressed.
public void setMouseButton(int which, boolean state)
which
to be pressed if
state
is true.
public void setInput(MouseEvent me)
|
Eclipse GEF 2.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |