uic.widgets.event
Class WindowDroppedEvent
java.lang.Object
java.util.EventObject
uic.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
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. |
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.
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