Class RightSidedSquishyBuddyLayout

  • All Implemented Interfaces:
    java.awt.LayoutManager, java.io.Serializable

    public class RightSidedSquishyBuddyLayout
    extends java.lang.Object
    implements java.awt.LayoutManager, java.io.Serializable
    Layout for two components laid out horizontally where the first component gets its preferred width and the second component gets the remaining space up to its preferred width.
    See Also:
    Serialized Form
    • Constructor Detail

      • RightSidedSquishyBuddyLayout

        public RightSidedSquishyBuddyLayout​(int hGap)
      • RightSidedSquishyBuddyLayout

        public RightSidedSquishyBuddyLayout​(int hGap,
                                            boolean rightAlign)
    • Method Detail

      • addLayoutComponent

        public void addLayoutComponent​(java.lang.String name,
                                       java.awt.Component comp)
        Specified by:
        addLayoutComponent in interface java.awt.LayoutManager
      • removeLayoutComponent

        public void removeLayoutComponent​(java.awt.Component comp)
        Specified by:
        removeLayoutComponent in interface java.awt.LayoutManager
      • preferredLayoutSize

        public java.awt.Dimension preferredLayoutSize​(java.awt.Container container)
        Specified by:
        preferredLayoutSize in interface java.awt.LayoutManager
      • minimumLayoutSize

        public java.awt.Dimension minimumLayoutSize​(java.awt.Container cont)
        Specified by:
        minimumLayoutSize in interface java.awt.LayoutManager
      • layoutContainer

        public void layoutContainer​(java.awt.Container container)
        Specified by:
        layoutContainer in interface java.awt.LayoutManager