Class EGridLayout.Grid

  • Enclosing class:
    EGridLayout

    public class EGridLayout.Grid
    extends java.lang.Object
    The grid class.
    • Field Detail

      • columnCount

        public int columnCount
        The column count.
      • grid

        public java.util.ArrayList<int[]> grid
        The grid.
    • Method Detail

      • consolidateGrid

        public void consolidateGrid​(ComplexOperation op)
        Make sure grid is filled with empty cells at all "zero-locations".
      • getRow

        public int getRow​(UIComp c)
        Gets the row of a component.
        Returns:
        -1 if not found.
      • getColumn

        public int getColumn​(UIComp c)
        Gets the column of a component.
        Returns:
        -1 if not found.
      • deleteColumn

        public void deleteColumn​(ComplexOperation op,
                                 int column)
        Deletes a column.
      • deleteRow

        public void deleteRow​(ComplexOperation op,
                              int row)
        Deletes a row.
      • insertColumn

        public void insertColumn​(ComplexOperation op,
                                 int col)
        Insert column.
      • shrinkExtendOverwrite

        public boolean shrinkExtendOverwrite​(boolean doit,
                                             ComplexOperation op,
                                             PanelEditor.GridInfo gi,
                                             int dx,
                                             int dy)
        Expands or collapses grid cells spans in overwrite mode.
      • shrinkExtendInsert

        public boolean shrinkExtendInsert​(boolean doit,
                                          ComplexOperation op,
                                          PanelEditor.GridInfo gi,
                                          int dx,
                                          int dy)
        Extends or shrinks grid cells spans in insert mode.
      • list

        public void list​(java.io.PrintStream stream)
        Lists the grid.