當前位置: 首頁>>代碼示例>>Java>>正文


Java AppSettings.setTitle方法代碼示例

本文整理匯總了Java中com.jme3.system.AppSettings.setTitle方法的典型用法代碼示例。如果您正苦於以下問題:Java AppSettings.setTitle方法的具體用法?Java AppSettings.setTitle怎麽用?Java AppSettings.setTitle使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在com.jme3.system.AppSettings的用法示例。


在下文中一共展示了AppSettings.setTitle方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: Viewer

import com.jme3.system.AppSettings; //導入方法依賴的package包/類
public Viewer() throws Exception{
	setShowSettings(false);
	AppSettings settings=new AppSettings(true);
	settings.setResizable(true);
	settings.setFrameRate(15);
	settings.setWidth(640);
	settings.setHeight(480);
	settings.setTitle("Image Viewer");

	reloadImage(null);

	int w=IMAGE.getImage().getWidth();
	int h=IMAGE.getImage().getHeight();
	GraphicsDevice gd=GraphicsEnvironment.getLocalGraphicsEnvironment().getDefaultScreenDevice();

	if(w<gd.getDisplayMode().getWidth()/2&&h<gd.getDisplayMode().getHeight()){
		settings.setWidth(w);
		settings.setHeight(h);
	}

	setSettings(settings);

}
 
開發者ID:riccardobl,項目名稱:DDSWriter,代碼行數:24,代碼來源:Viewer.java

示例2: init

import com.jme3.system.AppSettings; //導入方法依賴的package包/類
public void init(SurveyPlayback sim) {

		mSettings = new AppSettings(true);

		mSettings.setTitle("HELIOS - The Heidelberg LiDAR Operations Simulator");
		mSettings.setVSync(true);
		mSettings.setResolution(1680, 1050);
		mSettings.setResolution(1280, 1024);
		mSettings.setResolution(1600, 1024);
		// setting.setResolution(1024,768);
		mSettings.setResolution(1024,768);

		mSettings.setSamples(4);

		setSettings(mSettings);

		setShowSettings(false);

		// ATTENTION: This is REQUIRED to prevent freezing of the whole computer if the program loses focus!
		// setPauseOnLostFocus() must be "false" since currently, setting it to "true" won't stop the actual simulation anyway.
		setPauseOnLostFocus(false);
		this.sim = sim;
	}
 
開發者ID:GIScience,項目名稱:helios,代碼行數:24,代碼來源:JMEFrontEnd.java

示例3: startSimulation

import com.jme3.system.AppSettings; //導入方法依賴的package包/類
public void startSimulation(boolean debugShapes) throws InterruptedException {

        AppSettings simWindowSettings = new AppSettings(true);
        simWindowSettings.setTitle("Simulation Environment for Autonomous Robots");
        searSim.setSettings(simWindowSettings);

        searSim.setShowSettings(false);  //Prevents the Jmonkey dialog window from popping up. Must be set before app.start()
        searSim.setPauseOnLostFocus(false); //keeps simulation going while window is not in focus or selected. Allows it to run in the background.

        if (debugShapes) {
            searSim.setDebugMode();
        }

        searSim.startSimulation(this.getName());

        while (!searSim.initialized()) {
            Thread.sleep(333); //wait 1/3 of a second and check  
        }
        invoke("getHashMap");
    }
 
開發者ID:glaudiston,項目名稱:project-bianca,代碼行數:21,代碼來源:SEAR.java

示例4: start

import com.jme3.system.AppSettings; //導入方法依賴的package包/類
@Override
public void start()
{
	DisplayPrefsItem dprefs = new DisplayPrefsItem();
	AppSettings settings = new AppSettings(true);
	settings.setTitle("Multiplicity v3.0");
	settings.setBitsPerPixel(dprefs.getBitsPerPixel());
	settings.setWidth(dprefs.getWidth());
	settings.setHeight(dprefs.getHeight());
	settings.setFullscreen(dprefs.getFullScreen());
	settings.setVSync(true);
	settings.setSamples(dprefs.getMinimumAntiAliasSamples());
	setSettings(settings);

	super.start();
}
 
