Back to index

moin  1.9.0~rc2
Public Member Functions | Private Attributes | Static Private Attributes
CH.ifa.draw.framework.FigureChangeEvent Class Reference

FigureChange event passed to FigureChangeListeners. More...

Inheritance diagram for CH.ifa.draw.framework.FigureChangeEvent:
Inheritance graph
[legend]
Collaboration diagram for CH.ifa.draw.framework.FigureChangeEvent:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 FigureChangeEvent (Figure source, Rectangle r)
 Constructs an event for the given source Figure.
 FigureChangeEvent (Figure source)
Figure getFigure ()
 Gets the changed figure.
Rectangle getInvalidatedRectangle ()
 Gets the changed rectangle.

Private Attributes

Rectangle fRectangle

Static Private Attributes

static final Rectangle fgEmptyRectangle = new Rectangle(0, 0, 0, 0)

Detailed Description

FigureChange event passed to FigureChangeListeners.

Definition at line 15 of file FigureChangeEvent.java.


Constructor & Destructor Documentation

CH.ifa.draw.framework.FigureChangeEvent.FigureChangeEvent ( Figure  source,
Rectangle  r 
) [inline]

Constructs an event for the given source Figure.

The rectangle is the area to be invalvidated.

Definition at line 24 of file FigureChangeEvent.java.

                                                         {
        super(source);
        fRectangle = r;
    }

Definition at line 29 of file FigureChangeEvent.java.

                                            {
        super(source);
        fRectangle = fgEmptyRectangle;
    }

Member Function Documentation

Gets the changed figure.

Definition at line 37 of file FigureChangeEvent.java.

                              {
        return (Figure)getSource();
    }

Gets the changed rectangle.

Definition at line 44 of file FigureChangeEvent.java.

                                               {
        return fRectangle;
    }

Member Data Documentation

final Rectangle CH.ifa.draw.framework.FigureChangeEvent.fgEmptyRectangle = new Rectangle(0, 0, 0, 0) [static, private]

Definition at line 18 of file FigureChangeEvent.java.

Definition at line 17 of file FigureChangeEvent.java.


The documentation for this class was generated from the following file: