Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'testcases/org.eclipse.fx.testcases.fxgraph/src/org/eclipse/fx/testcases/fxgraph/PolygonePoints.fxgraph')
-rwxr-xr-xtestcases/org.eclipse.fx.testcases.fxgraph/src/org/eclipse/fx/testcases/fxgraph/PolygonePoints.fxgraph34
1 files changed, 34 insertions, 0 deletions
diff --git a/testcases/org.eclipse.fx.testcases.fxgraph/src/org/eclipse/fx/testcases/fxgraph/PolygonePoints.fxgraph b/testcases/org.eclipse.fx.testcases.fxgraph/src/org/eclipse/fx/testcases/fxgraph/PolygonePoints.fxgraph
new file mode 100755
index 000000000..58b162e6f
--- /dev/null
+++ b/testcases/org.eclipse.fx.testcases.fxgraph/src/org/eclipse/fx/testcases/fxgraph/PolygonePoints.fxgraph
@@ -0,0 +1,34 @@
+package org.eclipse.fx.testcases.fxgraph
+
+import javafx.scene.layout.VBox
+import javafx.scene.shape.Polygon
+import javafx.scene.layout.Pane
+import javafx.scene.shape.Rectangle
+import javafx.scene.layout.Region
+
+component PolygonePoints {
+ Pane {
+ children : [
+ Polygon {
+ layoutX : 10,
+ layoutY : 10,
+ stroke : "BLUE",
+ points: "0,20,20,40,30,0",
+ fill : "RED"
+ },
+ Polygon {
+ layoutX : 60,
+ layoutY : 10,
+ stroke : "BLUE",
+ points: [0,20,20,40,30,0],
+ fill : "RED"
+ },
+ Rectangle {
+ x : 10,
+ y : 100,
+ width : 100,
+ height : 100
+ }
+ ]
+ }
+}

Back to the top