開發者ID:synergynet,項目名稱:synergynet3.1,代碼行數:17,代碼來源:JMEAppRoot.java

示例5: main

import com.jme3.system.AppSettings; //導入方法依賴的package包/類
/**
 * @param args
 */
public static void main(String[] args) {
	JOryx oryx = new JOryx();
	singleton = oryx;
	AppSettings a = new AppSettings(true);
	SettingsState ss = SettingsState.getSingleton();
	ss.loadSettings();
	a.setTitle("Realm of the Mad God");
	a.setWidth(ss.width);
	a.setHeight(ss.height);
	a.setFullscreen(ss.fullscreen);
	a.setRenderer(AppSettings.LWJGL_OPENGL1);
	oryx.setSettings(a);
	oryx.setPauseOnLostFocus(false);
	oryx.start();
}
 
開發者ID:AMPBEdu,項目名稱:gjOryx,代碼行數:19,代碼來源:JOryx.java

示例6: appSettings

import com.jme3.system.AppSettings; //導入方法依賴的package包/類
@Singleton
@Provides
public AppSettings appSettings(AppSettingsLoader appSettingsLoader, ResourceBundle resources) {
	AppSettings settings = new AppSettings(true);
	try {
		settings = appSettingsLoader.loadInto(settings);
	} catch (Exception e) {
		e.printStackTrace();
	}
	settings.setTitle(resources.getString("title"));
	settings.setUseJoysticks(true);
	//settings.setGammaCorrection(true); //TODO jme 3.1.0
	//settings.setResolution(640,480);
	//	settings.setRenderer("JOGL");
	//	settings.setRenderer(AppSettings.LWJGL_OPENGL3);
	return settings;
}
 
開發者ID:davidB,項目名稱:jme3_skel,代碼行數:18,代碼來源:MainModule.java

示例7: main

import com.jme3.system.AppSettings; //導入方法依賴的package包/類
public static void main(String[] args) { 
   AppSettings settings = new AppSettings(false);
    settings.setTitle("SkyHussars");
    settings.setUseJoysticks(true);
    
    /* TODO: make it moddable */
    settings.setSettingsDialogImage("images/settings_image.jpg");
    SkyHussars application = new SkyHussars();
    application.setSettings(settings);
    application.start();

}
 
開發者ID:ZoltanTheHun,項目名稱:SkyHussars,代碼行數:13,代碼來源:SkyHussars.java

示例8: main

import com.jme3.system.AppSettings; //導入方法依賴的package包/類
public static void main(String[] args) throws BackingStoreException {
    	Locale.setDefault(Locale.ENGLISH);
        MainApp app = new MainApp();
        app.setPauseOnLostFocus(false);
        app.setDisplayStatView(false);
        app.setDisplayFps(false);

                
        AppSettings settings = new AppSettings(false);
        settings.load("SMILE");
        settings.setTitle("SMILE");
        settings.setSettingsDialogImage("Interface/line500px.png");
        settings.setFrameRate(60);
        settings.setSamples(2);
        settings.putBoolean("DisableJoysticks", false);
        settings.save("SMILE");

        //        settings.setVSync(true);
//        settings.setResolution(800, 600);
//        settings.setSamples(4);
//        settings.setFullscreen(true);
//        GraphicsDevice device = GraphicsEnvironment.getLocalGraphicsEnvironment().getDefaultScreenDevice();
//        DisplayMode[] modes = device.getDisplayModes();
//        for (int i = 0; i < modes.length; ++i) {
//            System.err.println(modes[i].getWidth() + "x" + modes[i].getHeight() + " " + modes[i].getRefreshRate()
//                    + " " + modes[i].getBitDepth());
//        }
//
//        int i = 10; // note: there are usually several, let's pick the first
//        settings.setResolution(modes[i].getWidth(), modes[i].getHeight());
//        settings.setFrequency(modes[i].getRefreshRate());
//        settings.setBitsPerPixel(modes[i].getBitDepth());
////        settings.setFullscreen(device.isFullScreenSupported());
        
        app.setSettings(settings);
        app.setShowSettings(true);
        
        app.start(); // restart the context to apply changes
    }
 
