From 15227a4f814d873bffa27df663dec5e3c583ba40 Mon Sep 17 00:00:00 2001 From: jplaine Date: Wed, 4 Aug 2010 10:32:25 +0000 Subject: [PATCH] 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 --- org.simantics.h2d/src/org/simantics/h2d/node/RectangleNode.java | 1 + 1 file changed, 1 insertion(+) 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) )); -- 2.47.1