| java.lang.Object java.awt.DisplayMode
Field Summary | |
final public static int | BIT_DEPTH_MULTI Value of the bit depth if multiple bit depths are supported in this
display mode. | final public static int | REFRESH_RATE_UNKNOWN Value of the refresh rate if not known. |
Constructor Summary | |
public | DisplayMode(int width, int height, int bitDepth, int refreshRate) Create a new display mode object with the supplied parameters.
Parameters: width - the width of the display, in pixels Parameters: height - the height of the display, in pixels Parameters: bitDepth - the bit depth of the display, in bits perpixel. |
Method Summary | |
public boolean | equals(DisplayMode dm) Returns whether the two display modes are equal. | public boolean | equals(Object dm) | public int | getBitDepth() Returns the bit depth of the display, in bits per pixel. | public int | getHeight() Returns the height of the display, in pixels. | public int | getRefreshRate() Returns the refresh rate of the display, in hertz. | public int | getWidth() Returns the width of the display, in pixels. | public int | hashCode() |
BIT_DEPTH_MULTI | final public static int BIT_DEPTH_MULTI(Code) | | Value of the bit depth if multiple bit depths are supported in this
display mode.
See Also: DisplayMode.getBitDepth |
DisplayMode | public DisplayMode(int width, int height, int bitDepth, int refreshRate)(Code) | | Create a new display mode object with the supplied parameters.
Parameters: width - the width of the display, in pixels Parameters: height - the height of the display, in pixels Parameters: bitDepth - the bit depth of the display, in bits perpixel. This can be BIT_DEPTH_MULTI if multiplebit depths are available. Parameters: refreshRate - the refresh rate of the display, in hertz.This can be REFRESH_RATE_UNKNOWN if theinformation is not available. See Also: DisplayMode.BIT_DEPTH_MULTI See Also: DisplayMode.REFRESH_RATE_UNKNOWN |
equals | public boolean equals(DisplayMode dm)(Code) | | Returns whether the two display modes are equal.
whether the two display modes are equal |
getBitDepth | public int getBitDepth()(Code) | | Returns the bit depth of the display, in bits per pixel. This may be
BIT_DEPTH_MULTI if multiple bit depths are supported in
this display mode.
the bit depth of the display, in bits per pixel. See Also: DisplayMode.BIT_DEPTH_MULTI |
getHeight | public int getHeight()(Code) | | Returns the height of the display, in pixels.
the height of the display, in pixels |
getRefreshRate | public int getRefreshRate()(Code) | | Returns the refresh rate of the display, in hertz. This may be
REFRESH_RATE_UNKNOWN if the information is not available.
the refresh rate of the display, in hertz. See Also: DisplayMode.REFRESH_RATE_UNKNOWN |
getWidth | public int getWidth()(Code) | | Returns the width of the display, in pixels.
the width of the display, in pixels |
hashCode | public int hashCode()(Code) | | |
|
|