Class CanvasDB

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Canvas
                   |
                   +----CanvasDB

public class CanvasDB
extends Canvas
Double-buffered canvas.


Constructor Index

 o CanvasDB()

Method Index

 o setBackground(Color)
Sets background color.
 o update(Graphics)
Off-screen version that overrides default update(Graphics) method.

Constructors

 o CanvasDB
 public CanvasDB()

Methods

 o setBackground
 public void setBackground(Color color)
Sets background color. Use if it is different from the default (white).

Parameters:
color - initial background color
Overrides:
setBackground in class Component
 o update
 public final synchronized void update(Graphics g)
Off-screen version that overrides default update(Graphics) method. All drawings are done off-screen before posted.

Overrides:
update in class Component