Examples of UniverseTimeController


Examples of barsuift.simLife.time.UniverseTimeController

    public BasicUniverseContext(UniverseContextState state) {
        this.state = state;
        this.axisShowing = state.isAxisShowing();

        this.universe = new BasicUniverse(state.getUniverseState());
        timeController = new UniverseTimeController(universe);
        canvas3D = new BasicSimLifeCanvas3D(universe.getFpsCounter(), state.getCanvasState());
        SimpleUniverse simpleU = new SimpleUniverse(canvas3D);

        // limit to graphic to 40 FPS (interval = 1000ms / 40 = 25)
        simpleU.getViewer().getView().setMinimumFrameCycleTime(25);
View Full Code Here

Examples of barsuift.simLife.time.UniverseTimeController

        rightPanel.setLayout(new BoxLayout(rightPanel, BoxLayout.PAGE_AXIS));

        JPanel environmentPanel = new EnvironmentPanel(universe.getEnvironment());
        rightPanel.add(environmentPanel);

        UniverseTimeController timeController = new UniverseTimeController(universe);
        JPanel controllerPanel = new TimeControllerPanel(timeController);
        rightPanel.add(controllerPanel);

        add(rightPanel);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.