public final class DisplayMode extends Object
GraphicsDevice| Modifier and Type | Field and Description |
|---|---|
static int |
BIT_DEPTH_MULTI
Value of the bit depth if multiple depths are supported.
|
static int |
REFRESH_RATE_UNKNOWN
Value of an unknown refresh rate.
|
| Constructor and Description |
|---|
DisplayMode(int width,
int height,
int bitDepth,
int refreshRate)
Create a mode with the given parameters.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(DisplayMode dm)
Test for equality.
|
int |
getBitDepth()
Returns the bit depth, in bits per pixel.
|
int |
getHeight()
Returns the height, in pixels.
|
int |
getRefreshRate()
Returns the refresh rate, in hertz.
|
int |
getWidth()
Returns the width, in pixels.
|
int |
hashCode()
Returns a hash code for the display mode.
|
public static final int BIT_DEPTH_MULTI
getBitDepth(),
Constant Field Valuespublic static final int REFRESH_RATE_UNKNOWN
getRefreshRate(),
Constant Field Valuespublic DisplayMode(int width, int height, int bitDepth, int refreshRate)
width - the widthheight - the heightbitDepth - the bitDepthrefreshRate - the refreshRateBIT_DEPTH_MULTI,
REFRESH_RATE_UNKNOWNpublic int getHeight()
public int getWidth()
public int getBitDepth()
BIT_DEPTH_MULTIpublic int getRefreshRate()
REFRESH_RATE_UNKNOWNpublic boolean equals(DisplayMode dm)
dm - The display mode to compare topublic int hashCode()
hashCode in class ObjectObject.equals(Object),
System.identityHashCode(Object)