|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.awt.DisplayMode
public final class DisplayMode
This encapsulates information about the display mode for a graphics device configuration. They are device dependent, and may not always be available.
GraphicsDevice| Field Summary | |
|---|---|
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 Summary | |
|---|---|
DisplayMode(int width,
int height,
int bitDepth,
int refreshRate)
Create a mode with the given parameters. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int BIT_DEPTH_MULTI
getBitDepth(),
Constant Field Valuespublic static final int REFRESH_RATE_UNKNOWN
getRefreshRate(),
Constant Field Values| Constructor Detail |
|---|
public DisplayMode(int width,
int height,
int bitDepth,
int refreshRate)
width - the widthheight - the heightbitDepth - the bitDepthrefreshRate - the refreshRateBIT_DEPTH_MULTI,
REFRESH_RATE_UNKNOWN| Method Detail |
|---|
public 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 to
public int hashCode()
hashCode in class ObjectObject.equals(Object),
System.identityHashCode(Object)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||