Class AbstractGridDescription<GRIDCELL extends AbstractGridCell<?>>
- java.lang.Object
-
- org.eclipse.emf.ecp.view.model.common.AbstractGridDescription<GRIDCELL>
-
- Type Parameters:
GRIDCELL
- the grid cell type (e.g. SWT or JavaFX grid cell)
- Direct Known Subclasses:
SWTGridDescription
public abstract class AbstractGridDescription<GRIDCELL extends AbstractGridCell<?>> extends java.lang.Object
AAbstractGridDescription
describes the grid of the renderer using a list ofGridCells
and the number of rows and columns it has.- Author:
- Eugen Neufeld, Lucas Köhler
-
-
Constructor Summary
Constructors Constructor Description AbstractGridDescription()
Creating an empty grid.AbstractGridDescription(int rows, int columns, java.util.List<GRIDCELL> grid)
Creating a filled grid.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getColumns()
Number of columns in this grid.java.util.List<GRIDCELL>
getGrid()
TheGridCells
describing the grid.int
getRows()
Number of rows in this Grid.void
setColumns(int columns)
Sets the number of columns.void
setGrid(java.util.List<GRIDCELL> grid)
List ofGridCells
.void
setRows(int rows)
Sets the number of rows.
-
-
-
Method Detail
-
getGrid
public java.util.List<GRIDCELL> getGrid()
TheGridCells
describing the grid.- Returns:
- the grid
-
getRows
public int getRows()
Number of rows in this Grid.- Returns:
- the rows
-
getColumns
public int getColumns()
Number of columns in this grid.- Returns:
- the columns
-
setGrid
public void setGrid(java.util.List<GRIDCELL> grid)
List ofGridCells
.- Parameters:
grid
- the grid to set
-
setRows
public void setRows(int rows)
Sets the number of rows.- Parameters:
rows
- the rows to set
-
setColumns
public void setColumns(int columns)
Sets the number of columns.- Parameters:
columns
- the columns to set
-
-