]> gerrit.simantics Code Review - simantics/district.git/blob
d5f02bb24d3b5d7bffef59621cc8d801beb173cb
[simantics/district.git] /
1 package org.simantics.district.network.ui.participants;
2
3 import java.awt.geom.AffineTransform;
4
5 import org.simantics.district.network.ui.nodes.ElevationServerNode;
6 import org.simantics.g2d.canvas.impl.SGNodeReflection.SGInit;
7 import org.simantics.g2d.diagram.participant.AbstractDiagramParticipant;
8 import org.simantics.scenegraph.g2d.G2DParentNode;
9
10 public class ElevationServerParticipant extends AbstractDiagramParticipant {
11
12     private ElevationServerNode node;
13
14     private AffineTransform transform;
15     
16     public ElevationServerParticipant(AffineTransform transform) {
17         this.transform = transform;
18     }
19
20     @SGInit
21     public void initSG(G2DParentNode parent) {
22         node = parent.addNode(ElevationServerNode.ID, ElevationServerNode.class);
23         node.setTransform(transform);
24     }
25
26 }