org.nakedobjects.viewer.lightweight
Class Click

java.lang.Object
  extended byorg.nakedobjects.viewer.lightweight.Click

public class Click
extends java.lang.Object


Constructor Summary
Click(View over, java.awt.event.MouseEvent me)
           
 
Method Summary
 Location getAbsoluteLocation()
          Returns the absolute location of the mouse
 Location getLocation()
          Returns the location of the mouse within the bounds of the view this object is recieved by
 boolean isAlt()
          Returns true if the 'Alt' key is depressed
 boolean isButton1()
          Returns true if the left-hand button on the mouse is depressed
 boolean isButton2()
          Returns true if the middle button on the mouse is depressed
 boolean isButton3()
          Returns true if the right-hand button on the mouse is depressed
 boolean isCtrl()
          Returns true if the control key is depressed
 boolean isForView()
          Returns true if the click is directed to the view itself, rather than to whatever the view is representing.
 boolean isShift()
          Returns true if the shift key is depressed
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Click

public Click(View over,
             java.awt.event.MouseEvent me)
Method Detail

getAbsoluteLocation

public Location getAbsoluteLocation()
Returns the absolute location of the mouse


isAlt

public boolean isAlt()
Returns true if the 'Alt' key is depressed


isButton1

public boolean isButton1()
Returns true if the left-hand button on the mouse is depressed


isButton2

public boolean isButton2()
Returns true if the middle button on the mouse is depressed


isButton3

public boolean isButton3()
Returns true if the right-hand button on the mouse is depressed


isCtrl

public boolean isCtrl()
Returns true if the control key is depressed


isForView

public boolean isForView()
Returns true if the click is directed to the view itself, rather than to whatever the view is representing.


getLocation

public Location getLocation()
Returns the location of the mouse within the bounds of the view this object is recieved by


isShift

public boolean isShift()
Returns true if the shift key is depressed


toString

public java.lang.String toString()