// ************************************************************
cl.alejo.jcsim.csim.circuit.Point[] posPin = new cl.alejo.jcsim.csim.circuit.Point[outPinCount];
IconGate icon = (IconGate) box;
// 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);
}