- java.lang.Object
-
- java.awt.BufferCapabilities.FlipContents
-
- Enclosing class:
- BufferCapabilities
public static final class BufferCapabilities.FlipContents extends Object
A type-safe enumeration of the possible back buffer contents after page-flipping- Since:
- 1.4
-
-
Field Summary
Fields Modifier and Type Field Description static BufferCapabilities.FlipContents
BACKGROUND
When flip contents areBACKGROUND
, the contents of the back buffer are cleared with the background color after flipping.static BufferCapabilities.FlipContents
COPIED
When flip contents areCOPIED
, the contents of the back buffer are copied to the front buffer when flipping.static BufferCapabilities.FlipContents
PRIOR
When flip contents arePRIOR
, the contents of the back buffer are the prior contents of the front buffer (a true page flip).static BufferCapabilities.FlipContents
UNDEFINED
When flip contents areUNDEFINED
, the contents of the back buffer are undefined after flipping.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
hashCode()
Answers an integer hash code for the receiver.String
toString()
Answers a string containing a concise, human-readable description of the receiver.
-
-
-
Field Detail
-
UNDEFINED
public static final BufferCapabilities.FlipContents UNDEFINED
When flip contents areUNDEFINED
, the contents of the back buffer are undefined after flipping.
-
BACKGROUND
public static final BufferCapabilities.FlipContents BACKGROUND
When flip contents areBACKGROUND
, the contents of the back buffer are cleared with the background color after flipping.
-
PRIOR
public static final BufferCapabilities.FlipContents PRIOR
When flip contents arePRIOR
, the contents of the back buffer are the prior contents of the front buffer (a true page flip).
-
COPIED
public static final BufferCapabilities.FlipContents COPIED
When flip contents areCOPIED
, the contents of the back buffer are copied to the front buffer when flipping.
-
-
Method Detail
-
hashCode
public int hashCode()
Description copied from class:Object
Answers an integer hash code for the receiver. Any two objects which answertrue
when passed to.equals
must answer the same value for this method.- Overrides:
hashCode
in classObject
- Returns:
- the receiver's hash.
- See Also:
Object.equals(java.lang.Object)
-
-