package org.simantics.sysdyn.ui.elements2;\r
\r
+import java.awt.geom.AffineTransform;\r
+\r
import org.simantics.g2d.element.ElementUtils;\r
import org.simantics.g2d.element.IElement;\r
import org.simantics.g2d.element.SceneGraphNodeKey;\r
\r
// Calculate borders from text node bounds.\r
node.init(ElementUtils.getElementBounds(e));\r
+ AffineTransform transform = ElementUtils.getTransform(e);\r
+ if(transform != null)\r
+ node.setTransform(transform);\r
}\r
\r
@Override\r
node.setScaleStroke(true);\r
node.setColor(Color.BLACK);\r
node.setShape(getCloudShape());\r
+ AffineTransform transform = ElementUtils.getTransform(e);\r
+ if(transform != null)\r
+ node.setTransform(transform);\r
\r
if(at != null)\r
node.setTransform(at);\r