-import "Visualization/Graphviz/AbstractTypes"\r
-import "Visualization/Graphviz/Property"\r
-\r
-importJava "org.simantics.graphviz.Edge" where\r
- data Edge\r
- @JavaName "<init>"\r
- newPrimitiveEdge :: Identifiable -> Identifiable -> <Proc> Edge\r
- setLabel :: Edge -> String -> <Proc> ()\r
- @JavaName set\r
- setGenericProperty :: Edge -> String -> String -> <Proc> ()\r
- \r
-applyEdgeProperty :: Edge -> Property -> <Proc> ()\r
-applyEdgeProperty graph (Label str) = setLabel graph str\r
-applyEdgeProperty graph (GenericProperty property str) = setGenericProperty graph property str\r
- \r
-newEdge :: Identifiable a => Identifiable b => a -> b -> [Property] -> <Proc> Edge\r
-newEdge node1 node2 properties = edge\r
- where\r
- edge = newPrimitiveEdge (identifiable node1) (identifiable node2)\r
+import "Visualization/Graphviz/AbstractTypes"
+import "Visualization/Graphviz/Property"
+
+importJava "org.simantics.graphviz.Edge" where
+ data Edge
+ @JavaName "<init>"
+ newPrimitiveEdge :: Identifiable -> Identifiable -> <Proc> Edge
+ setLabel :: Edge -> String -> <Proc> ()
+ @JavaName set
+ setGenericProperty :: Edge -> String -> String -> <Proc> ()
+
+applyEdgeProperty :: Edge -> Property -> <Proc> ()
+applyEdgeProperty graph (Label str) = setLabel graph str
+applyEdgeProperty graph (GenericProperty property str) = setGenericProperty graph property str
+
+newEdge :: Identifiable a => Identifiable b => a -> b -> [Property] -> <Proc> Edge
+newEdge node1 node2 properties = edge
+ where
+ edge = newPrimitiveEdge (identifiable node1) (identifiable node2)
for properties (applyEdgeProperty edge)
\ No newline at end of file