Generated Object

javafx.scene.shape.Ellipse

Attributes

This node takes the attributes from the javafx.scene.shape.Ellipse class. see javafx.scene.shape.Ellipse.

Content

This node does not take any content.

Usage

Create an Ellipse shape

Examples

import groovyx.javafx.GroovyFX
import groovyx.javafx.SceneGraphBuilder

GroovyFX.start({
    def sg = new SceneGraphBuilder();

    sg.stage(
        title: "Ellipse Example (Groovy)",
        width: 200, height:200,
        visible: true,
    ){ 
        scene (fill: white) {
            ellipse(centerX: 100, centerY: 100,
                radiusX: 50, radiusY: 25, fill: red)
        }
    }
});