Package com.iizigo.swt
Class IzFillLayout
java.lang.Object
org.eclipse.swt.widgets.Layout
com.iizigo.swt.IzFillLayout
"Copy" of Eclipse FillLayout but with addition of maximum width and height as the FillLayout class is "final"!
Field Summary
FieldsModifier and TypeFieldDescriptionintmarginHeight specifies the number of pixels of vertical margin that will be placed along the top and bottom edges of the layout.intmarginWidth specifies the number of pixels of horizontal margin that will be placed along the left and right edges of the layout.intMax height, -1 for none.intMax width, -1 for none.intspacing specifies the number of pixels between the edge of one cell and the edge of its neighbouring cell.inttype specifies how controls will be positioned within the layout.Constructor Summary
ConstructorsConstructorDescriptionConstructs a new instance of this class.IzFillLayout(int type) Constructs a new instance of this class given the type.Method Summary
Modifier and TypeMethodDescriptionprotected PointcomputeSize(Composite composite, int wHint, int hHint, boolean flushCache) protected booleanflushCache(Control control) protected voidtoString()Returns a string containing a concise, human-readable description of the receiver.
Field Details
type
public int typetype specifies how controls will be positioned within the layout. The default value is HORIZONTAL. Possible values are:- HORIZONTAL: Position the controls horizontally from left to right
- VERTICAL: Position the controls vertically from top to bottom
marginWidth
public int marginWidthmarginWidth specifies the number of pixels of horizontal margin that will be placed along the left and right edges of the layout. The default value is 0.marginHeight
public int marginHeightmarginHeight specifies the number of pixels of vertical margin that will be placed along the top and bottom edges of the layout. The default value is 0.spacing
public int spacingspacing specifies the number of pixels between the edge of one cell and the edge of its neighbouring cell. The default value is 0.maxWidth
public int maxWidthMax width, -1 for none.maxHeight
public int maxHeightMax height, -1 for none.
Constructor Details
IzFillLayout
public IzFillLayout()Constructs a new instance of this class.IzFillLayout
public IzFillLayout(int type) Constructs a new instance of this class given the type.- Parameters:
type- the type of fill layout
Method Details
computeSize
- Specified by:
computeSizein classLayout
flushCache
- Overrides:
flushCachein classLayout
layout
toString
Returns a string containing a concise, human-readable description of the receiver.