18 * 2 along with this work; if not, write to the Free Software Foundation,
19 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20 *
21 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22 * or visit www.oracle.com if you need additional information or have any
23 * questions.
24 */
25
26 package java.awt;
27
28 import java.lang.annotation.Native;
29
30 /**
31 * The <code>DisplayMode</code> class encapsulates the bit depth, height,
32 * width, and refresh rate of a <code>GraphicsDevice</code>. The ability to
33 * change graphics device's display mode is platform- and
34 * configuration-dependent and may not always be available
35 * (see {@link GraphicsDevice#isDisplayChangeSupported}).
36 * <p>
37 * For more information on full-screen exclusive mode API, see the
38 * <a href="http://java.sun.com/docs/books/tutorial/extra/fullscreen/index.html">
39 * Full-Screen Exclusive Mode API Tutorial</a>.
40 *
41 * @see GraphicsDevice
42 * @see GraphicsDevice#isDisplayChangeSupported
43 * @see GraphicsDevice#getDisplayModes
44 * @see GraphicsDevice#setDisplayMode
45 * @author Michael Martak
46 * @since 1.4
47 */
48
49 public final class DisplayMode {
50
51 private Dimension size;
52 private int bitDepth;
53 private int refreshRate;
54
55 /**
56 * Create a new display mode object with the supplied parameters.
57 * @param width the width of the display, in pixels
58 * @param height the height of the display, in pixels
|
18 * 2 along with this work; if not, write to the Free Software Foundation,
19 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20 *
21 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22 * or visit www.oracle.com if you need additional information or have any
23 * questions.
24 */
25
26 package java.awt;
27
28 import java.lang.annotation.Native;
29
30 /**
31 * The <code>DisplayMode</code> class encapsulates the bit depth, height,
32 * width, and refresh rate of a <code>GraphicsDevice</code>. The ability to
33 * change graphics device's display mode is platform- and
34 * configuration-dependent and may not always be available
35 * (see {@link GraphicsDevice#isDisplayChangeSupported}).
36 * <p>
37 * For more information on full-screen exclusive mode API, see the
38 * <a href="http://docs.oracle.com/javase/tutorial/extra/fullscreen/index.html">
39 * Full-Screen Exclusive Mode API Tutorial</a>.
40 *
41 * @see GraphicsDevice
42 * @see GraphicsDevice#isDisplayChangeSupported
43 * @see GraphicsDevice#getDisplayModes
44 * @see GraphicsDevice#setDisplayMode
45 * @author Michael Martak
46 * @since 1.4
47 */
48
49 public final class DisplayMode {
50
51 private Dimension size;
52 private int bitDepth;
53 private int refreshRate;
54
55 /**
56 * Create a new display mode object with the supplied parameters.
57 * @param width the width of the display, in pixels
58 * @param height the height of the display, in pixels
|