< prev index next >
src/java.desktop/share/classes/java/awt/DisplayMode.java
Print this page
*** 26,37 ****
package java.awt;
import java.lang.annotation.Native;
/**
! * The <code>DisplayMode</code> class encapsulates the bit depth, height,
! * width, and refresh rate of a <code>GraphicsDevice</code>. The ability to
* change graphics device's display mode is platform- and
* configuration-dependent and may not always be available
* (see {@link GraphicsDevice#isDisplayChangeSupported}).
* <p>
* For more information on full-screen exclusive mode API, see the
--- 26,37 ----
package java.awt;
import java.lang.annotation.Native;
/**
! * The {@code DisplayMode} class encapsulates the bit depth, height,
! * width, and refresh rate of a {@code GraphicsDevice}. The ability to
* change graphics device's display mode is platform- and
* configuration-dependent and may not always be available
* (see {@link GraphicsDevice#isDisplayChangeSupported}).
* <p>
* For more information on full-screen exclusive mode API, see the
*** 55,68 ****
/**
* Create a new display mode object with the supplied parameters.
* @param width the width of the display, in pixels
* @param height the height of the display, in pixels
* @param bitDepth the bit depth of the display, in bits per
! * pixel. This can be <code>BIT_DEPTH_MULTI</code> if multiple
* bit depths are available.
* @param refreshRate the refresh rate of the display, in hertz.
! * This can be <code>REFRESH_RATE_UNKNOWN</code> if the
* information is not available.
* @see #BIT_DEPTH_MULTI
* @see #REFRESH_RATE_UNKNOWN
*/
public DisplayMode(int width, int height, int bitDepth, int refreshRate) {
--- 55,68 ----
/**
* Create a new display mode object with the supplied parameters.
* @param width the width of the display, in pixels
* @param height the height of the display, in pixels
* @param bitDepth the bit depth of the display, in bits per
! * pixel. This can be {@code BIT_DEPTH_MULTI} if multiple
* bit depths are available.
* @param refreshRate the refresh rate of the display, in hertz.
! * This can be {@code REFRESH_RATE_UNKNOWN} if the
* information is not available.
* @see #BIT_DEPTH_MULTI
* @see #REFRESH_RATE_UNKNOWN
*/
public DisplayMode(int width, int height, int bitDepth, int refreshRate) {
*** 94,104 ****
*/
@Native public static final int BIT_DEPTH_MULTI = -1;
/**
* Returns the bit depth of the display, in bits per pixel. This may be
! * <code>BIT_DEPTH_MULTI</code> if multiple bit depths are supported in
* this display mode.
*
* @return the bit depth of the display, in bits per pixel.
* @see #BIT_DEPTH_MULTI
*/
--- 94,104 ----
*/
@Native public static final int BIT_DEPTH_MULTI = -1;
/**
* Returns the bit depth of the display, in bits per pixel. This may be
! * {@code BIT_DEPTH_MULTI} if multiple bit depths are supported in
* this display mode.
*
* @return the bit depth of the display, in bits per pixel.
* @see #BIT_DEPTH_MULTI
*/
*** 112,122 ****
*/
@Native public static final int REFRESH_RATE_UNKNOWN = 0;
/**
* Returns the refresh rate of the display, in hertz. This may be
! * <code>REFRESH_RATE_UNKNOWN</code> if the information is not available.
*
* @return the refresh rate of the display, in hertz.
* @see #REFRESH_RATE_UNKNOWN
*/
public int getRefreshRate() {
--- 112,122 ----
*/
@Native public static final int REFRESH_RATE_UNKNOWN = 0;
/**
* Returns the refresh rate of the display, in hertz. This may be
! * {@code REFRESH_RATE_UNKNOWN} if the information is not available.
*
* @return the refresh rate of the display, in hertz.
* @see #REFRESH_RATE_UNKNOWN
*/
public int getRefreshRate() {
< prev index next >