org.argouml.swingext
Class SerialLayout

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

public class SerialLayout
extends LineLayout

Lays out components in a single row or column starting from any side and aligning components to eachother.

Components can be set to start draw from, LEFTTORIGHT, TOPTOBOTTOM, RIGHTTOLEFT or BOTTOMTOTOP.

Components will line up with eachother by edge or follow a common central line.

The gap to leave before the first component and the following gaps between each component can be set.


Field Summary
static int BOTTOM
           
static int BOTTOMTOTOP
           
protected static org.apache.log4j.Category cat
           
static int CENTER
           
static java.lang.String EAST
           
static int FILL
           
static int LEFT
           
static int LEFTTORIGHT
           
static java.lang.String NORTH
           
static java.lang.String NORTHEAST
           
static java.lang.String NORTHWEST
           
static int RIGHT
           
static int RIGHTTOLEFT
           
static java.lang.String SOUTH
           
static java.lang.String SOUTHEAST
           
static java.lang.String SOUTHWEST
           
static int TOP
           
static int TOPTOBOTTOM
           
static java.lang.String WEST
           
 
Fields inherited from class org.argouml.swingext.LineLayout
_gap, _orientation, HORIZONTAL, VERTICAL
 
Constructor Summary
SerialLayout()
           
SerialLayout(Orientation orientation)
           
SerialLayout(Orientation orientation, java.lang.String position)
           
SerialLayout(Orientation orientation, java.lang.String position, int direction)
           
SerialLayout(Orientation orientation, java.lang.String position, int direction, int alignment)
           
SerialLayout(Orientation orientation, java.lang.String position, int direction, int alignment, int gap)
           
 
Method Summary
 void layoutContainer(java.awt.Container parent)
           
 
Methods inherited from class org.argouml.swingext.LineLayout
addLayoutComponent, addLayoutComponent, getLayoutAlignmentX, getLayoutAlignmentY, invalidateLayout, maximumLayoutSize, minimumLayoutSize, preferredLayoutSize, removeLayoutComponent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

cat

protected static org.apache.log4j.Category cat

LEFTTORIGHT

public static final int LEFTTORIGHT
See Also:
Constant Field Values

TOPTOBOTTOM

public static final int TOPTOBOTTOM
See Also:
Constant Field Values

RIGHTTOLEFT

public static final int RIGHTTOLEFT
See Also:
Constant Field Values

BOTTOMTOTOP

public static final int BOTTOMTOTOP
See Also:
Constant Field Values

NORTH

public static final java.lang.String NORTH
See Also:
Constant Field Values

SOUTH

public static final java.lang.String SOUTH
See Also:
Constant Field Values

EAST

public static final java.lang.String EAST
See Also:
Constant Field Values

WEST

public static final java.lang.String WEST
See Also:
Constant Field Values

NORTHEAST

public static final java.lang.String NORTHEAST
See Also:
Constant Field Values

NORTHWEST

public static final java.lang.String NORTHWEST
See Also:
Constant Field Values

SOUTHEAST

public static final java.lang.String SOUTHEAST
See Also:
Constant Field Values

SOUTHWEST

public static final java.lang.String SOUTHWEST
See Also:
Constant Field Values

LEFT

public static final int LEFT
See Also:
Constant Field Values

RIGHT

public static final int RIGHT
See Also:
Constant Field Values

TOP

public static final int TOP
See Also:
Constant Field Values

BOTTOM

public static final int BOTTOM
See Also:
Constant Field Values

CENTER

public static final int CENTER
See Also:
Constant Field Values

FILL

public static final int FILL
See Also:
Constant Field Values
Constructor Detail

SerialLayout

public SerialLayout()

SerialLayout

public SerialLayout(Orientation orientation)

SerialLayout

public SerialLayout(Orientation orientation,
                    java.lang.String position)

SerialLayout

public SerialLayout(Orientation orientation,
                    java.lang.String position,
                    int direction)

SerialLayout

public SerialLayout(Orientation orientation,
                    java.lang.String position,
                    int direction,
                    int alignment)

SerialLayout

public SerialLayout(Orientation orientation,
                    java.lang.String position,
                    int direction,
                    int alignment,
                    int gap)
Method Detail

layoutContainer

public void layoutContainer(java.awt.Container parent)


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