Package swingtree

Enum Class UI.ComponentBoundary

java.lang.Object
java.lang.Enum<UI.ComponentBoundary>
swingtree.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 entire UI.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 a JPanel or JScrollPane.
  • Enum Constant Details

    • OUTER_TO_EXTERIOR

      public static final UI.ComponentBoundary OUTER_TO_EXTERIOR
      The outermost boundary of the component, including any margin that might be applied.
    • EXTERIOR_TO_BORDER

      public static final UI.ComponentBoundary EXTERIOR_TO_BORDER
      The boundary located after the margin but before the border. This wraps the UI.ComponentArea.BODY.
    • BORDER_TO_INTERIOR

      public static final UI.ComponentBoundary 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

      public static final UI.ComponentBoundary 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 a JPanel or JScrollPane.
    • CENTER_TO_CONTENT

      public static final UI.ComponentBoundary CENTER_TO_CONTENT
      The center point of the component.
  • Method Details

    • values

      public static UI.ComponentBoundary[] 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

      public static UI.ComponentBoundary valueOf(String name)
      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 name
      NullPointerException - if the argument is null