Package com.iizigo.panel.prop
Class EGridLayout.Grid
- java.lang.Object
- com.iizigo.panel.prop.EGridLayout.Grid
- Enclosing class:
- EGridLayout
public class EGridLayout.Grid extends java.lang.Object
The grid class.
Field Summary
Fields Modifier and Type Field Description int
columnCount
The column count.java.util.ArrayList<int[]>
grid
The grid.
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clearCells(ComplexOperation op, PanelEditor.GridInfo gi)
Clears grid cells.void
consolidateGrid(ComplexOperation op)
Make sure grid is filled with empty cells at all "zero-locations".void
deleteColumn(ComplexOperation op, int column)
Deletes a column.void
deleteRow(ComplexOperation op, int row)
Deletes a row.int
getColumn(UIComp c)
Gets the column of a component.int
getRow(UIComp c)
Gets the row of a component.void
insertColumn(ComplexOperation op, int col)
Insert column.void
insertRow(ComplexOperation op, int row)
Insert row.void
list(java.io.PrintStream stream)
Lists the grid.boolean
shrinkExtendInsert(boolean doit, ComplexOperation op, PanelEditor.GridInfo gi, int dx, int dy)
Extends or shrinks grid cells spans in insert mode.boolean
shrinkExtendOverwrite(boolean doit, ComplexOperation op, PanelEditor.GridInfo gi, int dx, int dy)
Expands or collapses grid cells spans in overwrite mode.
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.
insertRow
public void insertRow(ComplexOperation op, int row)
Insert row.
insertColumn
public void insertColumn(ComplexOperation op, int col)
Insert column.
clearCells
public void clearCells(ComplexOperation op, PanelEditor.GridInfo gi)
Clears grid cells.
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.