Class BorderData
java.lang.Object
org.eclipse.swt.layout.BorderData
Controls the several aspects of a
BorderLayout.- Since:
- 3.119
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptioncreates aBorderDatawith default optionsBorderData(int region) creates aBorderDatainitialized with the given region, valid values areSWT.TOP,SWT.CENTER,SWT.LEFT,SWT.RIGHT,SWT.BOTTOMBorderData(int region, int widthHint, int heightHint) creates aBorderDatainitialized with the given region and width and height hints -
Method Summary
Modifier and TypeMethodDescription(package private) PointcomputeSize(Control control, int wHint, int hHint, boolean changed) (package private) voidflushCache(Control control) (package private) int(package private) static StringgetRegionString(int region) (package private) PointtoString()
-
Field Details
-
cachedSize
-
hHint
public int hHint -
wHint
public int wHint -
region
public int region
-
-
Constructor Details
-
BorderData
public BorderData()creates aBorderDatawith default options -
BorderData
public BorderData(int region) creates aBorderDatainitialized with the given region, valid values areSWT.TOP,SWT.CENTER,SWT.LEFT,SWT.RIGHT,SWT.BOTTOM- Parameters:
region- the region valid values areSWT.TOP,SWT.CENTER,SWT.LEFT,SWT.RIGHT,SWT.BOTTOM
-
BorderData
public BorderData(int region, int widthHint, int heightHint) creates aBorderDatainitialized with the given region and width and height hints- Parameters:
region- the region valid values areSWT.TOP,SWT.CENTER,SWT.LEFT,SWT.RIGHT,SWT.BOTTOMwidthHint- the default hint for the widthheightHint- he default hint for the height
-
-
Method Details
-
getSize
-
computeSize
-
flushCache
-
toString
-
getRegionString
-
getRegion
int getRegion()- Returns:
- the region of this BorderData or
SWT.NONEif it is out of range
-