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 SummaryFieldsModifier and TypeFieldDescription- intmarginHeight 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 SummaryConstructorsConstructorDescriptionConstructs a new instance of this class.- IzFillLayout- (int type) Constructs a new instance of this class given the type.
- Method SummaryModifier and TypeMethodDescription- protected Point- computeSize- (Composite composite, int wHint, int hHint, boolean flushCache) - protected boolean- flushCache- (Control control) - protected void- toString()Returns a string containing a concise, human-readable description of the receiver.
- Field Details- typepublic 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
 
- marginWidthpublic 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.
- marginHeightpublic 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.
- spacingpublic 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.
- maxWidthpublic int maxWidthMax width, -1 for none.
- maxHeightpublic int maxHeightMax height, -1 for none.
 
- Constructor Details- IzFillLayoutpublic IzFillLayout()Constructs a new instance of this class.
- IzFillLayoutpublic 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 class- Layout
 
- flushCache- Overrides:
- flushCachein class- Layout
 
- layout
- toStringReturns a string containing a concise, human-readable description of the receiver.