Class BordedFillLayout

  • All Implemented Interfaces:
    org.eclipse.draw2d.LayoutManager

    public class BordedFillLayout
    extends org.eclipse.draw2d.AbstractHintLayout
    BorderedFillLayout layout children in the parents bounds with specific margins in percents (from 0 to 50)
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected Map constraints  
      • Fields inherited from class org.eclipse.draw2d.AbstractLayout

        isObservingVisibility, preferredSize
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected org.eclipse.draw2d.geometry.Dimension calculatePreferredSize​(org.eclipse.draw2d.IFigure container, int wHint, int hHint)  
      org.eclipse.draw2d.geometry.Insets getConstraint​(org.eclipse.draw2d.IFigure child)  
      void layout​(org.eclipse.draw2d.IFigure container)  
      void setConstraint​(org.eclipse.draw2d.IFigure figure, Object newConstraint)  
      • Methods inherited from class org.eclipse.draw2d.AbstractHintLayout

        calculateMinimumSize, getMinimumSize, getPreferredSize, invalidate, isSensitiveHorizontally, isSensitiveVertically
      • Methods inherited from class org.eclipse.draw2d.AbstractLayout

        calculatePreferredSize, getBorderPreferredSize, getMinimumSize, getPreferredSize, invalidate, isObservingVisibility, remove, setObserveVisibility
    • Field Detail

      • constraints

        protected Map constraints
    • Constructor Detail

      • BordedFillLayout

        public BordedFillLayout()
    • Method Detail

      • layout

        public void layout​(org.eclipse.draw2d.IFigure container)
      • calculatePreferredSize

        protected org.eclipse.draw2d.geometry.Dimension calculatePreferredSize​(org.eclipse.draw2d.IFigure container,
                                                                               int wHint,
                                                                               int hHint)
        Specified by:
        calculatePreferredSize in class org.eclipse.draw2d.AbstractLayout
      • setConstraint

        public void setConstraint​(org.eclipse.draw2d.IFigure figure,
                                  Object newConstraint)
        Specified by:
        setConstraint in interface org.eclipse.draw2d.LayoutManager
        Overrides:
        setConstraint in class org.eclipse.draw2d.AbstractLayout
      • getConstraint

        public org.eclipse.draw2d.geometry.Insets getConstraint​(org.eclipse.draw2d.IFigure child)
        Specified by:
        getConstraint in interface org.eclipse.draw2d.LayoutManager
        Overrides:
        getConstraint in class org.eclipse.draw2d.AbstractLayout