|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectru.sstu.renju.ui.renderers.GameRenderer
public abstract class GameRenderer
GameRenderer class and its subclasses are responsible for
rendering of game field.
| Constructor Summary | |
|---|---|
GameRenderer(String name,
int cellSize)
|
|
| Method Summary | |
|---|---|
protected int |
getCellSize()
|
protected abstract void |
paintBlack(Graphics g,
int i,
int j)
Painting Black Stone (or Cross). |
void |
paintCell(Graphics g,
int i,
int j,
CellType type)
Painting cell. |
abstract void |
paintField(Graphics g)
Painting game field. |
abstract void |
paintRow(Graphics g,
Row row)
Painting winning row. |
protected abstract void |
paintWhite(Graphics g,
int i,
int j)
Painting White Stone (or Nought). |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public GameRenderer(String name,
int cellSize)
name - renderer namecellSize - cell size| Method Detail |
|---|
public String toString()
toString in class Objectpublic abstract void paintField(Graphics g)
g - graphics
public void paintCell(Graphics g,
int i,
int j,
CellType type)
g - graphicsi - column indexj - row indextype - cell type
public abstract void paintRow(Graphics g,
Row row)
g - graphicsrow - rowprotected int getCellSize()
protected abstract void paintBlack(Graphics g,
int i,
int j)
g - graphicsi - column indexj - row index
protected abstract void paintWhite(Graphics g,
int i,
int j)
g - graphicsi - column indexj - row index
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||