]> gerrit.simantics Code Review - simantics/sysdyn.git/commitdiff
Element transform handling moved away from ElementPainter. Now transform is handler...
authorjplaine <jplaine@ac1ea38d-2e2b-0410-8846-a27921b304fc>
Wed, 4 Aug 2010 10:32:25 +0000 (10:32 +0000)
committerjplaine <jplaine@ac1ea38d-2e2b-0410-8846-a27921b304fc>
Wed, 4 Aug 2010 10:32:25 +0000 (10:32 +0000)
git-svn-id: https://www.simantics.org/svn/simantics/sysdyn/trunk@16934 ac1ea38d-2e2b-0410-8846-a27921b304fc

org.simantics.h2d/src/org/simantics/h2d/node/RectangleNode.java

index 6d96fab16653461f384cb65b858e874a80fca25a..da8daaa471658c34bfeb7a969b13fdfe63275a05 100644 (file)
@@ -32,6 +32,7 @@ public class RectangleNode extends G2DNode {
     @Override\r
     public void render(Graphics2D g) {\r
         if(bounds == null) return;\r
+        g.transform(transform);\r
         g.setColor(Color.BLACK);\r
         double scale = g.getTransform().getScaleX();\r
         g.setStroke(new BasicStroke( (float)(1.0 / scale) ));\r