Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 

Eclipse GEF
3.3

org.eclipse.gef.requests
Class SelectionRequest

java.lang.Object
  extended by

org.eclipse.gef.Request
      extended by

org.eclipse.gef.requests.LocationRequest
          extended by
org.eclipse.gef.requests.SelectionRequest

public class SelectionRequest
extends LocationRequest

A request to select an edit part.


Constructor Summary
SelectionRequest ()
           
 
Method Summary
 int getLastButtonPressed ()
          Returns the last button that was pressed.
 boolean isAltKeyPressed ()
          Returns true if the ALT key is currently pressed.
 boolean isAnyMouseButtonPressed ()
          Returns true if any mouse button is currently pressed.
 boolean isControlKeyPressed ()
          Returns true if the CTRL key is currently pressed.
 boolean isLeftMouseButtonPressed ()
          Returns true if the left mouse button is pressed.
 boolean isRightMouseButtonPressed ()
          Returns true if the right mouse button is pressed.
 boolean isShiftKeyPressed ()
          Returns true if the SHIFT key is currently pressed.
 void setLastButtonPressed (int button)
          Sets the last mouse button that was pressed.
 void setModifiers (int mask)
          Sets the statemask for this request.
 
Methods inherited from class org.eclipse.gef.requests. LocationRequest
getLocation, setLocation
 
Methods inherited from class org.eclipse.gef. Request
getExtendedData, getType, setExtendedData, setType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SelectionRequest

public SelectionRequest()
Method Detail

getLastButtonPressed

public int getLastButtonPressed()
Returns the last button that was pressed. This is useful if there is more than one mouse button pressed and the most recent button pressed needs to be identified.

Returns:
the last button pressed

isAltKeyPressed

public boolean isAltKeyPressed()
Returns true if the ALT key is currently pressed.

Returns:
whether the ALT key is pressed

isAnyMouseButtonPressed

public boolean isAnyMouseButtonPressed()
Returns true if any mouse button is currently pressed.

Returns:
whether any mouse button is pressed

isControlKeyPressed

public boolean isControlKeyPressed()
Returns true if the CTRL key is currently pressed.

Returns:
whether the CTRL key is pressed

isLeftMouseButtonPressed

public boolean isLeftMouseButtonPressed()
Returns true if the left mouse button is pressed.

Returns:
whether the left mouse button is pressed

isRightMouseButtonPressed

public boolean isRightMouseButtonPressed()
Returns true if the right mouse button is pressed.

Returns:
whether the right mouse button is pressed

isShiftKeyPressed

public boolean isShiftKeyPressed()
Returns true if the SHIFT key is currently pressed.

Returns:
whether the SHIFT key is pressed

setModifiers

public void setModifiers(int mask)
Sets the statemask for this request.

Parameters:
mask - the statemask

setLastButtonPressed

public void setLastButtonPressed(int button)
Sets the last mouse button that was pressed.

Parameters:
button - the last button pressed

Eclipse GEF
3.3

Copyright (c) IBM Corp. and others 2000, 2007. All Rights Reserved.

 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire