org.nakedobjects.plugins.dnd
Class Click
java.lang.Object
org.nakedobjects.plugins.dnd.PointerEvent
org.nakedobjects.plugins.dnd.Click
public class Click
- extends PointerEvent
Describes a mouse click event.
|
Constructor Summary |
Click(View source,
Location mouseLocation,
int modifiers)
Creates a new click event object. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
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 occurredmouseLocation - the location of the mouse relative to the viewermodifiers - the button and key held down during the click (@see java.awt.event.MouseEvent)
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.