Back to index

moin  1.9.0~rc2
DrawingChangeEvent.java
Go to the documentation of this file.
00001 /*
00002  * @(#)DrawingChangeEvent.java 5.1
00003  *
00004  */
00005 
00006 package CH.ifa.draw.framework;
00007 
00008 import java.awt.Rectangle;
00009 import java.util.EventObject;
00010 
00015 public class DrawingChangeEvent extends EventObject {
00016 
00017     private Rectangle fRectangle;
00018 
00022     public DrawingChangeEvent(Drawing source, Rectangle r) {
00023         super(source);
00024         fRectangle = r;
00025     }
00026 
00030     public Drawing getDrawing() {
00031         return (Drawing)getSource();
00032     }
00033 
00037     public Rectangle getInvalidatedRectangle() {
00038         return fRectangle;
00039     }
00040 }