- java.lang.Object
-
- java.lang.Enum<VerticalAlignment>
-
- io.github.mmm.base.placement.VerticalAlignment
-
- All Implemented Interfaces:
Serializable
,Comparable<VerticalAlignment>
public enum VerticalAlignment extends Enum<VerticalAlignment>
This enum represents a vertical alignment of some object.- See Also:
HorizontalAlignment
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VerticalAlignment
fromValue(String value)
This method gets theVerticalAlignment
with the givenvalue
.Alignment
getAlignment()
This method gets the correspondingAlignment
.String
getValue()
String
toString()
static VerticalAlignment
valueOf(String name)
Returns the enum constant of this type with the specified name.static VerticalAlignment[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
TOP
public static final VerticalAlignment TOP
Align content to the top.
-
BOTTOM
public static final VerticalAlignment BOTTOM
Align content to the bottom.
-
CENTER
public static final VerticalAlignment CENTER
Align content centered to the middle (same space at top and bottom).
-
-
Method Detail
-
values
public static VerticalAlignment[] 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 (VerticalAlignment c : VerticalAlignment.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static VerticalAlignment 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
-
getValue
public String getValue()
- Returns:
- the ascii symbol.
-
getAlignment
public Alignment getAlignment()
This method gets the correspondingAlignment
.- Returns:
- the corresponding
Alignment
.
-
toString
public String toString()
- Overrides:
toString
in classEnum<VerticalAlignment>
-
fromValue
public static VerticalAlignment fromValue(String value)
This method gets theVerticalAlignment
with the givenvalue
.- Parameters:
value
- is thevalue
of the requestedVerticalAlignment
.- Returns:
- the requested
VerticalAlignment
.
-
-