org.jdrawing.event
Class DrawingModelCacheEvent
java.lang.Object
java.util.EventObject
org.jdrawing.event.DrawingModelCacheEvent
- All Implemented Interfaces:
- java.io.Serializable
- public class DrawingModelCacheEvent
- extends java.util.EventObject
Encapsulates information describing changes to a drawing model
cache, and used to notify drawing model cache listeners of the
change.
- See Also:
- Serialized Form
Fields inherited from class java.util.EventObject |
source |
Constructor Summary |
DrawingModelCacheEvent(java.lang.Object source)
Used to create an event when the drawing has changed in some way. |
DrawingModelCacheEvent(java.lang.Object source,
java.awt.Rectangle area)
Used to create an event when some area of the drawing has changed
in some way. |
Method Summary |
java.awt.Rectangle |
getArea()
Returns the rectangular bounds of the changed area. |
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 |
DrawingModelCacheEvent
public DrawingModelCacheEvent(java.lang.Object source)
- Used to create an event when the drawing has changed in some way.
- Parameters:
source
- the Object responsible for generating the event
(typically the creator of the event object passes this for its value)
DrawingModelCacheEvent
public DrawingModelCacheEvent(java.lang.Object source,
java.awt.Rectangle area)
- Used to create an event when some area of the drawing has changed
in some way.
- Parameters:
source
- the Object responsible for generating the event
(typically the creator of the event object passes this for its value)area
- rectangular bounds of the changed area
getArea
public java.awt.Rectangle getArea()
- Returns the rectangular bounds of the changed area.
- Returns:
- rectangular bounds of the changed area