swing2swt.layout
Class BorderLayout

java.lang.Object
  extended by org.eclipse.swt.widgets.Layout
      extended by swing2swt.layout.AWTLayout
          extended by swing2swt.layout.BorderLayout

public class BorderLayout
extends AWTLayout

Port of AWT BorderLayout to SWT.

Author:
Yannick Saillet

Field Summary
static String CENTER
           
static String EAST
           
static String NORTH
           
static String SOUTH
           
static String WEST
           
 
Fields inherited from class swing2swt.layout.AWTLayout
KEY_PREFERRED_SIZE
 
Constructor Summary
BorderLayout()
           
BorderLayout(int hgap, int vgap)
           
 
Method Summary
protected  org.eclipse.swt.graphics.Point computeSize(org.eclipse.swt.widgets.Composite composite, int wHint, int hHint, boolean flushCache)
           
 int getHgap()
           
 int getVgap()
           
protected  void layout(org.eclipse.swt.widgets.Composite composite, boolean flushCache)
           
 void setHgap(int hgap)
           
 void setVgap(int vgap)
           
 
Methods inherited from class swing2swt.layout.AWTLayout
getPreferredSize
 
Methods inherited from class org.eclipse.swt.widgets.Layout
flushCache
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CENTER

public static final String CENTER
See Also:
Constant Field Values

EAST

public static final String EAST
See Also:
Constant Field Values

NORTH

public static final String NORTH
See Also:
Constant Field Values

SOUTH

public static final String SOUTH
See Also:
Constant Field Values

WEST

public static final String WEST
See Also:
Constant Field Values
Constructor Detail

BorderLayout

public BorderLayout()

BorderLayout

public BorderLayout(int hgap,
                    int vgap)
Method Detail

computeSize

protected org.eclipse.swt.graphics.Point computeSize(org.eclipse.swt.widgets.Composite composite,
                                                     int wHint,
                                                     int hHint,
                                                     boolean flushCache)
Specified by:
computeSize in class org.eclipse.swt.widgets.Layout

layout

protected void layout(org.eclipse.swt.widgets.Composite composite,
                      boolean flushCache)
Specified by:
layout in class org.eclipse.swt.widgets.Layout

getHgap

public int getHgap()
Returns:
Returns the hgap.

setHgap

public void setHgap(int hgap)
Parameters:
hgap - The hgap to set.

getVgap

public int getVgap()
Returns:
Returns the vgap.

setVgap

public void setVgap(int vgap)
Parameters:
vgap - The vgap to set.