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.ObjectThe grid class.
Field Summary
Fields Modifier and Type Field Description intcolumnCountThe column count.java.util.ArrayList<int[]>gridThe grid.
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclearCells(ComplexOperation op, PanelEditor.GridInfo gi)Clears grid cells.voidconsolidateGrid(ComplexOperation op)Make sure grid is filled with empty cells at all "zero-locations".voiddeleteColumn(ComplexOperation op, int column)Deletes a column.voiddeleteRow(ComplexOperation op, int row)Deletes a row.intgetColumn(UIComp c)Gets the column of a component.intgetRow(UIComp c)Gets the row of a component.voidinsertColumn(ComplexOperation op, int col)Insert column.voidinsertRow(ComplexOperation op, int row)Insert row.voidlist(java.io.PrintStream stream)Lists the grid.booleanshrinkExtendInsert(boolean doit, ComplexOperation op, PanelEditor.GridInfo gi, int dx, int dy)Extends or shrinks grid cells spans in insert mode.booleanshrinkExtendOverwrite(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.