Class IzFillLayout


public class IzFillLayout extends 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
    marginHeight specifies the number of pixels of vertical margin that will be placed along the top and bottom edges of the layout.
    int
    marginWidth specifies the number of pixels of horizontal margin that will be placed along the left and right edges of the layout.
    int
    Max height, -1 for none.
    int
    Max width, -1 for none.
    int
    spacing specifies the number of pixels between the edge of one cell and the edge of its neighbouring cell.
    int
    type specifies how controls will be positioned within the layout.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Constructs a new instance of this class.
    IzFillLayout(int type)
    Constructs a new instance of this class given the type.
  • Method Summary

    Modifier and Type
    Method
    Description
    protected Point
    computeSize(Composite composite, int wHint, int hHint, boolean flushCache)
     
    protected boolean
     
    protected void
    layout(Composite composite, boolean flushCache)
     
    void
    Assigns the fill layout to the child control.
    Returns a string containing a concise, human-readable description of the receiver.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

    • 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.
  • 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

    • setFillLayoutData

      public void setFillLayoutData(Control c)
      Assigns the fill layout to the child control.
      Parameters:
      c - The control, or null for none.
    • computeSize

      protected Point computeSize(Composite composite, int wHint, int hHint, boolean flushCache)
      Specified by:
      computeSize in class Layout
    • flushCache

      protected boolean flushCache(Control control)
      Overrides:
      flushCache in class Layout
    • layout

      protected void layout(Composite composite, boolean flushCache)
      Specified by:
      layout in class Layout
    • toString

      public String toString()
      Returns a string containing a concise, human-readable description of the receiver.
      Overrides:
      toString in class Object
      Returns:
      a string representation of the layout