public enum Alignment extends java.lang.Enum<Alignment>
Alignments
represent the built-in horizontal alignment names
that correspond with Excel's horizontal alignment scheme. These are used in
conjunction with the alignment property in the style tag. Legal values are
the names of the enumeration objects, without underscores, case insensitive,
e.g. "center" == "Center" == "CENTER".
StyleTag
,
StyleParser.PROPERTY_ALIGNMENT
Enum Constant | Description |
---|---|
CENTER |
|
CENTERSELECTION |
|
DISTRIBUTED |
|
FILL |
|
GENERAL |
|
JUSTIFY |
|
LEFT |
|
RIGHT |
Modifier and Type | Method | Description |
---|---|---|
short |
getIndex() |
Returns the index.
|
java.lang.String |
toString() |
Returns the name, in all lowercase, no underscores or spaces.
|
static Alignment |
valueOf(java.lang.String name) |
Returns the enum constant of this type with the specified name.
|
static Alignment[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Alignment CENTER
public static final Alignment CENTERSELECTION
public static final Alignment DISTRIBUTED
public static final Alignment FILL
public static final Alignment GENERAL
public static final Alignment JUSTIFY
public static final Alignment LEFT
public static final Alignment RIGHT
public static Alignment[] values()
for (Alignment c : Alignment.values()) System.out.println(c);
public static Alignment valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic short getIndex()
public java.lang.String toString()
toString
in class java.lang.Enum<Alignment>
Copyright © 2012–2018 Jett Team. All rights reserved.