motris.gui
Class DockLayout

java.lang.Object
  extended byjava.awt.BorderLayout
      extended bymotris.gui.DockLayout
All Implemented Interfaces:
java.awt.LayoutManager, java.awt.LayoutManager2, java.io.Serializable

public class DockLayout
extends java.awt.BorderLayout

See Also:
Serialized Form

Field Summary
private  java.awt.Component center
           
private  java.util.ArrayList east
           
static int HORIZONTAL
           
private  java.util.ArrayList north
           
private  java.util.ArrayList south
           
static int VERTICAL
           
private  java.util.ArrayList west
           
 
Fields inherited from class java.awt.BorderLayout
AFTER_LAST_LINE, AFTER_LINE_ENDS, BEFORE_FIRST_LINE, BEFORE_LINE_BEGINS, CENTER, EAST, LINE_END, LINE_START, NORTH, PAGE_END, PAGE_START, SOUTH, WEST
 
Constructor Summary
DockLayout()
           
 
Method Summary
 void addLayoutComponent(java.awt.Component c, java.lang.Object con)
           
 java.lang.String getPositionOf(java.awt.Component c)
           
private  java.awt.Dimension getPreferredDimension(java.util.ArrayList comps)
           
 void layoutContainer(java.awt.Container target)
           
private  void placeComponents(java.util.ArrayList comps, int x, int y, int w, int h, int orientation)
           
 java.awt.Dimension preferredLayoutSize(java.awt.Container target)
           
 void removeLayoutComponent(java.awt.Component c)
           
 
Methods inherited from class java.awt.BorderLayout
addLayoutComponent, getHgap, getLayoutAlignmentX, getLayoutAlignmentY, getVgap, invalidateLayout, maximumLayoutSize, minimumLayoutSize, setHgap, setVgap, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

VERTICAL

public static final int VERTICAL
See Also:
Constant Field Values

HORIZONTAL

public static final int HORIZONTAL
See Also:
Constant Field Values

north

private java.util.ArrayList north

south

private java.util.ArrayList south

east

private java.util.ArrayList east

west

private java.util.ArrayList west

center

private java.awt.Component center
Constructor Detail

DockLayout

public DockLayout()
Method Detail

addLayoutComponent

public void addLayoutComponent(java.awt.Component c,
                               java.lang.Object con)

removeLayoutComponent

public void removeLayoutComponent(java.awt.Component c)

layoutContainer

public void layoutContainer(java.awt.Container target)

getPreferredDimension

private java.awt.Dimension getPreferredDimension(java.util.ArrayList comps)

placeComponents

private void placeComponents(java.util.ArrayList comps,
                             int x,
                             int y,
                             int w,
                             int h,
                             int orientation)

preferredLayoutSize

public java.awt.Dimension preferredLayoutSize(java.awt.Container target)

getPositionOf

public java.lang.String getPositionOf(java.awt.Component c)