|
|
@ -706,7 +706,17 @@ public abstract class Workspace extends Unit<Item<?, ?, ?>> { |
|
|
|
Circuits.CircuitState circuitState = circuits.getState (plugedComp, acc); |
|
|
|
if (circuitState == null) |
|
|
|
continue; |
|
|
|
Acc.printCircuit (printGraphics, lineWidth, plugedComp.getAccCenter (acc.getId ()), circuitState); |
|
|
|
Point2D c = plugedComp.getAccCenter (acc.getId ()); |
|
|
|
// try {
|
|
|
|
// Comp endComp = (Comp) namedItems.get (acc.getConnectedTo ());
|
|
|
|
// Point2D a = plugedComp.getAccCenter (acc.getId ());
|
|
|
|
// Point2D b = endComp.getAccCenter (acc.getConnectedOn ());
|
|
|
|
// c = new Point2D.Double ((1*a.getX ()+b.getX ())/2, (1*a.getY ()+b.getY ())/2);
|
|
|
|
// } catch (Exception e) {
|
|
|
|
// }
|
|
|
|
// XXX
|
|
|
|
//Acc.printCircuit (printGraphics, lineWidth, c, circuitState);
|
|
|
|
Acc.printCircuit (printGraphics, c, circuitState, .4); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|