net.groboclown.gui.paintpipe.v1
Interface RefreshComponent


public interface RefreshComponent

Handles the Refreshing of an AWT or Swing Component.

Version:
1.0
Author:
Matt Albrecht

Method Summary
 void refresh()
          Tells the underlying component to refresh itself.
 Image swapImages(Image img)
          Exchanges the currently drawn image with the given image.
 

Method Detail

swapImages

public Image swapImages(Image img)
Exchanges the currently drawn image with the given image. This may be done synchronized so as not to interfere with the actual Component.paint(java.awt.Graphics) method.

refresh

public void refresh()
Tells the underlying component to refresh itself.


Written under the LGPL