Generated Object
javafx.scene.shape.Polyline
Attributes
This node takes the attributes from the javafx.scene.shape.Polyline class. see javafx.scene.shape.Polyline.
Content
This node does not take any content.
Usage
Create a Polyline shape
Examples
| Code Block |
|---|
import groovyx.javafx.GroovyFX
import groovyx.javafx.SceneGraphBuilder
GroovyFX.start({
def sg = new SceneGraphBuilder();
sg.stage(
title: "Polyline Example (Groovy)",
width: 200, height:200,
visible: true,
){
scene (fill: white) {
polyline(
points: [ 0, -50, 50, 50, -50, 50, 0, 0],
translateX: 100, translateY: 100,
stroke: red, strokeWidth: 2)
}
}
});
|