public abstract class MutableGelem extends Gelem
This class follows DbC(tm) methodology. Where possible, contracts are implement with JML and native's Java assert.
Constructor and Description |
---|
MutableGelem()
Constructs a new MutableGelem (1x1 cells).
|
MutableGelem(int numberOfLines,
int numberOfColumns)
Constructs a new MutableGelem (numberOfLines x numberOfColumns cells).
|
Modifier and Type | Method and Description |
---|---|
boolean |
isMutable()
Is gelem mutable?
A mutable gelem automatically updates GBoard when updated.
|
className, draw, erase, height, intersects, mutable, mutableDraw, mutableErase, numberOfColumns, numberOfLines, width, x, y
public MutableGelem()
public MutableGelem(int numberOfLines, int numberOfColumns)
requires: numberOfLines >= 1 && numberOfColumns >= 1
numberOfLines
- number of linesnumberOfColumns
- number of columns