This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| private void applyClip() { | |
| ReadOnlyObjectProperty<Bounds> boundsProperty = layoutBoundsProperty(); | |
| Rectangle rect = new Rectangle(); | |
| rect.setManaged(false); | |
| rect.layoutXProperty().bind(Bindings.createDoubleBinding(() -> boundsProperty.get().getMinX(), boundsProperty)); | |
| rect.layoutYProperty().bind(Bindings.createDoubleBinding(() -> boundsProperty.get().getMinY(), boundsProperty)); | |
| rect.widthProperty().bind(Bindings.createDoubleBinding(() -> boundsProperty.get().getWidth(), boundsProperty)); | |
| rect.heightProperty().bind(Bindings.createDoubleBinding(() -> boundsProperty.get().getHeight(), boundsProperty)); | |
| rect.setFill(Color.BLACK); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import javafx.beans.property.DoubleProperty; | |
| import javafx.beans.property.SimpleDoubleProperty; | |
| import javafx.beans.property.SimpleObjectProperty; | |
| import javafx.scene.Node; | |
| import javafx.scene.control.Control; | |
| import javafx.scene.control.Skin; | |
| public class MaskedView extends Control { | |
| public MaskedView(Node content) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package uk.co.senapt.desktop.shell; | |
| import javafx.beans.property.BooleanProperty; | |
| import javafx.beans.property.SimpleBooleanProperty; | |
| import javafx.geometry.Insets; | |
| import javafx.scene.Node; | |
| import javafx.scene.control.ScrollPane; | |
| import javafx.scene.layout.Region; | |
| import javafx.scene.shape.Rectangle; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package uk.co.senapt.desktop; | |
| import javafx.application.Application; | |
| import javafx.geometry.Insets; | |
| import javafx.scene.Scene; | |
| import javafx.scene.control.CheckBox; | |
| import javafx.scene.control.Label; | |
| import javafx.scene.layout.HBox; | |
| import javafx.scene.layout.VBox; | |
| import javafx.stage.Stage; |