public class Grid extends Object
Constructor and Description |
---|
Grid(LayoutTokens columns,
LayoutTokens rows) |
Modifier and Type | Method and Description |
---|---|
void |
add(OriginCell cell,
int columnSpan,
int rowSpan) |
void |
addError(int i,
int j) |
BankHead[] |
getBankHeads(Orientation orientation) |
Cell |
getCell(int column,
int row) |
Cell |
getCell(int i,
int j,
Orientation orientation) |
int |
getColumnCount() |
int |
getRowCount() |
String |
gridAsString()
Prints the state of the grid as an Unicode shape like this:
┏━┳━┳━┳━┯━┓
┃█┃█┃█┃█│➞┃
┠─╂─╊━╇━┿━┫
┃⬇┃⬇┃█│➞│➞┃
┣━╉─╊━╈━╈━┫
┃█┃⬇┃█┃█┃█┃
┣━╇━╇━╉─╊━┩
┃█│➞│➞┃⬇┃◌│
┡━┿━┿━╉─╂─┤
│◌│◌│◌┃⬇┃◌│
└─┴─┴─┺━┹─┘
|
boolean |
hasError(int i,
int j) |
boolean |
isOverflow() |
boolean |
isOverflow(Orientation orientation) |
boolean |
isRowOverflow() |
void |
setCell(int column,
int row,
Cell cell) |
void |
setColumnOverflow(boolean columnOverflow) |
void |
setOverflow(boolean overflow,
Orientation orientation) |
void |
setRowOverflow(boolean rowOverflow) |
String |
toString() |
public Grid(LayoutTokens columns, LayoutTokens rows)
public void add(OriginCell cell, int columnSpan, int rowSpan)
public Cell getCell(int i, int j, Orientation orientation)
public Cell getCell(int column, int row)
public void setCell(int column, int row, Cell cell)
public BankHead[] getBankHeads(Orientation orientation)
public boolean isOverflow(Orientation orientation)
public void setOverflow(boolean overflow, Orientation orientation)
public boolean isOverflow()
public void setColumnOverflow(boolean columnOverflow)
public boolean isRowOverflow()
public void setRowOverflow(boolean rowOverflow)
public void addError(int i, int j)
public boolean hasError(int i, int j)
public int getColumnCount()
public int getRowCount()
public String gridAsString()
Copyright © 2002-2018 The Apache Software Foundation. All Rights Reserved.