Package com.bc.ceres.swing.figure
Class FigureChangeEvent
java.lang.Object
java.util.EventObject
com.bc.ceres.swing.figure.FigureChangeEvent
- All Implemented Interfaces:
Serializable
This event occurs, when a figure has been changed.
- Since:
- Ceres 0.10
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final FigureChangeEvent.Type
A (source-) figure has changed.static final FigureChangeEvent.Type
Figures have been added to a (source-) figure.static final FigureChangeEvent.Type
Figures have been removed from a (source-) figure.Fields inherited from class java.util.EventObject
source
-
Constructor Summary
ConstructorsConstructorDescriptionFigureChangeEvent
(Figure sourceFigure, FigureChangeEvent.Type type, Figure[] figures) Constructor. -
Method Summary
Methods inherited from class java.util.EventObject
getSource
-
Field Details
-
FIGURES_ADDED
Figures have been added to a (source-) figure. -
FIGURES_REMOVED
Figures have been removed from a (source-) figure. -
FIGURE_CHANGED
A (source-) figure has changed.
-
-
Constructor Details
-
FigureChangeEvent
Constructor.- Parameters:
sourceFigure
- The source figure which caused the event.type
- The type of the event.figures
- The figures added or removed. Should benull
if the event type isFIGURE_CHANGED
.
-
-
Method Details
-
getSourceFigure
- Returns:
- The source figure which caused the event.
-
getType
- Returns:
- The type of the event.
-
getFigures
- Returns:
- The figures added or removed. Returns
null
if the event type isFIGURE_CHANGED
.
-
toString
- Overrides:
toString
in classEventObject
-