Package com.iizigo.panel.prop
Class EGridLayout.Grid
java.lang.Object
com.iizigo.panel.prop.EGridLayout.Grid
- Enclosing class:
EGridLayout
The grid class.
Field Summary
Method Summary
Modifier and TypeMethodDescriptionvoid
Clears grid cells.void
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
Gets the column of a component.int
Gets the row of a component.void
insertColumn
(ComplexOperation op, int col) Insert column.void
insertRow
(ComplexOperation op, int row) Insert row.void
list
(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.
Field Details
columnCount
public int columnCountThe column count.grid
The grid.
Method Details
consolidateGrid
Make sure grid is filled with empty cells at all "zero-locations".getRow
Gets the row of a component.- Returns:
- -1 if not found.
getColumn
Gets the column of a component.- Returns:
- -1 if not found.
deleteColumn
Deletes a column.deleteRow
Deletes a row.insertRow
Insert row.insertColumn
Insert column.clearCells
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
Lists the grid.