1 package org.simantics.district.network.ui.participants;
3 import java.awt.geom.AffineTransform;
5 import org.simantics.district.network.ui.nodes.MapRulerNode;
6 import org.simantics.g2d.canvas.impl.SGNodeReflection.SGInit;
7 import org.simantics.g2d.participant.RulerPainter;
8 import org.simantics.maps.MapScalingTransform;
9 import org.simantics.scenegraph.g2d.G2DParentNode;
11 public class MapRulerPainter extends RulerPainter {
15 public void initSG(G2DParentNode parent) {
16 node = parent.addNode("ruler", getNodeClass());
17 node.setTransform(new AffineTransform(MapScalingTransform.INSTANCE));
18 node.setZIndex(PAINT_PRIORITY);
23 protected Class<MapRulerNode> getNodeClass() {
24 return MapRulerNode.class;