|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectmadkit.kernel.AbstractAgent
madkit.kernel.Watcher
turtlekit.kernel.Observer
turtlekit.kernel.Viewer
turtlekit.simulations.gameoflife.LifeViewer3
public class LifeViewer3
LifeViewer overrides the paintPatch method in order to adjust the onscreen color of a patch
| Field Summary |
|---|
| Fields inherited from class turtlekit.kernel.Observer |
|---|
envHeight, envWidth, patchGrid |
| Constructor Summary | |
|---|---|
LifeViewer3()
|
|
| Method Summary | |
|---|---|
void |
paintPatch(java.awt.Graphics g,
Patch p,
int x,
int y,
int CellSize)
override this method if you want an other patch graphic representation giving an on screen location (x,y), a patch p to draw and a reserved on screen patch size: a square of pixels with a side of cellS. |
| Methods inherited from class turtlekit.kernel.Viewer |
|---|
display, getFlash, getFlashStepSize, getRedrawAll, getShow, initGUI, paintTurtle, setFlash, setFlashStepSize, setRedrawAll, setShow, setup |
| Methods inherited from class turtlekit.kernel.Observer |
|---|
activate, getSimulationGroup, watch |
| Methods inherited from class madkit.kernel.Watcher |
|---|
addProbe, addProbe, end, getProbes, removeAllProbes, removeProbe, update |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LifeViewer3()
| Method Detail |
|---|
public void paintPatch(java.awt.Graphics g,
Patch p,
int x,
int y,
int CellSize)
Viewer
paintPatch in class Viewer
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||