JHotDraw 7.5.1

org.jhotdraw.draw.event
Class HandleEvent

java.lang.Object
  extended by java.util.EventObject
      extended by org.jhotdraw.draw.event.HandleEvent
All Implemented Interfaces:
java.io.Serializable

public class HandleEvent
extends java.util.EventObject

An EventObject sent to HandleListeners.


Design Patterns

Observer
State changes of handles can be observed by other objects. Specifically DrawingView observes area invalidations and remove requests of handles.
Subject: Handle; Observer: HandleListener; Event: HandleEvent; Concrete Observer: DrawingView.


Version:
$Id: HandleEvent.java 604 2010-01-09 12:00:29Z rawcoder $
Author:
Werner Randelshofer
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
HandleEvent(Handle src, java.awt.Rectangle invalidatedArea)
          Creates a new instance.
 
Method Summary
 Handle getHandle()
           
 java.awt.Rectangle getInvalidatedArea()
          Gets the bounds of the invalidated area on the drawing view.
 
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

HandleEvent

public HandleEvent(Handle src,
                   java.awt.Rectangle invalidatedArea)
Creates a new instance.

Method Detail

getHandle

public Handle getHandle()

getInvalidatedArea

public java.awt.Rectangle getInvalidatedArea()
Gets the bounds of the invalidated area on the drawing view.


Copyright 1996-2010 (c) by the authors and contributors of the JHotDraw project.
Some rights reserved.