swing2swt.layout
Class BorderLayout
java.lang.Object
org.eclipse.swt.widgets.Layout
swing2swt.layout.AWTLayout
swing2swt.layout.BorderLayout
public class BorderLayout
- extends AWTLayout
Port of AWT BorderLayout to SWT.
- Author:
- Yannick Saillet
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 org.eclipse.swt.widgets.Layout |
flushCache |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
BorderLayout
public BorderLayout()
BorderLayout
public BorderLayout(int hgap,
int vgap)
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.