settings.setVSync(false); // stop vsyncing on primary monitor! settings.setSwapBuffers(!disableSwapBuffers || VRhardware instanceof OSVR); settings.setTitle("Put Headset On Now: " + settings.getTitle()); settings.setResizable(true);
private Settings(final AppSettings settings) { // Init the settings this.settings = settings; //Default resolution if (!this.settings.containsKey("Width") || !this.settings.containsKey("Height")) { this.settings.setResolution(800, 600); // Default resolution } File settingsFile = new File(USER_SETTINGS_FILE); if (settingsFile.exists()) { try (InputStream is = new FileInputStream(settingsFile)) { this.settings.load(is); } catch (IOException ex) { LOGGER.log(java.util.logging.Level.WARNING, "Settings file failed to load from " + settingsFile + "!", ex); } } this.settings.setFrameRate(Math.max(MAX_FPS, settings.getFrequency())); // Assing some app level settings settings.setTitle(TITLE); settings.setIcons(getApplicationIcons()); }
public static void main(String[] args) { Logger.getGlobal().setLevel(Level.ALL); ZxingTest app = new ZxingTest(); app.setPauseOnLostFocus(false); app.setShowSettings(false); AppSettings settings = new AppSettings(true); settings.setTitle("PHAT - QR test"); settings.setWidth(800); settings.setHeight(480); app.setSettings(settings); app.start(); }
public static void main(String[] args) { SensorPresenceHouseTest test = new SensorPresenceHouseTest(); PHATApplication phat = new PHATApplication(test); phat.setDisplayFps(true); phat.setDisplayStatView(false); AppSettings settings = new AppSettings(true); settings.setTitle("PHAT"); settings.setWidth(1280); settings.setHeight(960); phat.setSettings(settings); phat.start(); }
public static void main(String[] args) { WalkingAroundHouseAccTest test = new WalkingAroundHouseAccTest(); PHATApplication phat = new PHATApplication(test); phat.setDisplayFps(true); phat.setDisplayStatView(false); AppSettings settings = new AppSettings(true); settings.setTitle("PHAT"); settings.setWidth(1280); settings.setHeight(720); phat.setSettings(settings); phat.start(); }
public static void main(String[] args) { JsonRpcTest test = new JsonRpcTest(); PHATApplication phat = new PHATApplication(test); phat.setDisplayFps(true); phat.setDisplayStatView(false); AppSettings settings = new AppSettings(true); settings.setTitle("PHAT"); settings.setWidth(1280); settings.setHeight(720); phat.setSettings(settings); phat.start(); }
public static void main(String[] args) { ScreenAVDTest test = new ScreenAVDTest(); PHATApplication phat = new PHATApplication(test); phat.setDisplayFps(true); phat.setDisplayStatView(false); AppSettings settings = new AppSettings(true); settings.setTitle("PHAT"); settings.setWidth(640); settings.setHeight(480); phat.setSettings(settings); phat.start(); }
public static void main(String[] args) { PresenceSensorTest test = new PresenceSensorTest(); PHATApplication phat = new PHATApplication(test); phat.setDisplayFps(true); phat.setDisplayStatView(false); AppSettings settings = new AppSettings(true); settings.setTitle("PHAT"); settings.setWidth(1280); settings.setHeight(960); phat.setSettings(settings); phat.start(); }
public static void main(String[] args) { AccelerometerParkinsonTest test = new AccelerometerParkinsonTest(); PHATApplication phat = new PHATApplication(test); phat.setDisplayFps(true); phat.setDisplayStatView(false); AppSettings settings = new AppSettings(true); settings.setTitle("PHAT"); settings.setWidth(640); settings.setHeight(480); phat.setSettings(settings); phat.start(); }
public static void main(String[] args) { RemoteAccelerometerParkinsonTest test = new RemoteAccelerometerParkinsonTest(); PHATApplication phat = new PHATApplication(test); phat.setDisplayFps(true); phat.setDisplayStatView(false); AppSettings settings = new AppSettings(true); settings.setTitle("PHAT"); settings.setWidth(640); settings.setHeight(480); phat.setSettings(settings); phat.start(); }
public static void main(String[] args) { SpeakerTest test = new SpeakerTest(); PHATApplication phat = new PHATApplication(test); phat.setDisplayFps(true); phat.setDisplayStatView(false); AppSettings settings = new AppSettings(true); settings.setTitle("PHAT"); settings.setWidth(640); settings.setHeight(480); phat.setSettings(settings); phat.start(); }
public static void main(String[] args) { RandomWalkTest test = new RandomWalkTest(); PHATApplication phat = new PHATApplication(test); phat.setDisplayFps(true); phat.setDisplayStatView(false); AppSettings settings = new AppSettings(true); settings.setTitle("PHAT"); settings.setWidth(1280); settings.setHeight(780); phat.setSettings(settings); phat.start(); }
s.setTitle(initializer.getTittle()); s.setWidth(displayWidth); s.setHeight(displayHeight);