Package swingtree
Enum Class UI.ComponentBoundary
- All Implemented Interfaces:
Serializable
,Comparable<UI.ComponentBoundary>
,Constable
,UIEnum<UI.ComponentBoundary>
- Enclosing class:
- UI
@Immutable
public static enum UI.ComponentBoundary
extends Enum<UI.ComponentBoundary>
implements UIEnum<UI.ComponentBoundary>
Enum representing the different boundaries of a UI component.
Here's a brief explanation of each enum entry:
OUTER_TO_EXTERIOR
- The outermost boundary of the entire component, including any margin that might be applied.EXTERIOR_TO_BORDER
- The boundary located after the margin but before the border. This tightly wraps the entireUI.ComponentArea.BODY
.BORDER_TO_INTERIOR
- The boundary located after the border but before the padding. It represents the edge of the component's interior.INTERIOR_TO_CONTENT
- The boundary located after the padding. It represents the innermost boundary of the component, where the actual content of the component begins, like for example the contents of aJPanel
orJScrollPane
.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionThe boundary located after the border but before the padding.The center point of the component.The boundary located after the margin but before the border.The boundary located after the padding.The outermost boundary of the component, including any margin that might be applied. -
Method Summary
Modifier and TypeMethodDescriptionstatic UI.ComponentBoundary
Returns the enum constant of this class with the specified name.static UI.ComponentBoundary[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
OUTER_TO_EXTERIOR
The outermost boundary of the component, including any margin that might be applied. -
EXTERIOR_TO_BORDER
The boundary located after the margin but before the border. This wraps theUI.ComponentArea.BODY
. -
BORDER_TO_INTERIOR
The boundary located after the border but before the padding. It represents the edge of the component's interior. -
INTERIOR_TO_CONTENT
The boundary located after the padding. It represents the innermost boundary of the component, where the actual content of the component begins, like for example the contents of aJPanel
orJScrollPane
. -
CENTER_TO_CONTENT
The center point of the component.
-
-
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
-