equal
deleted
inserted
replaced
23 * questions. |
23 * questions. |
24 */ |
24 */ |
25 |
25 |
26 package java.awt; |
26 package java.awt; |
27 |
27 |
|
28 import javax.tools.annotation.GenerateNativeHeader; |
|
29 |
28 /** |
30 /** |
29 * The <code>DisplayMode</code> class encapsulates the bit depth, height, |
31 * The <code>DisplayMode</code> class encapsulates the bit depth, height, |
30 * width, and refresh rate of a <code>GraphicsDevice</code>. The ability to |
32 * width, and refresh rate of a <code>GraphicsDevice</code>. The ability to |
31 * change graphics device's display mode is platform- and |
33 * change graphics device's display mode is platform- and |
32 * configuration-dependent and may not always be available |
34 * configuration-dependent and may not always be available |
41 * @see GraphicsDevice#getDisplayModes |
43 * @see GraphicsDevice#getDisplayModes |
42 * @see GraphicsDevice#setDisplayMode |
44 * @see GraphicsDevice#setDisplayMode |
43 * @author Michael Martak |
45 * @author Michael Martak |
44 * @since 1.4 |
46 * @since 1.4 |
45 */ |
47 */ |
|
48 |
|
49 /* No native methods here, but the constants are needed in the supporting JNI code */ |
|
50 @GenerateNativeHeader |
46 public final class DisplayMode { |
51 public final class DisplayMode { |
47 |
52 |
48 private Dimension size; |
53 private Dimension size; |
49 private int bitDepth; |
54 private int bitDepth; |
50 private int refreshRate; |
55 private int refreshRate; |