org.nakedobjects.plugins.dnd
Class Click

java.lang.Object
  extended by org.nakedobjects.plugins.dnd.PointerEvent
      extended by org.nakedobjects.plugins.dnd.Click

public class Click
extends PointerEvent

Describes a mouse click event.


Field Summary
 
Fields inherited from class org.nakedobjects.plugins.dnd.PointerEvent
mods
 
Constructor Summary
Click(View source, Location mouseLocation, int modifiers)
          Creates a new click event object.
 
Method Summary
 void add(Offset offset)
           
 Location getLocation()
           
 Location getLocationWithinViewer()
           
 void subtract(int x, int y)
          Translate the location of this event by the specified offset.
 void subtract(Location location)
           
 void subtract(Offset offset)
           
 java.lang.String toString()
           
 
Methods inherited from class org.nakedobjects.plugins.dnd.PointerEvent
button1, button2, button3, isAlt, isCtrl, isMeta, isShift
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Click

public Click(View source,
             Location mouseLocation,
             int modifiers)
Creates a new click event object.

Parameters:
source - the view over which the pointer was when this click occurred
mouseLocation - the location of the mouse relative to the viewer
modifiers - the button and key held down during the click (@see java.awt.event.MouseEvent)
Method Detail

getLocation

public Location getLocation()

getLocationWithinViewer

public Location getLocationWithinViewer()

subtract

public void subtract(int x,
                     int y)
Translate the location of this event by the specified offset.


toString

public java.lang.String toString()
Overrides:
toString in class PointerEvent

add

public void add(Offset offset)

subtract

public void subtract(Offset offset)

subtract

public void subtract(Location location)


Copyright © 2001-2009 Naked Objects Group Ltd.. All Rights Reserved.