java.awt
public final class DisplayMode extends Object
Since: 1.4
See Also: GraphicsDevice
UNKNOWN: updated to 1.4
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.
|
See Also: getBitDepth
See Also: getRefreshRate
Parameters: width the width height the height bitDepth the bitDepth refreshRate the refreshRate
See Also: BIT_DEPTH_MULTI REFRESH_RATE_UNKNOWN
Parameters: dm The display mode to compare to
Returns: true if it is equal
Returns: the bit depth
See Also: BIT_DEPTH_MULTI
Returns: the height
Returns: the refresh rate
See Also: REFRESH_RATE_UNKNOWN
Returns: the width
Returns: the hash code