Package 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.
-
-
Constructor Summary
Constructors Constructor Description BorderLayout()
BorderLayout(int hgap, int vgap)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Point
computeSize(Composite composite, int wHint, int hHint, boolean flushCache)
int
getHgap()
int
getVgap()
protected void
layout(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
-
-
-
-
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
-
-
Method Detail
-
computeSize
protected Point computeSize(Composite composite, int wHint, int hHint, boolean flushCache)
- Specified by:
computeSize
in classLayout
-
layout
protected void layout(Composite composite, boolean flushCache)
-
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.
-
-