Lines Matching refs:modes
76 // Array of supported display modes
77 private DisplayMode[] modes = null;
158 modes = device.getDisplayModes();
159 Arrays.sort(modes, new DisplayModeSorter());
455 * <code>setUpChooser</code> retrieves all available display modes and
459 * @return the combo box of display modes.
462 String[] res = getResolutions(modes);
485 String modes[] = {"NULL", "JOGL-OpenGL1", "LWJGL-OpenGL2", "LWJGL-OpenGL3", "LWJGL-OpenGL3.1"};
486 JComboBox nameBox = new JComboBox(modes);
511 String[] depths = getDepths(resolution, modes);
515 String[] freqs = getFrequencies(resolution, modes);
538 getResolutions(modes)));
577 private static String[] getResolutions(DisplayMode[] modes) {
578 ArrayList<String> resolutions = new ArrayList<String>(modes.length);
579 for (int i = 0; i < modes.length; i++) {
580 String res = modes[i].getWidth() + " x " + modes[i].getHeight();
594 private static String[] getDepths(String resolution, DisplayMode[] modes) {
596 for (int i = 0; i < modes.length; i++) {
600 if (modes[i].getBitDepth() < 16 && modes[i].getBitDepth() > 0) {
604 String res = modes[i].getWidth() + " x " + modes[i].getHeight();
605 String depth = modes[i].getBitDepth() + " bpp";
626 DisplayMode[] modes) {
628 for (int i = 0; i < modes.length; i++) {
629 String res = modes[i].getWidth() + " x " + modes[i].getHeight();
631 if (modes[i].getRefreshRate() == DisplayMode.REFRESH_RATE_UNKNOWN) {
634 freq = modes[i].getRefreshRate() + " Hz";