Class ColumnsLayout

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

    public class ColumnsLayout
    extends org.eclipse.draw2d.GridLayout
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected Map<org.eclipse.draw2d.IFigure,​ColumnsLayout.ColumnData> layoutConstraints  
      • Fields inherited from class org.eclipse.draw2d.GridLayout

        constraints, horizontalSpacing, makeColumnsEqualWidth, marginHeight, marginWidth, numColumns, verticalSpacing
      • Fields inherited from class org.eclipse.draw2d.AbstractLayout

        isObservingVisibility, preferredSize
    • Constructor Summary

      Constructors 
      Constructor Description
      ColumnsLayout​(org.eclipse.draw2d.IFigure rowsf, int numOfColumns)  
    • 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)  
      ColumnsLayout.ColumnData getColumnConstraint​(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.GridLayout

        getChildSize, getConstraint
      • 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
    • Constructor Detail

      • ColumnsLayout

        public ColumnsLayout​(org.eclipse.draw2d.IFigure rowsf,
                             int numOfColumns)
    • Method Detail

      • layout

        public void layout​(org.eclipse.draw2d.IFigure container)
        Specified by:
        layout in interface org.eclipse.draw2d.LayoutManager
        Overrides:
        layout in class org.eclipse.draw2d.GridLayout
      • calculatePreferredSize

        protected org.eclipse.draw2d.geometry.Dimension calculatePreferredSize​(org.eclipse.draw2d.IFigure container,
                                                                               int wHint,
                                                                               int hHint)
        Overrides:
        calculatePreferredSize in class org.eclipse.draw2d.GridLayout
      • 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.GridLayout