Package net.anwiba.commons.swing.icon
Enum DecorationPosition
- java.lang.Object
-
- java.lang.Enum<DecorationPosition>
-
- net.anwiba.commons.swing.icon.DecorationPosition
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<DecorationPosition>
public enum DecorationPosition extends java.lang.Enum<DecorationPosition>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description FillLowerLeftLowerRightUpperLeftUpperRight
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static DecorationPositionvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static DecorationPosition[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
UpperLeft
public static final DecorationPosition UpperLeft
-
UpperRight
public static final DecorationPosition UpperRight
-
LowerLeft
public static final DecorationPosition LowerLeft
-
LowerRight
public static final DecorationPosition LowerRight
-
Fill
public static final DecorationPosition Fill
-
-
Method Detail
-
values
public static DecorationPosition[] 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 (DecorationPosition c : DecorationPosition.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DecorationPosition valueOf(java.lang.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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
-