oracle.javatools.ui
Class InputInfo
java.lang.Object
  
oracle.javatools.ui.InputInfo
public final class InputInfo
- extends java.lang.Object
 
InputInfo  provides methods for getting information about the mouse
 and keyboard, such as whether the control key is currently pressed or if the
 mouse is currently performing a drag.
 
 If using from outside the IDE platform this class needs to be initialized on
 application startup.
 
 
| Methods inherited from class java.lang.Object | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
InputInfo
public InputInfo()
initialize
public static void initialize()
 
isControlDown
public static final boolean isControlDown()
- Returns:
 - whether the control key is currently pressed
 
 
isAltDown
public static final boolean isAltDown()
- Returns:
 - whether the alt key is currently pressed
 
 
isShiftDown
public static final boolean isShiftDown()
- Returns:
 - whether the shift key is currently pressed
 
 
isAltGraphDown
public static final boolean isAltGraphDown()
- Returns:
 - whether the alt graph key is currently pressed
 
 
isMetaDown
public static final boolean isMetaDown()
- Returns:
 - whether the meta key is currently pressed
 
 
isDragging
public static final boolean isDragging()
- Returns:
 - whether the mouse is currently dragging. A drag is defined by the mouse
 moving with any mouse button pressed.
 
 
isButton1Down
public static final boolean isButton1Down()
- Returns:
 - whether the mouse button 1 is currently pressed
 
 
isButton2Down
public static final boolean isButton2Down()
- Returns:
 - whether the mouse button 2 is currently pressed
 
 
isButton3Down
public static final boolean isButton3Down()
- Returns:
 - whether the mouse button 3 is currently pressed
 
 
Copyright © 1997, 2011, Oracle. All rights reserved.