com.partnersoft.gui
Class SingleLayout

java.lang.Object
  extended by java.awt.GridBagLayout
      extended by com.partnersoft.gui.SingleLayout
All Implemented Interfaces:
java.awt.LayoutManager, java.awt.LayoutManager2, java.io.Serializable, javax.swing.SwingConstants

public class SingleLayout
extends java.awt.GridBagLayout
implements javax.swing.SwingConstants

A trivial layout that stretches a single contained component to the full size of the container. Use it when you need to place only a single item in a Container, and want it to size along with the Container.

Author:
Paul Reavis Copyright 1997-2001 Partner Software, Inc.
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.awt.GridBagLayout
columnWeights, columnWidths, comptable, defaultConstraints, layoutInfo, MAXGRIDSIZE, MINSIZE, PREFERREDSIZE, rowHeights, rowWeights
 
Fields inherited from interface javax.swing.SwingConstants
BOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST
 
Constructor Summary
SingleLayout()
           
SingleLayout(java.lang.String stretch, java.lang.String anchor)
          Create a new SingleLayout.
 
Method Summary
 void addLayoutComponent(java.awt.Component comp, java.lang.Object throwaway)
           
static javax.swing.JPanel createWrapperPanel(javax.swing.JComponent component, java.lang.String stretch, java.lang.String anchor)
           
 
Methods inherited from class java.awt.GridBagLayout
addLayoutComponent, adjustForGravity, AdjustForGravity, arrangeGrid, ArrangeGrid, getConstraints, getLayoutAlignmentX, getLayoutAlignmentY, getLayoutDimensions, getLayoutInfo, GetLayoutInfo, getLayoutOrigin, getLayoutWeights, getMinSize, GetMinSize, invalidateLayout, layoutContainer, location, lookupConstraints, maximumLayoutSize, minimumLayoutSize, preferredLayoutSize, removeLayoutComponent, setConstraints, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SingleLayout

public SingleLayout()

SingleLayout

public SingleLayout(java.lang.String stretch,
                    java.lang.String anchor)
Create a new SingleLayout. Stretch is one of none, both, horizontal, or vertical. Anchor is one of north, south, east, west, northeast, southeast, northwest, southwest, right, left, top, bottom, center.

Method Detail

createWrapperPanel

public static javax.swing.JPanel createWrapperPanel(javax.swing.JComponent component,
                                                    java.lang.String stretch,
                                                    java.lang.String anchor)

addLayoutComponent

public void addLayoutComponent(java.awt.Component comp,
                               java.lang.Object throwaway)
Specified by:
addLayoutComponent in interface java.awt.LayoutManager2
Overrides:
addLayoutComponent in class java.awt.GridBagLayout