Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## uchicago.src.sim.gui
Class DummyPainter

    java.lang.Object
      uchicago.src.sim.gui.Painter
          uchicago.src.sim.gui.DummyPainter

    public class DummyPainter

extends Painter

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.

Version:
  $Revision: 1.1 $ $Date: 2005/08/05 18:14:43 $
Author:
  Nick Collier

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

### DummyPainter

    public DummyPainter(DisplaySurface surface)

  Creates a DummyPainter

Method Detail

### paint

    public void paint(java.awt.Graphics g)

  Forwards the paint call back to the DisplaySurface.

  Specified by:
    `paint` in class `Painter`

### drawRect

    public void drawRect(java.awt.Graphics g,
                         int left,
                         int top,
                         int width,
                         int height)

  Empty dummy method.

  Specified by:
    `drawRect` in class `Painter`
  Parameters:
    `g` -
    `left` -
    `top` -
    `width` -
    `height` -

### eraseRect

    public void eraseRect(java.awt.Graphics g)

  Empty dummy method.

  Specified by:
    `eraseRect` in class `Painter`
  Parameters:
    `g` -

### takeSnapshot

    public void takeSnapshot(java.io.DataOutputStream os)

  Empty dummy method.

  Specified by:
    `takeSnapshot` in class `Painter`
  Parameters:
    `os` -

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD