client
Class Util

java.lang.Object
  |
  +--client.Util

public class Util
extends java.lang.Object

A utility class for use with DoubleBuffered Container

Author:
Garrett Wampole

Constructor Summary
Util()
           
 
Method Summary
static void waitForImage(java.awt.Component component, java.awt.Image image)
          Waits until the specified image associated with the specified component has loaded from the default toolkit.
static void wallPaper(java.awt.Component component, java.awt.Graphics g, java.awt.Image image)
          Updates the background image only where a moving component damages it.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Util

public Util()
Method Detail

waitForImage

public static void waitForImage(java.awt.Component component,
                                java.awt.Image image)
Waits until the specified image associated with the specified component has loaded from the default toolkit.

Parameters:
component - A component
image - An image associated with a given component

wallPaper

public static void wallPaper(java.awt.Component component,
                             java.awt.Graphics g,
                             java.awt.Image image)
Updates the background image only where a moving component damages it.

Parameters:
component - A component
g - A graphics context
image - An image associated with the given component