net.sf.doolin.gui.swing
Class DockLayout

java.lang.Object
  extended by java.awt.BorderLayout
      extended by net.sf.doolin.gui.swing.DockLayout
All Implemented Interfaces:
LayoutManager, LayoutManager2, Serializable

public class DockLayout
extends BorderLayout

BorderLayout sub-class that allows the docking of several toolbars on the borders.

Author:
Damien Coraboeuf
See Also:
Serialized Form

Field Summary
static int BOTTOM
          BOTTOM location
static int LEFT
          LEFT location
static int RIGHT
          RIGHT location
static int TOP
          TOP location
 
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(Component c, Object con)
           
 void layoutContainer(Container target)
           
 Dimension preferredLayoutSize(Container target)
           
 void removeLayoutComponent(Component c)
           
 
Methods inherited from class java.awt.BorderLayout
addLayoutComponent, getConstraints, getHgap, getLayoutAlignmentX, getLayoutAlignmentY, getLayoutComponent, getLayoutComponent, 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

TOP

public static final int TOP
TOP location

See Also:
Constant Field Values

BOTTOM

public static final int BOTTOM
BOTTOM location

See Also:
Constant Field Values

LEFT

public static final int LEFT
LEFT location

See Also:
Constant Field Values

RIGHT

public static final int RIGHT
RIGHT location

See Also:
Constant Field Values
Constructor Detail

DockLayout

public DockLayout()
Method Detail

addLayoutComponent

public void addLayoutComponent(Component c,
                               Object con)
Specified by:
addLayoutComponent in interface LayoutManager2
Overrides:
addLayoutComponent in class BorderLayout

preferredLayoutSize

public Dimension preferredLayoutSize(Container target)
Specified by:
preferredLayoutSize in interface LayoutManager
Overrides:
preferredLayoutSize in class BorderLayout

removeLayoutComponent

public void removeLayoutComponent(Component c)
Specified by:
removeLayoutComponent in interface LayoutManager
Overrides:
removeLayoutComponent in class BorderLayout

layoutContainer

public void layoutContainer(Container target)
Specified by:
layoutContainer in interface LayoutManager
Overrides:
layoutContainer in class BorderLayout


Copyright © 2011. All Rights Reserved.