Package cl.alejo.jcsim.csim.circuit

Examples of cl.alejo.jcsim.csim.circuit.Circuit


  /**
   * Crea una nueva ventana con un circuito en blanco Creation date: (25/03/01
   * 20:25:05)
   */
  public void newWindow() {
    Circuit circuit = new Circuit();
    Window window = new Window(circuit);
    circuit.addWindow(window);
    circuit.startTimer();
    window.pack();
    window.show();
  }
View Full Code Here


  /**
   * Crea una nueva ventana con un circuito vacio Creation date: (08/04/01
   * 16:55:13)
   */
  private void newWin() {
    Circuit circuit = new Circuit();

    Window window = new Window(circuit);
    circuit.addWindow(window);
    circuit.startTimer();
    window.pack();
    window.show();
  }
View Full Code Here

      if (answer == JOptionPane.YES_OPTION) {
        _window.saveAs();
      }
    }

    _window.setCircuit(new Circuit());
    _window.startRepaint();
  }
View Full Code Here

    // El click
    if (window.getCircuit() != null) {
      // Donde ocurre
      int x = canvas.getTransformedX(event.getX());
      int y = canvas.getTransformedY(event.getY());
      Circuit circuit = window.getCircuit();

      // Si es el boton izquierdo
      if (SwingUtilities.isLeftMouseButton(event)) {
        if (circuit.peekV(x, y) || circuit.peekH(x, y))
          circuit.disconnect(x, y);
        else {
          if (_iconTarget != null) {
            if (button_modiff == MODIF_ALT)
              circuit.delete(_iconTarget);
            else if (button_modiff == MODIF_SHIFT)
              _iconTarget.rotate(x, y);
            else
              circuit.apply(x, y);
          }
        }
      }

      // Recalculamos las barras cuando hemos hecho un
View Full Code Here

TOP

Related Classes of cl.alejo.jcsim.csim.circuit.Circuit

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.