From: jplaine Date: Wed, 4 Aug 2010 10:32:25 +0000 (+0000) Subject: Element transform handling moved away from ElementPainter. Now transform is handler... X-Git-Tag: simantics-1.2.0~136 X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=commitdiff_plain;h=15227a4f814d873bffa27df663dec5e3c583ba40;p=simantics%2Fsysdyn.git Element transform handling moved away from ElementPainter. Now transform is handler by SceneGraph interface implementation. git-svn-id: https://www.simantics.org/svn/simantics/sysdyn/trunk@16934 ac1ea38d-2e2b-0410-8846-a27921b304fc --- diff --git a/org.simantics.h2d/src/org/simantics/h2d/node/RectangleNode.java b/org.simantics.h2d/src/org/simantics/h2d/node/RectangleNode.java index 6d96fab1..da8daaa4 100644 --- a/org.simantics.h2d/src/org/simantics/h2d/node/RectangleNode.java +++ b/org.simantics.h2d/src/org/simantics/h2d/node/RectangleNode.java @@ -32,6 +32,7 @@ public class RectangleNode extends G2DNode { @Override public void render(Graphics2D g) { if(bounds == null) return; + g.transform(transform); g.setColor(Color.BLACK); double scale = g.getTransform().getScaleX(); g.setStroke(new BasicStroke( (float)(1.0 / scale) ));