This commit is contained in:
bancika
2011-01-03 19:23:10 +00:00
parent 602bd81bb4
commit 79a48a04e0
3 changed files with 43 additions and 27 deletions
@@ -131,6 +131,8 @@ public class ResistorInstance implements IComponentInstance {
g2d.setStroke(new BasicStroke(1));
}
g2d.drawLine(leftTopCorner.x, leftTopCorner.y, otherCorner.x, otherCorner.y);
g2d.rotate(Math.PI / 4, (leftTopCorner.x + otherCorner.x) / 2,
(leftTopCorner.y + otherCorner.y) / 2);
g2d.fillRect((leftTopCorner.x + otherCorner.x) / 2 - 10,
(leftTopCorner.y + otherCorner.y) / 2 - 10, 20, 20);
}