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 SummaryNested Classes Modifier and Type Class Description static classFigureChangeEvent.TypePossible event types.
 - 
Field SummaryFields Modifier and Type Field Description static FigureChangeEvent.TypeFIGURE_CHANGEDA (source-) figure has changed.static FigureChangeEvent.TypeFIGURES_ADDEDFigures have been added to a (source-) figure.static FigureChangeEvent.TypeFIGURES_REMOVEDFigures have been removed from a (source-) figure.- 
Fields inherited from class java.util.EventObjectsource
 
- 
 - 
Constructor SummaryConstructors Constructor Description FigureChangeEvent(Figure sourceFigure, FigureChangeEvent.Type type, Figure[] figures)Constructor.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description Figure[]getFigures()FiguregetSourceFigure()FigureChangeEvent.TypegetType()StringtoString()- 
Methods inherited from class java.util.EventObjectgetSource
 
- 
 
- 
- 
- 
Field Detail- 
FIGURES_ADDEDpublic static final FigureChangeEvent.Type FIGURES_ADDED Figures have been added to a (source-) figure.
 - 
FIGURES_REMOVEDpublic static final FigureChangeEvent.Type FIGURES_REMOVED Figures have been removed from a (source-) figure.
 - 
FIGURE_CHANGEDpublic static final FigureChangeEvent.Type FIGURE_CHANGED A (source-) figure has changed.
 
- 
 - 
Constructor Detail- 
FigureChangeEventpublic 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 be- nullif the event type is- FIGURE_CHANGED.
 
 
- 
 - 
Method Detail- 
getSourceFigurepublic Figure getSourceFigure() - Returns:
- The source figure which caused the event.
 
 - 
getTypepublic FigureChangeEvent.Type getType() - Returns:
- The type of the event.
 
 - 
getFigurespublic Figure[] getFigures() - Returns:
- The figures added or removed. Returns nullif the event type isFIGURE_CHANGED.
 
 - 
toStringpublic String toString() - Overrides:
- toStringin class- EventObject
 
 
- 
 
-