Package com.cburch.logisim.circuit

Examples of com.cburch.logisim.circuit.CircuitMutation.replace()


      if (result == null) {
        xn.remove(shorten);
        actName = Strings.getter("removeComponentAction",
            shorten.getFactory().getDisplayGetter());
      } else {
        xn.replace(shorten, result);
        actName = Strings.getter("shortenWireAction");
      }
      canvas.getProject().doAction(xn.toAction(actName));
      return true;
    }
View Full Code Here


      Circuit circuit = proj.getCurrentCircuit();
      CircuitMutation xn = new CircuitMutation(circuit);

      sel.translateHelper(xn, dx, dy);
      if (replacements != null) {
        xn.replace(replacements);
      }

      CircuitTransactionResult result = xn.execute();
      xnReverse = result.getReverseTransaction();
    }
View Full Code Here

            Circuit circuit = proj.getCurrentCircuit();
            CircuitMutation xn = new CircuitMutation(circuit);

            sel.translateHelper(xn, dx, dy);
            if (replacements != null) {
                xn.replace(replacements);
            }

            CircuitTransactionResult result = xn.execute();
            xnReverse = result.getReverseTransaction();
        }
View Full Code Here

            Wire result = getShortenResult(shorten, drag0, drag1);
            if (result == null) {
                xn.remove(shorten);
                actName = getFromLocale("removeComponentAction", shorten.getFactory().getDisplayGetter());
            } else {
                xn.replace(shorten, result);
                actName = getFromLocale("shortenWireAction");
            }
            canvas.getProject().doAction(xn.toAction(actName));
            return true;
        }
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.