    All Packages  Class Hierarchy  This Package  Previous  Next  Index

# Class JSci.swing.JDoubleBufferedComponent

    java.lang.Object
       |
       +----java.awt.Component
               |
               +----java.awt.Container
                       |
                       +----javax.swing.JComponent
                               |
                               +----JSci.swing.JDoubleBufferedComponent

public abstract class JDoubleBufferedComponent
extends JComponent

The JDoubleBufferedComponent class provides double buffering functionality.

##

JDoubleBufferedComponent()
  Constructs a double buffered canvas.

##

isDoubleBuffered()
  Double buffering is always enabled.
offscreenPaint(Graphics)
  Paints the canvas off-screen.
paint(Graphics)
  Paints the canvas using double buffering.
redraw()
  Redraws the canvas.
setDoubleBuffered(boolean)
  Double buffering cannot be controlled for this component.
update(Graphics)
  Updates the canvas.

##

JDoubleBufferedComponent

     public JDoubleBufferedComponent()

  Constructs a double buffered canvas.

##

paint

     public final void paint(Graphics g)

  Paints the canvas using double buffering.

  Overrides:
    paint in class JComponent
  See Also:
    offscreenPaint

update

     public final void update(Graphics g)

  Updates the canvas.

  Overrides:
    update in class JComponent

setDoubleBuffered

     public void setDoubleBuffered(boolean flag)

  Double buffering cannot be controlled for this component. This method always throws an exception.

  Overrides:
    setDoubleBuffered in class JComponent

isDoubleBuffered

     public boolean isDoubleBuffered()

  Double buffering is always enabled.

  Overrides:
    isDoubleBuffered in class JComponent

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