com.mindbright.terminal.tandem6530
public class FieldMap extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected int |
cols |
protected DataType |
dataTypeTable |
protected Position |
END |
protected boolean |
haveUnprotectedFields |
protected Position |
HOME |
protected Field[][] |
map |
protected int |
rows |
Constructor and Description |
---|
FieldMap(int rows,
int cols,
FieldAttributes defaultFieldAttribs,
DataType dataTypeTable) |
Modifier and Type | Method and Description |
---|---|
void |
addField(Position p,
FieldAttributes attribs) |
protected void |
adjustFields(boolean move)
Set the fields start/end values according to the map.
|
void |
clear(Position start,
Position end) |
protected void |
clearFields(Position start,
Position end) |
void |
deleteRow(int row) |
Field |
getFieldAt(Position p) |
boolean |
haveUnprotectedFields() |
void |
insertRow(int row) |
Field |
nextField(Position p) |
protected Position |
nextFieldStart(Position p) |
Field |
prevField(Position p) |
protected Position |
prevFieldEnd(Position p) |
void |
reset(FieldAttributes defaultFieldAttribs) |
protected void |
setField(Position start,
Position end,
Field field) |
protected void |
setFieldAt(Position p,
Field field) |
java.lang.String |
toString() |
protected int rows
protected int cols
protected Field[][] map
protected Position HOME
protected Position END
protected DataType dataTypeTable
protected boolean haveUnprotectedFields
public FieldMap(int rows, int cols, FieldAttributes defaultFieldAttribs, DataType dataTypeTable)
public void addField(Position p, FieldAttributes attribs)
public void reset(FieldAttributes defaultFieldAttribs)
public boolean haveUnprotectedFields()
protected void adjustFields(boolean move)
move
- if true the content of the fields is moved with the
fields.public void insertRow(int row)
public void deleteRow(int row)
public java.lang.String toString()
toString
in class java.lang.Object