Package limn.components
Enum Class Label.HAlign
- All Implemented Interfaces:
Serializable,Comparable<Label.HAlign>,Constable
- Enclosing class:
Label
Where a line sits in the text region, on two vocabularies that coexist on purpose.
START and END are logical: they name where reading starts and
ends, so they turn around with LayoutDirection. That is what a label
almost always wants, because a label is text and text has a reading order.
LEFT and RIGHT are physical: they name a side of the region and
keep naming it whichever way the subtree reads. Reach for one when the alignment is about
the box rather than about the reading order — a column of figures that must stay
flush with the column beside it, a caption pinned under one corner of a picture.
CENTER is the same number in both vocabularies and in both directions.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic Label.HAlignReturns the enum constant of this class with the specified name.static Label.HAlign[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
START
Against the edge reading starts from. -
CENTER
Centred in the text region. -
END
Against the edge reading ends on. -
LEFT
Against the region's left edge, whichever way the subtree reads. -
RIGHT
Against the region's right edge, whichever way the subtree reads.
-
-
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
-