<%@ jet package="cruise.ui.jfx.templates.impl" imports="java.util.* cruise.model.abstractObjects.BackingObject cruise.umple.compiler.* cruise.ui.jfx.* " class="Button" skeleton="../jfx.skeleton" %> <% String preffix=JFXProvider.properties.getProperty(cruise.model.Constants.PACKAGE_PREFIX); %> package <%=preffix%>.components; import javafx.scene.CustomNode; import javafx.scene.Group; import javafx.scene.shape.Rectangle; import javafx.scene.paint.Paint; import javafx.scene.shape.Circle; public class Button extends CustomNode { def size=16; public var foreground: Paint; public var background: Paint; override function create() { Group { def rectangle = Rectangle { visible: bind rotate != 0 x: bind - size / 16 y: bind - size / 4 width: bind size / 8 height: bind size / 2 fill: bind foreground } content: [ Circle { radius: bind size / 2 fill: bind foreground } Circle { radius: bind size * 7 / 16 fill: bind background } Rectangle { x: bind rectangle.y y: bind rectangle.x width: bind rectangle.height height: bind rectangle.width fill: bind foreground } rectangle ] } } }