com.partnersoft.gui
Class CenteredLayout

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

public class CenteredLayout
extends java.awt.GridBagLayout

A trivial layout that centers a single, unstretched component in a container.

Author:
Paul Reavis Copyright 1997 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
 
Constructor Summary
CenteredLayout()
           
 
Method Summary
 void addLayoutComponent(java.awt.Component comp, java.lang.Object constraints)
           
 
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

CenteredLayout

public CenteredLayout()
Method Detail

addLayoutComponent

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