uic.widgets.event
Class WindowDroppedEvent

java.lang.Object
  extended byjava.util.EventObject
      extended byuic.widgets.event.WindowDroppedEvent
All Implemented Interfaces:
Serializable

public class WindowDroppedEvent
extends EventObject

An event that is used to specify a new location for the ExtraWindow.

Since:
1.2
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
WindowDroppedEvent(Object source, Point screenPosition, Point handleOffset)
          Create a new event.
 
Method Summary
 Point getHandleOffset()
          return the offset (from the screenPosition) where the user held the mouse when the ExtraWindow was dropped.
 Point getScreenPosition()
          return the new postion of the ExtraWindow on screen.
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

WindowDroppedEvent

public WindowDroppedEvent(Object source,
                          Point screenPosition,
                          Point handleOffset)
Create a new event.

Parameters:
source - the ExtraWindow that was moved.
screenPosition - the new postion of the ExtraWindow on screen.
handleOffset - the offset (from the screenPosition) where the user held the mouse when the ExtraWindow was dropped.
Method Detail

getScreenPosition

public Point getScreenPosition()
return the new postion of the ExtraWindow on screen.

Returns:
the new postion of the ExtraWindow on screen.

getHandleOffset

public Point getHandleOffset()
return the offset (from the screenPosition) where the user held the mouse when the ExtraWindow was dropped.

Returns:
the offset (from the screenPosition) where the user held the mouse when the ExtraWindow was dropped.


Copyright © 2002,2003 Thomas Zander Available under the Free Apache licence