Package swingtree.api

Class Layout.ForBoxLayout

java.lang.Object
swingtree.api.Layout.ForBoxLayout
All Implemented Interfaces:
Layout
Enclosing interface:
Layout

@Immutable public static final class Layout.ForBoxLayout extends Object implements Layout
The Layout.ForBoxLayout layout is a layout that represents a BoxLayout layout configuration for a component, which consists of the axis.
The axis determines whether the layout will be a horizontal or vertical BoxLayout.
Whenever this layout configuration object changes, it will create and re-install a new BoxLayout onto the component based on the new configuration.
  • Method Details

    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface Layout
      Overrides:
      hashCode in class Object
      Returns:
      A hash code value for this layout.
    • equals

      public boolean equals(Object o)
      Specified by:
      equals in interface Layout
      Overrides:
      equals in class Object
      Parameters:
      o - The object to compare this layout to.
      Returns:
      true if the supplied object is a layout that is equal to this layout, false otherwise.
    • installFor

      public void installFor(JComponent component)
      Description copied from interface: Layout
      Installs this layout for the supplied component.
      Specified by:
      installFor in interface Layout
      Parameters:
      component - The component to install this layout for.
    • toString

      public String toString()
      Overrides:
      toString in class Object