]> gerrit.simantics Code Review - simantics/district.git/blobdiff - org.simantics.district.network.ui/src/org/simantics/district/network/ui/function/Functions.java
DynamicVisualisations enhancements & deprecate old profiles & settings
[simantics/district.git] / org.simantics.district.network.ui / src / org / simantics / district / network / ui / function / Functions.java
index cc05a173b739e2b6d33fe5b823e3f1fa513c236b..617ed21111572e539afef2469bed96111e213fe9 100644 (file)
@@ -510,37 +510,18 @@ public class Functions {
     private static List<String> listInstanceNames(ReadGraph graph, Variable context, Resource type) throws DatabaseException {
         Resource indexRoot = Variables.getIndexRoot(graph, context);
         DistrictNetworkResource DN = DistrictNetworkResource.getInstance(graph);
-        List<Resource> properties = QueryIndexUtils.searchByType(graph, indexRoot, DN.Vertex_ScaleProperty);
+        List<Resource> properties = Collections.emptyList();//QueryIndexUtils.searchByType(graph, indexRoot, DN.Vertex_ScaleProperty);
         return properties.stream()
                 .map(m -> createEnumeratedValue(graph, m))
                 .map(EnumeratedValue::getName)
                 .collect(Collectors.toList());
     }
 
-    @SCLValue(type = "ReadGraph -> Resource -> Variable -> b")
-    public static Object edgeThicknessPropertyEnumerationValues(ReadGraph graph, Resource resource, Variable context) throws DatabaseException {
-        DistrictNetworkResource DN = DistrictNetworkResource.getInstance(graph);
-        return listInstanceNames(graph, context, DN.Edge_ThicknessProperty);
-    }
-    
     @SCLValue(type = "ReadGraph -> Resource -> Variable -> b")
     public static Object arrowLengthPropertyEnumerationValues(ReadGraph graph, Resource resource, Variable context) throws DatabaseException {
         DistrictNetworkResource DN = DistrictNetworkResource.getInstance(graph);
         return listInstanceNames(graph, context, DN.Edge_ArrowLengthProperty);
     }
-    
-    @SCLValue(type = "ReadGraph -> Resource -> Variable -> b")
-    public static Object nodeScalePropertyEnumerationValues(ReadGraph graph, Resource resource, Variable context) throws DatabaseException {
-        DistrictNetworkResource DN = DistrictNetworkResource.getInstance(graph);
-        return listInstanceNames(graph, context, DN.Vertex_ScaleProperty);
-    }
-
-    @SCLValue(type = "ReadGraph -> Resource -> Variable -> b")
-    public static Object edgeThicknessPropertyModifier(ReadGraph graph, Resource resource, Variable context) throws DatabaseException {
-        Resource diagram = resolveElement(graph, context);
-        DistrictNetworkResource DN = DistrictNetworkResource.getInstance(graph);
-        return baseMappingModifier(graph, diagram, DN.Diagram_edgeThicknessProperty, DN.Edge_ThicknessProperty, context);
-    }
 
     @SCLValue(type = "ReadGraph -> Resource -> Variable -> b")
     public static Object arrowLengthPropertyModifier(ReadGraph graph, Resource resource, Variable context) throws DatabaseException {
@@ -548,13 +529,6 @@ public class Functions {
         DistrictNetworkResource DN = DistrictNetworkResource.getInstance(graph);
         return baseMappingModifier(graph, diagram, DN.Diagram_arrowLengthProperty, DN.Edge_ArrowLengthProperty, context);
     }
-    
-    @SCLValue(type = "ReadGraph -> Resource -> Variable -> b")
-    public static Object nodeScalePropertyModifier(ReadGraph graph, Resource resource, Variable context) throws DatabaseException {
-        Resource diagram = resolveElement(graph, context);
-        DistrictNetworkResource DN = DistrictNetworkResource.getInstance(graph);
-        return baseMappingModifier(graph, diagram, DN.Diagram_nodeScaleProperty, DN.Vertex_ScaleProperty, context);
-    }
 
     @SCLValue(type = "ReadGraph -> Resource -> Variable -> b")
     public static Function1<Resource, Double> hasDiameterValue(ReadGraph graph, Resource resource, Variable context) throws DatabaseException {