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); }
public static DigitalShape getComp(Point p) { return MDIWindow.getDrawingPad().getCircuit().find(p); }