Package com.bc.ceres.swing.figure
Class FigureChangeEvent
- java.lang.Object
-
- java.util.EventObject
-
- com.bc.ceres.swing.figure.FigureChangeEvent
-
- All Implemented Interfaces:
Serializable
public class FigureChangeEvent extends EventObject
This event occurs, when a figure has been changed.- Since:
- Ceres 0.10
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
FigureChangeEvent.Type
Possible event types.
-
Field Summary
Fields Modifier and Type Field Description static FigureChangeEvent.Type
FIGURE_CHANGED
A (source-) figure has changed.static FigureChangeEvent.Type
FIGURES_ADDED
Figures have been added to a (source-) figure.static FigureChangeEvent.Type
FIGURES_REMOVED
Figures have been removed from a (source-) figure.-
Fields inherited from class java.util.EventObject
source
-
-
Constructor Summary
Constructors Constructor Description FigureChangeEvent(Figure sourceFigure, FigureChangeEvent.Type type, Figure[] figures)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Figure[]
getFigures()
Figure
getSourceFigure()
FigureChangeEvent.Type
getType()
String
toString()
-
Methods inherited from class java.util.EventObject
getSource
-
-
-
-
Field Detail
-
FIGURES_ADDED
public static final FigureChangeEvent.Type FIGURES_ADDED
Figures have been added to a (source-) figure.
-
FIGURES_REMOVED
public static final FigureChangeEvent.Type FIGURES_REMOVED
Figures have been removed from a (source-) figure.
-
FIGURE_CHANGED
public static final FigureChangeEvent.Type FIGURE_CHANGED
A (source-) figure has changed.
-
-
Constructor Detail
-
FigureChangeEvent
public FigureChangeEvent(Figure sourceFigure, FigureChangeEvent.Type type, Figure[] figures)
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 Detail
-
getSourceFigure
public Figure getSourceFigure()
- Returns:
- The source figure which caused the event.
-
getType
public FigureChangeEvent.Type getType()
- Returns:
- The type of the event.
-
getFigures
public Figure[] getFigures()
- Returns:
- The figures added or removed. Returns
null
if the event type isFIGURE_CHANGED
.
-
toString
public String toString()
- Overrides:
toString
in classEventObject
-
-