Package com.oorian.css
Enum Class TextJustify
- All Implemented Interfaces:
Serializable,Comparable<TextJustify>,Constable
CSS text-justify property values for justification method.
The text-justify property specifies how justified text should be aligned when text-align is set to "justify". Different methods are appropriate for different writing systems.
Justification Methods:
- auto: Browser selects method (default)
- inter-word: Adjusts space between words
- inter-character: Adjusts space between characters
- distribute: Even distribution for CJK text
- kashida: For Arabic text with kashida insertion
Usage:
paragraph.setTextJustify(TextJustify.INTER_WORD);
japaneseText.setTextJustify(TextJustify.DISTRIBUTE);
- Since:
- 2012
- Version:
- 1.0
- Author:
- Marvin P. Warble Jr.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionBrowser selects appropriate method.Even distribution of space.Inherits from parent element.Sets to default value.Distributes space between character clusters.For ideographic scripts like CJK.Adjusts spacing between words.Arabic kashida character insertion.Disables justification.Trims whitespace from ends of lines. -
Method Summary
Modifier and TypeMethodDescriptiongetValue()Returns the CSS value string.toString()Returns the CSS value string.static TextJustifyReturns the enum constant of this class with the specified name.static TextJustify[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
INITIAL
Sets to default value. -
INHERIT
Inherits from parent element. -
AUTO
Browser selects appropriate method. -
NONE
Disables justification. -
INTER_WORD
Adjusts spacing between words. -
INTER_IDEOGRAPH
For ideographic scripts like CJK. -
INTER_CLUSTER
Distributes space between character clusters. -
DISTRIBUTE
Even distribution of space. -
KASHIDA
Arabic kashida character insertion. -
TRIM
Trims whitespace from ends of lines.
-
-
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
-
getValue
Returns the CSS value string.- Returns:
- the CSS value
-
toString
Returns the CSS value string.- Overrides:
toStringin classEnum<TextJustify>- Returns:
- the CSS value
-