java.awt
Class BufferCapabilities.FlipContents

java.lang.Object
  extended by java.awt.BufferCapabilities.FlipContents
Enclosing class:
BufferCapabilities

public static final class BufferCapabilities.FlipContents
extends Object

A type-safe enumeration of buffer flipping results.

See Also:
AttributeValue

Field Summary
static BufferCapabilities.FlipContents BACKGROUND
          The back buffer is cleared with the background color after flipping.
static BufferCapabilities.FlipContents COPIED
          The back buffer has the same contents as the front buffer after flipping.
static BufferCapabilities.FlipContents PRIOR
          The back buffer contains the pre-flipping contents of the front buffer after flipping.
static BufferCapabilities.FlipContents UNDEFINED
          The contents of the back buffer are undefined after flipping.
 
Method Summary
 int hashCode()
          Returns the hashcode of this element.
 String toString()
          Returns the name of this enumeration element.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

UNDEFINED

public static final BufferCapabilities.FlipContents UNDEFINED
The contents of the back buffer are undefined after flipping.


BACKGROUND

public static final BufferCapabilities.FlipContents BACKGROUND
The back buffer is cleared with the background color after flipping.


PRIOR

public static final BufferCapabilities.FlipContents PRIOR
The back buffer contains the pre-flipping contents of the front buffer after flipping. In other words a true "flip" has been performed.


COPIED

public static final BufferCapabilities.FlipContents COPIED
The back buffer has the same contents as the front buffer after flipping.

Method Detail

hashCode

public int hashCode()
Returns the hashcode of this element. This is the index of the element in the enumeration. Note that equals defaults to the == relation.

Overrides:
hashCode in class Object
Returns:
the hashcode
See Also:
Object.equals(Object), System.identityHashCode(Object)

toString

public String toString()
Returns the name of this enumeration element.

Overrides:
toString in class Object
Returns:
the element name
See Also:
Object.getClass(), Object.hashCode(), Class.getName(), Integer.toHexString(int)