]> gerrit.simantics Code Review - simantics/district.git/blobdiff - org.simantics.district.network.ui/src/org/simantics/district/network/ui/adapters/DistrictNetworkEdgeElement.java
Add edge geometry for detailed rendering in closer zoom levels
[simantics/district.git] / org.simantics.district.network.ui / src / org / simantics / district / network / ui / adapters / DistrictNetworkEdgeElement.java
index ce57e0a21fd7f12b0f8968b74af4899a1092cbaf..34424739eb9a0764dbab3d7338a183b86994ff29 100644 (file)
@@ -105,7 +105,7 @@ public class DistrictNetworkEdgeElement {
             if (size == null)
                 size = new Rectangle2D.Double();
             if (edge != null)
-                size.setFrame(DistrictNetworkEdgeNode.calculatePath(edge, null).getBounds2D());
+                size.setFrame(DistrictNetworkEdgeNode.calculatePath(edge, null, false).getBounds2D());
             else
                 LOGGER.debug("Element {} does not have edge!", e);
 
@@ -116,7 +116,7 @@ public class DistrictNetworkEdgeElement {
         public Shape getElementShape(IElement e) {
             DistrictNetworkEdge edge = e.getHint(KEY_DN_EDGE);
             if (edge != null) {
-                return DistrictNetworkEdgeNode.calculatePath(edge, null);
+                return DistrictNetworkEdgeNode.calculatePath(edge, null, false);
             } else {
                 return getBounds(e, null);
             }