Package org.apache.poi.sl.usermodel
Enum Class TextParagraph.TextAlign
- All Implemented Interfaces:
Serializable
,Comparable<TextParagraph.TextAlign>
,Constable
- Enclosing interface:
TextParagraph<S extends Shape<S,
P>, P extends TextParagraph<S, P, T>, T extends TextRun>
Specifies a list of text alignment types
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionFor horizontal text, centered.Distribute space between characters.Align text so that it is justified across the whole line.Kashida justify low.For horizontal text, left aligned.For horizontal text, right aligned.Thai distribution justification. -
Method Summary
Modifier and TypeMethodDescriptionstatic TextParagraph.TextAlign
Returns the enum constant of this class with the specified name.static TextParagraph.TextAlign[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
LEFT
For horizontal text, left aligned. For vertical text, top aligned. -
CENTER
For horizontal text, centered. For vertical text, middle aligned. -
RIGHT
For horizontal text, right aligned. For vertical text, bottom aligned. -
JUSTIFY
Align text so that it is justified across the whole line. It is smart in the sense that it will not justify sentences which are short For horizontal text, flush left and right. For vertical text, flush top and bottom. -
JUSTIFY_LOW
Kashida justify low. -
DIST
Distribute space between characters. -
THAI_DIST
Thai distribution justification.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-