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) |
Cell |
getCell(int column,
int row) |
int |
getColumnCount() |
LayoutTokens |
getColumns() |
int |
getRowCount() |
LayoutTokens |
getRows() |
String |
gridAsString()
Prints the state of the grid as an Unicode shape like this:
┏━┳━┳━┳━┯━┓
┃█┃█┃█┃█│➞┃
┠─╂─╊━╇━┿━┫
┃⬇┃⬇┃█│➞│➞┃
┣━╉─╊━╈━╈━┫
┃█┃⬇┃█┃█┃█┃
┣━╇━╇━╉─╊━┩
┃█│➞│➞┃⬇┃◌│
┡━┿━┿━╉─╂─┤
│◌│◌│◌┃⬇┃◌│
└─┴─┴─┺━┹─┘
|
boolean |
hasError(int i,
int j) |
void |
setCell(int column,
int row,
Cell cell) |
String |
toString() |
public Grid(LayoutTokens columns, LayoutTokens rows)
public void add(OriginCell cell, int columnSpan, int rowSpan)
public Cell getCell(int column, int row)
public void setCell(int column, int row, Cell cell)
public LayoutTokens getColumns()
public LayoutTokens getRows()
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–2016 The Apache Software Foundation. All rights reserved.