diff --git a/web2d/src/test/javascript/render/arrow.html b/web2d/src/test/javascript/render/arrow.html new file mode 100644 index 00000000..7f1db761 --- /dev/null +++ b/web2d/src/test/javascript/render/arrow.html @@ -0,0 +1,123 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

PolyLines Render Tests

+ + ++ + + + + + + + + + + + + +
+ Different types of PolyLines that can be used. + +
+
+ This is how multiple childs will look in each style line + +
+
+ + diff --git a/web2d/src/test/javascript/render/curvedLine.html b/web2d/src/test/javascript/render/curvedLine.html index 991b125e..91e6bbd9 100644 --- a/web2d/src/test/javascript/render/curvedLine.html +++ b/web2d/src/test/javascript/render/curvedLine.html @@ -71,14 +71,23 @@ web2d.peer.Toolkit.init(); var overflowWorkspace = new web2d.Workspace({fillColor:'green'}); - overflowWorkspace.setSize("200px", "200px"); - line1 = new web2d.CurvedLine(); + overflowWorkspace.setSize("400px", "400px"); + var line1 = new web2d.CurvedLine(); line1.setStyle(web2d.CurvedLine.SIMPLE_LINE); line1.setFrom(200, 200); line1.setTo(100, 100); -// line1.setControlPoints({x:150,y:100},{x:150,y:200}); + line1.setSrcControlPoint(new core.Point(-100,0)); + line1.setDestControlPoint(new core.Point(100,0)); overflowWorkspace.appendChild(line1); + var line2 = new web2d.CurvedLine(); + line2.setStyle(web2d.CurvedLine.NICE_LINE); + line2.setFrom(0, 0); + line2.setTo(150, 90); + line2.setSrcControlPoint(new core.Point(100,0)); + line2.setDestControlPoint(new core.Point(-100,0)); + overflowWorkspace.appendChild(line2); + overflowWorkspace.addItAsChildTo($("overflowExample")); } diff --git a/web2d/src/test/javascript/render/relationshipLine.html b/web2d/src/test/javascript/render/relationshipLine.html new file mode 100644 index 00000000..4e302fef --- /dev/null +++ b/web2d/src/test/javascript/render/relationshipLine.html @@ -0,0 +1,228 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

PolyLines Render Tests

+ + ++ + + + + + + + + + + + + +
+ Different types of PolyLines that can be used. + +
+
+ This is how multiple childs will look in each style line + +
+
+ +