]> gerrit.simantics Code Review - simantics/district.git/blob - org.simantics.district.network.ui/src/org/simantics/district/network/ui/nodes/MapRulerNode.java
Add property table highlight listener to open DN diagram
[simantics/district.git] / org.simantics.district.network.ui / src / org / simantics / district / network / ui / nodes / MapRulerNode.java
1 package org.simantics.district.network.ui.nodes;
2
3 import org.simantics.district.network.ModelledCRS;
4 import org.simantics.scenegraph.g2d.nodes.RulerNode;
5
6 public class MapRulerNode extends RulerNode {
7
8     private static final long serialVersionUID = -7140072658133605907L;
9
10     @Override
11     protected double modifyHorizontalValue(double value) {
12         return ModelledCRS.xToLongitude(value);
13     }
14
15     @Override
16     protected double modifyVerticalValue(double value) {
17         return ModelledCRS.yToLatitude(value);
18     }
19
20     @Override
21     protected int getMaxDigits() {
22         return 7;
23     }
24 }