Top Description Fields Constructors Methods
org.eclipse.swt.layout

public final Class BorderData

extends Object
Class Inheritance
Static Imports
org.eclipse.swt.SWT.*

Controls the several aspects of a BorderLayout.
Since
3.119

Field Summary

Modifier and TypeField and Description
private final Map<Control, Point>
public int
public int
public int

Constructor Summary

AccessConstructor and Description
public
BorderData()

creates a BorderData with default options

public
BorderData(int
the region valid values are SWT#TOP, SWT#CENTER, SWT#LEFT, SWT#RIGHT, SWT#BOTTOM
region
)

creates a BorderData initialized with the given region, valid values are SWT#TOP, SWT#CENTER, SWT#LEFT, SWT#RIGHT, SWT#BOTTOM

public
BorderData(int
the region valid values are SWT#TOP, SWT#CENTER, SWT#LEFT, SWT#RIGHT, SWT#BOTTOM
region
,
int
the default hint for the width
widthHint
,
int
he default hint for the height
heightHint
)

creates a BorderData initialized with the given region and width and height hints

Method Summary

Modifier and TypeMethod and Description
pack-priv Point
computeSize(Control control, int wHint, int hHint, boolean changed)

pack-priv void
pack-priv int

Returns:

the region of this BorderData or SWT#NONE if it is out of range
getRegion
()

pack-priv static String
getRegionString(int region)

pack-priv Point
getSize(Control control)

public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

cachedSizeback to summary
private final Map<Control, Point> cachedSize
hHintback to summary
public int hHint
regionback to summary
public int region
wHintback to summary
public int wHint

Constructor Detail

BorderDataback to summary
public BorderData()

creates a BorderData with default options

BorderDataback to summary
public BorderData(int region)

creates a BorderData initialized with the given region, valid values are SWT#TOP, SWT#CENTER, SWT#LEFT, SWT#RIGHT, SWT#BOTTOM

Parameters
region:int

the region valid values are SWT#TOP, SWT#CENTER, SWT#LEFT, SWT#RIGHT, SWT#BOTTOM

BorderDataback to summary
public BorderData(int region, int widthHint, int heightHint)

creates a BorderData initialized with the given region and width and height hints

Parameters
region:int

the region valid values are SWT#TOP, SWT#CENTER, SWT#LEFT, SWT#RIGHT, SWT#BOTTOM

widthHint:int

the default hint for the width

heightHint:int

he default hint for the height

Method Detail

computeSizeback to summary
pack-priv Point computeSize(Control control, int wHint, int hHint, boolean changed)
flushCacheback to summary
pack-priv void flushCache(Control control)
getRegionback to summary
pack-priv int getRegion()
Returns:int

the region of this BorderData or SWT#NONE if it is out of range

getRegionStringback to summary
pack-priv static String getRegionString(int region)
getSizeback to summary
pack-priv Point getSize(Control control)
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object.

Returns:String

a string representation of the object

Annotations
@Override