開發者ID:dwhuang,項目名稱:SMILE,代碼行數:40,代碼來源:MainApp.java

示例9: main

import com.jme3.system.AppSettings; //導入方法依賴的package包/類
public static void main(String[] args) {
	AppSettings settings=new AppSettings(true);
	 settings.setTitle("VHACD Test");

	 TestFunny app=new TestFunny();
	 app.setSettings(settings);
	 app.start();
}
 
開發者ID:riccardobl,項目名稱:jme3-bullet-vhacd,代碼行數:9,代碼來源:TestFunny.java

示例10: main

import com.jme3.system.AppSettings; //導入方法依賴的package包/類
public static void main(String[] args) {
    AppSettings settings = new AppSettings(true);
    settings.setResolution(640, 480);
    settings.setSamples(4);
    settings.setTitle("Projection");
    settings.setFrameRate(40);
    
    ProjectTest app = new ProjectTest();
    app.setSettings(settings);
    app.setShowSettings(false);
    app.setPauseOnLostFocus(false);
    app.start();
    
}
 
開發者ID:huliqing,項目名稱:LuoYing,代碼行數:15,代碼來源:ProjectTest.java

示例11: TestPhysics

import com.jme3.system.AppSettings; //導入方法依賴的package包/類
public TestPhysics(){
    settings = new AppSettings(true);
    settings.setWidth(1280);
    settings.setHeight(720);
    settings.setTitle("Cubes Demo - Physics");
    settings.setFrameRate(60);
}
 
開發者ID:jMonkeyEngine-Contributions,項目名稱:cubes,代碼行數:8,代碼來源:TestPhysics.java

示例12: main

import com.jme3.system.AppSettings; //導入方法依賴的package包/類
public static void main(String[] args) {

        AppSettings settings = new AppSettings(true);
        settings.setTitle("Circle");
        settings.setResolution(800, 600);
        Circle2dTest app = new Circle2dTest();
        app.setSettings(settings);
        app.setPauseOnLostFocus(false);
        app.setShowSettings(false);

        app.start();
    }
 
開發者ID:mifth,項目名稱:JME-Simple-Examples,代碼行數:13,代碼來源:Circle2dTest.java

示例13: main

import com.jme3.system.AppSettings; //導入方法依賴的package包/類
public static void main(String[] args) {
    Main app = new Main();
    AppSettings settings = new AppSettings(true);
    settings.setTitle("Magicallyous");
    //settings.setSettingsDialogImage("Interface/splashscreen.png");
    settings.setResolution(1280, 800);
    app.setSettings(settings);
    app.start(JmeContext.Type.Display);
}
 
開發者ID:duodecimo,項目名稱:magicallyous,代碼行數:10,代碼來源:Main.java

示例14: main

import com.jme3.system.AppSettings; //導入方法依賴的package包/類
public static void main(String[] args) {
    MinionVsAlienProject app = new MinionVsAlienProject();
    
    // Set some custom settings
    AppSettings settings = new AppSettings(true);
    settings.setTitle("Minions Vs Aliens");
    app.setSettings(settings);

    // Start the app
    app.start();
}
 
開發者ID:utsav2601,項目名稱:MinionVsAlien-3D-game,代碼行數:12,代碼來源:MinionVsAlienProject.java

示例15: main

import com.jme3.system.AppSettings; //導入方法依賴的package包/類
public static void main(String[] args) {
    Main app = new Main();
    AppSettings settings = new AppSettings(true);
    settings.setTitle("Jogo Básico");
    settings.setSettingsDialogImage("Interface/splashscreen.png");
    settings.setResolution(1280, 800);
    app.setSettings(settings);
    app.start();
}
 
開發者ID:duodecimo,項目名稱:jmcv,代碼行數:10,代碼來源:Main.java


注:本文中的com.jme3.system.AppSettings.setTitle方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。