|
|||||||||
| Home >> All >> java >> [ awt overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.awt
Class DisplayMode

java.lang.Objectjava.awt.DisplayMode
- public final class DisplayMode
- extends java.lang.Object
This encapsulates information about the display mode for a graphics device configuration. They are device dependent, and may not always be available.
- Since:
- 1.4
| Field Summary | |
static int |
BIT_DEPTH_MULTI
Value of the bit depth if multiple depths are supported. |
private int |
bitDepth
The bit depth. |
private int |
height
The height. |
static int |
REFRESH_RATE_UNKNOWN
Value of an unknown refresh rate. |
private int |
refreshRate
The refresh rate. |
private int |
width
The width. |
| 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 |
BIT_DEPTH_MULTI
public static final int BIT_DEPTH_MULTI
- Value of the bit depth if multiple depths are supported.
- See Also:
getBitDepth()55 , Constant Field Values
REFRESH_RATE_UNKNOWN
public static final int REFRESH_RATE_UNKNOWN
- Value of an unknown refresh rate.
- See Also:
getRefreshRate()55 , Constant Field Values
width
private final int width
- The width.
height
private final int height
- The height.
bitDepth
private final int bitDepth
- The bit depth.
refreshRate
private final int refreshRate
- The refresh rate.
| Constructor Detail |
DisplayMode
public DisplayMode(int width,
int height,
int bitDepth,
int refreshRate)
- Create a mode with the given parameters.
| Method Detail |
getHeight
public int getHeight()
- Returns the height, in pixels.
getWidth
public int getWidth()
- Returns the width, in pixels.
getBitDepth
public int getBitDepth()
- Returns the bit depth, in bits per pixel. This may be BIT_DEPTH_MULTI.
getRefreshRate
public int getRefreshRate()
- Returns the refresh rate, in hertz. This may be REFRESH_RATE_UNKNOWN.
equals
public boolean equals(DisplayMode dm)
- Test for equality. This returns true for two modes with identical
parameters.
hashCode
public int hashCode()
- Returns a hash code for the display mode.
|
|||||||||
| Home >> All >> java >> [ awt overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
java.awt.DisplayMode