net.sf.magicproject.ui.layout
Class BorderLayout2

java.lang.Object
  extended by java.awt.BorderLayout
      extended by net.sf.magicproject.ui.layout.BorderLayout2
All Implemented Interfaces:
java.awt.LayoutManager, java.awt.LayoutManager2, java.io.Serializable

public class BorderLayout2
extends java.awt.BorderLayout

Since:
0.86
Author:
Fabrice Daugan
See Also:
Serialized Form

Field Summary
 
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
BorderLayout2()
          Constructs a new border layout with no gaps between components.
BorderLayout2(int hgap, int vgap)
          Constructs a border layout with the specified gaps between components.
 
Method Summary
 void addLayoutComponent(java.awt.Component comp, java.lang.Object constraints)
           
 void removeLayoutComponent(java.awt.Component comp)
           
 
Methods inherited from class java.awt.BorderLayout
addLayoutComponent, getConstraints, getHgap, getLayoutAlignmentX, getLayoutAlignmentY, getLayoutComponent, getLayoutComponent, getVgap, invalidateLayout, layoutContainer, maximumLayoutSize, minimumLayoutSize, preferredLayoutSize, setHgap, setVgap, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BorderLayout2

public BorderLayout2()
Constructs a new border layout with no gaps between components.


BorderLayout2

public BorderLayout2(int hgap,
                     int vgap)
Constructs a border layout with the specified gaps between components. The horizontal gap is specified by hgap and the vertical gap is specified by vgap.

Parameters:
hgap - the horizontal gap.
vgap - the vertical gap.
Method Detail

removeLayoutComponent

public void removeLayoutComponent(java.awt.Component comp)
Specified by:
removeLayoutComponent in interface java.awt.LayoutManager
Overrides:
removeLayoutComponent in class java.awt.BorderLayout

addLayoutComponent

public void addLayoutComponent(java.awt.Component comp,
                               java.lang.Object constraints)
Specified by:
addLayoutComponent in interface java.awt.LayoutManager2
Overrides:
addLayoutComponent in class java.awt.BorderLayout


Copyright © 2003-2007 Magic-Project. All Rights Reserved.