Package swingtree.api

Class Layout.BorderLayoutInstaller

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

@Immutable public static final class Layout.BorderLayoutInstaller extends Object implements Layout
The Layout.BorderLayoutInstaller layout is a layout that represents a BorderLayout layout configuration for a component, which consists of the horizontal gap and vertical gap.
Whenever this layout configuration changes, it will create and re-install a new BorderLayout 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