org.argouml.swingext
Class SplitterLayout

java.lang.Object
  extended byorg.argouml.swingext.LineLayout
      extended byorg.argouml.swingext.ProportionalLayout
          extended byorg.argouml.swingext.SplitterLayout
All Implemented Interfaces:
java.awt.LayoutManager, java.awt.LayoutManager2

public class SplitterLayout
extends ProportionalLayout

A ProportionalLayout which recognises a contained Splitter and automatically registers components either side to be resized.


Nested Class Summary
private  class SplitterLayout.SplitterMouseListener
           
 
Field Summary
(package private)  SplitterLayout.SplitterMouseListener splitterMouseListener
           
 
Fields inherited from class org.argouml.swingext.ProportionalLayout
componentTable
 
Fields inherited from class org.argouml.swingext.LineLayout
_gap, _orientation, HORIZONTAL, VERTICAL
 
Constructor Summary
SplitterLayout()
           
SplitterLayout(Orientation orientation)
           
 
Method Summary
 void addLayoutComponent(java.lang.String name, java.awt.Component comp)
           
private  void calculateProportions()
           
private  void calculateProportions(java.awt.Component westComponent, java.awt.Component eastComponent)
           
 int getComponentPosition(java.awt.Component comp)
           
 
Methods inherited from class org.argouml.swingext.ProportionalLayout
addLayoutComponent, layoutContainer, removeLayoutComponent
 
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

splitterMouseListener

SplitterLayout.SplitterMouseListener splitterMouseListener
Constructor Detail

SplitterLayout

public SplitterLayout()

SplitterLayout

public SplitterLayout(Orientation orientation)
Method Detail

addLayoutComponent

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

calculateProportions

private void calculateProportions()

calculateProportions

private void calculateProportions(java.awt.Component westComponent,
                                  java.awt.Component eastComponent)

getComponentPosition

public int getComponentPosition(java.awt.Component comp)


ArgoUML © 1996-2004 (20040316)ArgoUML HomepageArgoUML Developers' pageArgoUML Cookbook