Class EGridLayout.Grid
java.lang.Object
com.iizigo.panel.prop.EGridLayout.Grid
- Enclosing class:
EGridLayout
Field Summary
FieldsMethod Summary
Modifier and TypeMethodDescriptionvoidClears grid cells.voidMake 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.intGets the column of a component.intGets the count of columns a component covers in this grid: the horizontal span of its Grid Data, at most the column count (as the constructor places it).intGets the row of a component.voidinsertColumn(ComplexOperation op, int col) Insert column.voidinsertRow(ComplexOperation op, int row) Insert row.voidlist(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.
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".The index VALUES of this grid are stale after the call: an Empty component inserted here gets its own position as index, and the components after it keep the index they had (the renumbering below is commented out), so cells of two components can hold the same value. No caller is affected: every caller discards the grid after this call, and
EGridLayout.getGrid()builds a new one for the next operation.getRow
getColumn
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.getColumnSpan
Gets the count of columns a component covers in this grid: the horizontal span of its Grid Data, at most the column count (as the constructor places it). A caller that works out columns from a component reads this, never the Grid Data, whose span may be larger than the grid until the first edit has set it.- Returns:
- The count of columns, at least 1.