Package com.bc.ceres.swing.figure
Enum FigureChangeEvent.Type
- java.lang.Object
-
- java.lang.Enum<FigureChangeEvent.Type>
-
- com.bc.ceres.swing.figure.FigureChangeEvent.Type
-
- All Implemented Interfaces:
Serializable
,Comparable<FigureChangeEvent.Type>
- Enclosing class:
- FigureChangeEvent
public static enum FigureChangeEvent.Type extends Enum<FigureChangeEvent.Type>
Possible event types.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description FIGURE_CHANGED
A (source-) figure has changed.FIGURES_ADDED
Figures have been added to a (source-) figure.FIGURES_REMOVED
Figures have been removed from a (source-) figure.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static FigureChangeEvent.Type
valueOf(String name)
Returns the enum constant of this type with the specified name.static FigureChangeEvent.Type[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant 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.
-
-
Method Detail
-
values
public static FigureChangeEvent.Type[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (FigureChangeEvent.Type c : FigureChangeEvent.Type.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static FigureChangeEvent.Type valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-