Package com.storedobject.svg
Enum Class Alignment
- All Implemented Interfaces:
Serializable,Comparable<Alignment>,Constable
Represents various possible alignment options for positioning or arranging elements.
This enumeration can be used to specify alignment in different contexts, such as
positioning labels, elements, or other graphical components.
The available alignment options are: - Top: Aligns the element to the top. - Bottom: Aligns the element to the bottom. - Left: Aligns the element to the left. - Right: Aligns the element to the right. - Center: Aligns the element to the center. - Start: Aligns the element to the starting position. - End: Aligns the element to the ending position. - Auto: Automatically determines the alignment based on context.
- Author:
- Syam
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAutomatically determines the alignment based on the context.Aligns the element to the bottom.Aligns the element to the center.Aligns the element to the ending position.Aligns the element to the left.Aligns the element to the right.Aligns the element to the starting position.Aligns the element to the top. -
Method Summary
-
Enum Constant Details
-
Top
Aligns the element to the top. This alignment option is typically used to position or arrange elements such that they align with the top edge of their container or defined boundary. -
Bottom
Aligns the element to the bottom. This alignment option is typically used to position or arrange elements such that they align with the bottom edge of their container or defined boundary. -
Left
Aligns the element to the left. This alignment option is typically used to position or arrange elements such that they align with the left edge of their container or defined boundary. -
Right
Aligns the element to the right. This alignment option is typically used to position or arrange elements such that they align with the right edge of their container or defined boundary. -
Center
Aligns the element to the center. This alignment option is typically used to position or arrange elements such that they are centered within their container or defined boundary. -
Start
Aligns the element to the starting position. This alignment option is typically used to position or arrange elements such that they align with the starting edge of their container or defined boundary, which may depend on the text direction or layout context being used. -
End
Aligns the element to the ending position. This alignment option is commonly used to position or arrange elements such that they align with the ending edge of their container or defined boundary. The interpretation of the "end" position may vary depending on the context, such as text direction or layout settings. -
Auto
Automatically determines the alignment based on the context. This alignment option delegates the positioning decision to the underlying framework or logic, ensuring that the alignment adapts based on the specific circumstances or default behavior. Commonly used when no explicit alignment is specified or when the alignment needs to dynamically adapt.
-
-
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
-