org.argouml.swingext
Class ProportionalLayout

java.lang.Object
  |
  +--org.argouml.swingext.LineLayout
        |
        +--org.argouml.swingext.ProportionalLayout
All Implemented Interfaces:
java.awt.LayoutManager, java.awt.LayoutManager2
Direct Known Subclasses:
SplitterLayout

public class ProportionalLayout
extends LineLayout

Allows components to be a set as a proportion to their container or left as fixed size. Components are resized accordingly when the parent is resized.


Field Summary
protected  java.util.Hashtable componentTable
           
 
Fields inherited from class org.argouml.swingext.LineLayout
HORIZONTAL, orientation, VERTICAL
 
Constructor Summary
ProportionalLayout()
           
ProportionalLayout(Orientation orientation)
           
 
Method Summary
 void addLayoutComponent(java.awt.Component comp, java.lang.Object constraints)
           
 void addLayoutComponent(java.lang.String name, java.awt.Component comp)
           
 void layoutContainer(java.awt.Container parent)
           
 void removeLayoutComponent(java.awt.Component comp)
           
 
Methods inherited from class org.argouml.swingext.LineLayout
getLayoutAlignmentX, getLayoutAlignmentY, invalidateLayout, maximumLayoutSize, minimumLayoutSize, preferredLayoutSize
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

componentTable

protected java.util.Hashtable componentTable
Constructor Detail

ProportionalLayout

public ProportionalLayout()

ProportionalLayout

public ProportionalLayout(Orientation orientation)
Method Detail

addLayoutComponent

public final void addLayoutComponent(java.awt.Component comp,
                                     java.lang.Object constraints)
Overrides:
addLayoutComponent in class LineLayout

addLayoutComponent

public void addLayoutComponent(java.lang.String name,
                               java.awt.Component comp)
Overrides:
addLayoutComponent in class LineLayout

removeLayoutComponent

public void removeLayoutComponent(java.awt.Component comp)
Overrides:
removeLayoutComponent in class LineLayout

layoutContainer

public void layoutContainer(java.awt.Container parent)


ArgoUML (c) 1996-2002
ArgoUML Project Home
ArgoUML Cookbook