public static enum BorderSpecification.Align extends Enum<BorderSpecification.Align>
| Enum Constant and Description |
|---|
CENTER
Defines that the border line should be equally close to the surrounded
content as it is to the surrounding content.
|
INNER
Defines that the border line should be close to the content
|
OUTER
Defines that the border line should be far from the content
|
| Modifier and Type | Method and Description |
|---|---|
int |
align(int w)
Returns the offset from the outer edge of the specified value.
|
static BorderSpecification.Align |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static BorderSpecification.Align[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BorderSpecification.Align INNER
public static final BorderSpecification.Align CENTER
public static final BorderSpecification.Align OUTER
public static BorderSpecification.Align[] values()
for (BorderSpecification.Align c : BorderSpecification.Align.values()) System.out.println(c);
public static BorderSpecification.Align 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 align(int w)
w - the width to align