Beispiel #1
0
  public static void convertEquationToCircuit() {
    String eq = JOptionPane.showInputDialog(MDIWindow.getDrawingPad(), "Enter Equation");
    if (eq == null) return;
    EquationCircuit eq_cir = new EquationCircuit();

    DigitalCircuit cir = eq_cir.convert(eq);
    MDIWindow.getDrawingPad().setCircuit(cir);
  }
Beispiel #2
0
 public static DigitalShape getComp(Point p) {
   return MDIWindow.getDrawingPad().getCircuit().find(p);
 }