Package trams.gui

Examples of trams.gui.ControlScreen


    /**
     * Run simulation!
     */
    public void runSimulation ( ) {
        theCurrentFrame.dispose();
        ControlScreen cs = new ControlScreen(this, theOperations.getSimulator(), "", 0, 4, false);
        cs.drawVehicles(true);
        theCurrentFrame.setVisible(true);
        //Set control screen.
        setControlScreen(cs);
        //Finally, run simulation
        isEnd = false;
View Full Code Here


     * Change the selected route.
     * @param routeNumber a <code>String</code> with the new route number.
     */
    public void changeRoute ( String routeNumber ) {
        //Now create new control screen.
        ControlScreen cs = new ControlScreen(this, theOperations.getSimulator(), routeNumber, 0, 4, false);
        cs.drawVehicles(true);
        theCurrentFrame.setVisible(true);
        //Set control screen.
        setControlScreen(cs);
        //Resume simulation.
        resumeSimulation();
View Full Code Here

     * @param max a <code>int</code> with the new max vehicle id.
     * @param allocations a <code>boolean</code> which is true iff allocations have been performed.
     */
    public void changeDisplay ( String routeNumber, int min, int max, boolean allocations ) {
        //Now create new control screen.
        ControlScreen cs = new ControlScreen(this, theOperations.getSimulator(), routeNumber, min, max, allocations);
        //cs.drawVehicles(true);
        theCurrentFrame.setVisible(true);
        //Set control screen.
        setControlScreen(cs);
        //Resume simulation.
View Full Code Here

        boolean validFile = true;
        if ( returnVal == JFileChooser.APPROVE_OPTION) {
            if ( theOperations.loadFile(fileDialog.getSelectedFile()) ) {
                JFrame oldFrame = theCurrentFrame;
                setManagementScreen(true);
                ControlScreen cs = new ControlScreen(this, theOperations.getSimulator(), "", 0, 4, false);
                //cs.drawVehicles(false);
                //WelcomeScreen ws = new WelcomeScreen(this);
                //cs.setVisible(true);
                theCurrentFrame.setVisible(true);
                oldFrame.dispose();
View Full Code Here

TOP

Related Classes of trams.gui.ControlScreen

Copyright © 2018 www.massapicom. 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.