Class CanvasDB
java.lang.Object
|
+----java.awt.Component
|
+----java.awt.Canvas
|
+----CanvasDB
- public class CanvasDB
- extends Canvas
Double-buffered canvas.
-
CanvasDB()
-
-
setBackground(Color)
- Sets background color.
-
update(Graphics)
- Off-screen version that overrides default update(Graphics) method.
CanvasDB
public CanvasDB()
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
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