    All Packages  Class Hierarchy  This Package  Previous  Next  Index

# Class JSci.awt.DoubleBufferedCanvas

    java.lang.Object
       |
       +----java.awt.Component
               |
               +----java.awt.Canvas
                       |
                       +----JSci.awt.DoubleBufferedCanvas

public abstract class DoubleBufferedCanvas
extends Canvas

The DoubleBufferedCanvas class provides double buffering functionality.

##

DoubleBufferedCanvas()
  Constructs a double buffered canvas.

##

offscreenPaint(Graphics)
  Paints the canvas off-screen.
paint(Graphics)
  Paints the canvas using double buffering.
redraw()
  Redraws the canvas.
update(Graphics)
  Updates the canvas.

##

DoubleBufferedCanvas

     public DoubleBufferedCanvas()

  Constructs a double buffered canvas.

##

paint

     public final void paint(Graphics g)

  Paints the canvas using double buffering.

  Overrides:
    paint in class Canvas
  See Also:
    offscreenPaint

update

     public final void update(Graphics g)

  Updates the canvas.

  Overrides:
    update in class Component

redraw

     public final void redraw()

  Redraws the canvas.

offscreenPaint

     protected abstract void offscreenPaint(Graphics g)

  Paints the canvas off-screen. Override this method instead of paint(Graphics g).

    All Packages  Class Hierarchy  This Package  Previous  Next  Index