Package com.iizigo.swt
Class IzFillLayout
- java.lang.Object
- org.eclipse.swt.widgets.Layout
- com.iizigo.swt.IzFillLayout
 
 
- public class IzFillLayout extends org.eclipse.swt.widgets.Layout"Copy" of Eclipse FillLayout but with addition of maximum width and height as the FillLayout class is "final"!
- Field Summary- Fields - Modifier and Type - Field - Description - int- marginHeightmarginHeight specifies the number of pixels of vertical margin that will be placed along the top and bottom edges of the layout.- int- marginWidthmarginWidth specifies the number of pixels of horizontal margin that will be placed along the left and right edges of the layout.- int- maxHeightMax height, -1 for none.- int- maxWidthMax width, -1 for none.- int- spacingspacing specifies the number of pixels between the edge of one cell and the edge of its neighbouring cell.- int- typetype specifies how controls will be positioned within the layout.
 - Constructor Summary- Constructors - Constructor - Description - IzFillLayout()Constructs a new instance of this class.- IzFillLayout(int type)Constructs a new instance of this class given the type.
 - Method Summary- All Methods Instance Methods Concrete Methods - Modifier and Type - Method - Description - protected org.eclipse.swt.graphics.Point- computeSize(org.eclipse.swt.widgets.Composite composite, int wHint, int hHint, boolean flushCache)- protected boolean- flushCache(org.eclipse.swt.widgets.Control control)- protected void- layout(org.eclipse.swt.widgets.Composite composite, boolean flushCache)- java.lang.String- toString()Returns a string containing a concise, human-readable description of the receiver.
 
- Field Detail- type- public int type type 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 marginWidth marginWidth 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 marginHeight marginHeight 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 spacing spacing 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 maxWidth Max width, -1 for none.
 - maxHeight- public int maxHeight Max height, -1 for none.
 
 - Method Detail- computeSize- protected org.eclipse.swt.graphics.Point computeSize(org.eclipse.swt.widgets.Composite composite, int wHint, int hHint, boolean flushCache)- Specified by:
- computeSizein class- org.eclipse.swt.widgets.Layout
 
 - flushCache- protected boolean flushCache(org.eclipse.swt.widgets.Control control) - Overrides:
- flushCachein class- org.eclipse.swt.widgets.Layout
 
 - layout- protected void layout(org.eclipse.swt.widgets.Composite composite, boolean flushCache)- Specified by:
- layoutin class- org.eclipse.swt.widgets.Layout
 
 - toString- public java.lang.String toString() Returns a string containing a concise, human-readable description of the receiver.- Overrides:
- toStringin class- java.lang.Object
- Returns:
- a string representation of the layout