Package com.cburch.logisim.circuit

Examples of com.cburch.logisim.circuit.Simulator.tick()


      } else if (src == reset) {
        if (sim != null) sim.requestReset();
      } else if (src == step || src == LogisimMenuBar.SIMULATE_STEP) {
        if (sim != null) sim.step();
      } else if (src == tickOnce || src == LogisimMenuBar.TICK_STEP) {
        if (sim != null) sim.tick();
      } else if (src == ticksEnabled || src == LogisimMenuBar.TICK_ENABLE) {
        if (sim != null) sim.setIsTicking(!sim.isTicking());
      } else if (src == log) {
        LogFrame frame = menubar.getProject().getLogFrame(true);
        frame.setVisible(true);
View Full Code Here


   
    public void tick() {
      Project proj = menubar.getProject();
        Simulator sim = proj == null ? null : proj.getSimulator();
        if (sim != null)
          sim.tick();
    }

    public void localeChanged() {
        this.setText(getFromLocale("simulateMenu"));
        run.setText(getFromLocale("simulateRunItem"));
View Full Code Here

                    sim.step();
                }

            } else if (src == tickOnce || src == LogisimMenuBar.TICK_STEP) {
                if (sim != null) {
                    sim.tick();
                }

            } else if (src == ticksEnabled || src == LogisimMenuBar.TICK_ENABLE) {
                if (sim != null) {
                    sim.setIsTicking(!sim.isTicking());
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.