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
_gap, _orientation, HORIZONTAL, 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)
Specified by:
addLayoutComponent in interface java.awt.LayoutManager2
Overrides:
addLayoutComponent in class LineLayout

addLayoutComponent

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

removeLayoutComponent

public void removeLayoutComponent(java.awt.Component comp)
Specified by:
removeLayoutComponent in interface java.awt.LayoutManager
Overrides:
removeLayoutComponent in class LineLayout

layoutContainer

public void layoutContainer(java.awt.Container parent)


ArgoUML © 1996-2003 (20040229)ArgoUML Project HomeArgoUML Cookbook