|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectuchicago.src.sim.gui.Painter
uchicago.src.sim.gui.DummyPainter
public class DummyPainter
A dummy implementation of Painter that forwards paint calls back to the display surface. This is used as the initial painter in a display surface and is replaced once a displayable is added to the surface.
| Field Summary |
|---|
| Fields inherited from class uchicago.src.sim.gui.Painter |
|---|
bgColor, buffImage, displayables, g2, height, orderedDisplayables, origHeight, origWidth, simGraphics, surface, toolkit, width |
| Constructor Summary | |
|---|---|
DummyPainter(DisplaySurface surface)
Creates a DummyPainter |
|
| Method Summary | |
|---|---|
void |
drawRect(java.awt.Graphics g,
int left,
int top,
int width,
int height)
Empty dummy method. |
void |
eraseRect(java.awt.Graphics g)
Empty dummy method. |
void |
paint(java.awt.Graphics g)
Forwards the paint call back to the DisplaySurface. |
void |
takeSnapshot(java.io.DataOutputStream os)
Empty dummy method. |
| Methods inherited from class uchicago.src.sim.gui.Painter |
|---|
addDisplayable, addDisplayable, createBufferedImage, createGraphics2D, dispose, finalize, getCurrentImage, getGraphics, init, paintBackground, removeDisplayable, reSize, setBackgroundColor |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DummyPainter(DisplaySurface surface)
| Method Detail |
|---|
public void paint(java.awt.Graphics g)
paint in class Painter
public void drawRect(java.awt.Graphics g,
int left,
int top,
int width,
int height)
drawRect in class Painterg - left - top - width - height - public void eraseRect(java.awt.Graphics g)
eraseRect in class Painterg - public void takeSnapshot(java.io.DataOutputStream os)
takeSnapshot in class Painteros -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||