public enum HorizontalAlignment extends Enum<HorizontalAlignment>
WithHorizontalAlignment
Enum Constant and Description |
---|
CENTER |
JUSTIFIED |
JUSTIFIED_ALL |
LEFT |
RIGHT |
UNDEFINED |
Modifier and Type | Method and Description |
---|---|
int |
getId() |
static Optional<HorizontalAlignment> |
of(int id)
Constructs
HorizontalAlignment instance from passed unique alignment id . |
static HorizontalAlignment |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static HorizontalAlignment[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final HorizontalAlignment UNDEFINED
public static final HorizontalAlignment LEFT
public static final HorizontalAlignment CENTER
public static final HorizontalAlignment RIGHT
public static final HorizontalAlignment JUSTIFIED
public static final HorizontalAlignment JUSTIFIED_ALL
public static HorizontalAlignment[] values()
for (HorizontalAlignment c : HorizontalAlignment.values()) System.out.println(c);
public static HorizontalAlignment valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic int getId()
public static Optional<HorizontalAlignment> of(int id)
HorizontalAlignment
instance from passed unique alignment id
.id
- Alignment unique IDOptional
containing alignment instance. If id
is not recognized,
Optional.empty()
will be returnedElement.ALIGN_UNDEFINED
,
Element.ALIGN_LEFT
,
Element.ALIGN_CENTER
,
Element.ALIGN_RIGHT
,
Element.ALIGN_JUSTIFIED
,
Element.ALIGN_JUSTIFIED_ALL
Copyright © 2018. All rights reserved.