javafx.scene.shape.Circle
This node takes the attributes from the javafx.scene.shape.Circle class. see javafx.scene.shape.Circle.
This node does not take any content.
Create an Circle shape
import groovyx.javafx.GroovyFX
import groovyx.javafx.SceneGraphBuilder
GroovyFX.start({
def sg = new SceneGraphBuilder();
sg.stage(
title: "Circle Example (Groovy)",
width: 200, height:200,
visible: true,
){
scene (fill: white) {
circle(centerX: 100, centerY: 100,
radius: 50, fill: red)
}
}
});
|