Package edu.cnu.mdi.item
Enum Class ResizePolicy
- All Implemented Interfaces:
Serializable,Comparable<ResizePolicy>,Constable
- Author:
- heddle
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic EnumMap<ResizePolicy, String> A map for the names of the fill styles. -
Method Summary
Modifier and TypeMethodDescriptiongetName()Get the nice name of the enum.static String[]getNames()Returns the array of nice (more readable) names from the enum map.static ResizePolicyReturns the enum value from the name.static ResizePolicyReturns the enum constant of this class with the specified name.static ResizePolicy[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NORMAL
-
SCALEONLY
-
-
Field Details
-
names
A map for the names of the fill styles.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-
getValue
Returns the enum value from the name.- Parameters:
name- the name to match.- Returns:
- the
FillStylethat corresponds to the name. Returnsnullif no match is found. Note it will check (case insensitive) both the map and thename()result, thus "Solid" or "SOLID" or "SoLiD" will return theSOLIDvalue.
-
getName
Get the nice name of the enum.- Returns:
- the nice name, for combo boxes, menus, etc.
-
getNames
Returns the array of nice (more readable) names from the enum map. These are more suitable than the raw names for presentations in radio boxes, lists, etc.- Returns:
- the string array of nice names for display.
-