Package swingtree.api

Class Layout.ForMigLayout

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

@Immutable public static final class Layout.ForMigLayout extends Object implements Layout
The Layout.ForMigLayout layout is a layout that represents a MigLayout layout configuration for a component.
Whenever this layout configuration changes, it will create and re-install a new MigLayout onto the component based on the new configuration, which are the constraints, column constraints and row constraints.
  • Method Details

    • withConstraint

      public Layout.ForMigLayout withConstraint(String constr)
    • withRowConstraint

      public Layout.ForMigLayout withRowConstraint(String rowConstr)
    • withColumnConstraint

      public Layout.ForMigLayout withColumnConstraint(String colConstr)
    • withComponentConstraint

      public Layout.ForMigLayout withComponentConstraint(String componentConstr)
    • 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