Package cl.alejo.jcsim.csim.circuit

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


    // y la lleno con los nuevos puntos
    for (int i = 0; i < posPin.length; i++) {
      ContactPin ctt = (ContactPin) listCtt.get(i);
      int x = ctt._x;
      int y = ctt._y;
      Point point = icon.toGateCoords(x, y);
      posPin[i] = new Point(point._x, point._y);
    }

    // Los agrego al descriptor
    encapsulatedDesc.pointPin = posPin;
    encapsulatedDesc.pinCount = outPinCount;
View Full Code Here


  public SegmentDisplayDescriptor(ParamSegmentDisplay params) {
    super();
    this.params = params;
    this.pointPin = new cl.alejo.jcsim.csim.circuit.Point[4];
    this.typeOfGate = GateDescriptor.GATE_TYPE_DEBUG;
    this.pointPin[0] = new Point(-10, -12); // El pinIn 1
    this.pointPin[1] = new Point(-10, -4); // El pinIn 1
    this.pointPin[2] = new Point(-10, 4); // El pinIn 1
    this.pointPin[3] = new Point(-10, 12); // El pinIn 1
    this.sGateName = "SegementDisplayDesc";
    this.pinCount = 4;
  }
View Full Code Here

   */
  public NotDescriptor(GateParameters params) {
    super();
    this.params = params;
    this.pointPin = new Point[2];
    this.pointPin[0] = new Point(-16, 0); // El pinIn
    this.pointPin[1] = new Point(16, 0); // El pinOut
    this.sGateName = "NotDesc";
    this.pinCount = 2;
  }
View Full Code Here

  public SwitchDescriptor(ParamSwitch params) {
    super();
    this.params = params;
    this.typeOfGate = GateDescriptor.GATE_TYPE_DEBUG;
    this.pointPin = new cl.alejo.jcsim.csim.circuit.Point[1];
    this.pointPin[0] = new Point(18, 10); // El pinIn 1
    this.sGateName = "SwitchDesc";
    this.pinCount = 1;
  }
View Full Code Here

   */
  public FFDataDescriptor(ParamFFData params) {
    super();
    this.params = params;
    this.pointPin = new Point[3];
    this.pointPin[0] = new Point(-16, 0); // El pinIn
    this.pointPin[1] = new Point(16, 0); // El pinOut
    this.pointPin[2] = new Point(0, 8); // El pinOut
    this.sGateName = "FFdateDesc";
    this.pinCount = 3;
  }
View Full Code Here

   */
  public TimeDiagramDescriptor() {
    super();
    this.pointPin = new cl.alejo.jcsim.csim.circuit.Point[4];
    this.typeOfGate = GateDescriptor.GATE_TYPE_DEBUG;
    this.pointPin[0] = new Point(-10, -12); // El pinIn 1
    this.pointPin[1] = new Point(-10, -4); // El pinIn 1
    this.pointPin[2] = new Point(-10, 4); // El pinIn 1
    this.pointPin[3] = new Point(-10, 12); // El pinIn 1
    this.sGateName = "TimeDiagramDesc";
    this.pinCount = 4;
  }
View Full Code Here

    // PArametros
    this.params = new ParamVoid();
    this.pointPin = new cl.alejo.jcsim.csim.circuit.Point[1];
    this.typeOfGate = GateDescriptor.GATE_TYPE_DEBUG;
    this.pointPin[0] = new Point(-7, 12); // El pinIn 1
    this.sGateName = "FlagDesc";
    this.pinCount = 1;
  }
View Full Code Here

    this.pointPin = new Point[inPins + 1];

    // Los de entrada
    int dy = (int) (inPins * Circuit.GRIDSIZE / 2);
    for (int i = 0; i < inPins; i++)
      this.pointPin[i] = new Point(-16, i * Circuit.GRIDSIZE - dy);

    // El pin de salida
    this.pointPin[inPins] = new Point(16, 0);
    this.sGateName = "AssocDesc";
    this.pinCount = inPins + 1;
  }
View Full Code Here

    // y ahora lo convierto a coordenas de
    x = winSrc.getCanvas().getTransformedX(x);
    y = winSrc.getCanvas().getTransformedY(y);

    // Listo
    return new Point(x, y);
  }
View Full Code Here

    // y ahora lo convierto a coordenas de
    int _x = Circuit.gridTrunc(window.getCanvas().getTransformedX(x));
    int _y = Circuit.gridTrunc(window.getCanvas().getTransformedY(y));

    // Listo
    return new Point(_x, _y);
  }
View Full Code Here

TOP

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

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.