|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Object
|
+--java.util.EventObject
|
+--jdraw.framework.DrawModelEvent
An event which indicates that a draw model has changed. This event is fired if new figures are added to a model or if figures are removed from a model. The event is also fired if one figure in a draw model changes (e.g. its size or its position).
FigureListener,
Serialized Form| Field Summary | |
static int |
FIGURE_ADDED
This event indicates that a figure was added to the draw model. |
static int |
FIGURE_CHANGED
This event indicates that a figure was changed in the draw model. |
static int |
FIGURE_REMOVED
This event indicates that a figure was removed from the draw model. |
| Fields inherited from class java.util.EventObject |
source |
| Constructor Summary | |
DrawModelEvent(jdraw.framework.DrawModel source,
jdraw.framework.Figure figure,
int type)
Constructs a DrawModelEvent object with the specified model. |
|
| Method Summary | |
jdraw.framework.Figure |
getFigure()
Returns the figure which initiated the event. |
jdraw.framework.DrawModel |
getModel()
Returns the draw model which changed. |
int |
getType()
Returns the event type. |
| 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 |
| Field Detail |
public static final int FIGURE_ADDED
public static final int FIGURE_REMOVED
public static final int FIGURE_CHANGED
| Constructor Detail |
public DrawModelEvent(jdraw.framework.DrawModel source,
jdraw.framework.Figure figure,
int type)
source - model which changedfigure - the affected figuretype - an integer indicating the event type| Method Detail |
public jdraw.framework.DrawModel getModel()
public jdraw.framework.Figure getFigure()
public int getType()
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||