org.tigris.swidgets
Class ProportionalLayout
java.lang.Object
org.tigris.swidgets.LineLayout
org.tigris.swidgets.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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
componentTable
protected java.util.Hashtable componentTable
ProportionalLayout
public ProportionalLayout()
ProportionalLayout
public ProportionalLayout(Orientation orientation)
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)