Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

java.awt
Class BufferCapabilities.FlipContents  view BufferCapabilities.FlipContents download BufferCapabilities.FlipContents.java

java.lang.Object
  extended byjava.awt.AttributeValue
      extended byjava.awt.BufferCapabilities.FlipContents
Enclosing class:
BufferCapabilities

public static final class BufferCapabilities.FlipContents
extends AttributeValue

A type-safe enumeration of buffer flipping results.


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.
private static java.lang.String[] NAMES
          The names of the different flipping results.
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.
(package private)  int value
          The value of the enumeration.
 
Constructor Summary
private BufferCapabilities.FlipContents(int value)
          Create a new flipping result descriptor.
 
Method Summary
 int hashCode()
          Returns the hashcode of this element.
 java.lang.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

NAMES

private static final java.lang.String[] NAMES
The names of the different flipping results.


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.


value

final int value
The value of the enumeration. Package visible for speed.

Constructor Detail

BufferCapabilities.FlipContents

private BufferCapabilities.FlipContents(int value)
Create a new flipping result descriptor.

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.


toString

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