use of javafx.scene.layout.Background in project Board-Instrumentation-Framework by intel.
the class PushButtonSkin method handleControlPropertyChanged.
// ******************** Methods *******************************************
protected void handleControlPropertyChanged(final String PROPERTY) {
if ("RESIZE".equals(PROPERTY)) {
resize();
} else if ("STATUS".equals(PROPERTY)) {
updateStatus();
} else if ("COLOR".equals(PROPERTY)) {
icon.setBackground(new Background(new BackgroundFill(getSkinnable().getColor(), null, null)));
resize();
}
}
use of javafx.scene.layout.Background in project Board-Instrumentation-Framework by intel.
the class DemoFlatGauge method start.
@Override
public void start(Stage stage) throws Exception {
HBox pane = new HBox();
pane.setPadding(new Insets(10, 10, 10, 10));
pane.setSpacing(10);
pane.getChildren().addAll(gauge);
pane.setBackground(new Background(new BackgroundFill(Color.WHITE, CornerRadii.EMPTY, Insets.EMPTY)));
final Scene scene = new Scene(pane, Color.WHITE);
// scene.setFullScreen(true);
stage.setTitle("FlatGauge");
stage.setScene(scene);
stage.show();
timer.start();
calcNoOfNodes(scene.getRoot());
System.out.println(noOfNodes + " Nodes in SceneGraph");
}
use of javafx.scene.layout.Background in project Board-Instrumentation-Framework by intel.
the class DemoLcd method start.
@Override
public void start(Stage stage) {
StackPane pane = new StackPane();
pane.setPadding(new Insets(10, 10, 10, 10));
pane.getChildren().setAll(control);
pane.setBackground(new Background(new BackgroundFill(Color.DARKGRAY, CornerRadii.EMPTY, Insets.EMPTY)));
Scene scene = new Scene(pane);
stage.setTitle("Lcd demo");
stage.centerOnScreen();
// stage.initStyle(StageStyle.UNDECORATED);
stage.setScene(scene);
stage.show();
timer.start();
calcNoOfNodes(scene.getRoot());
System.out.println(noOfNodes + " Nodes in SceneGraph");
}
use of javafx.scene.layout.Background in project Board-Instrumentation-Framework by intel.
the class Demo method start.
@Override
public void start(Stage stage) {
VBox pane = new VBox();
pane.setPadding(new Insets(10, 10, 10, 10));
pane.setBackground(new Background(new BackgroundFill(Color.web("#34495e"), CornerRadii.EMPTY, Insets.EMPTY)));
pane.setSpacing(20);
pane.setAlignment(Pos.CENTER);
pane.getChildren().addAll(onOffSwitch, iconSwitchSymbol, iconSwitchText, iconSwitchSymbol1);
Scene scene = new Scene(pane, 100, 150);
stage.setTitle("OnOffSwitch");
stage.setScene(scene);
stage.show();
}
use of javafx.scene.layout.Background in project Board-Instrumentation-Framework by intel.
the class Demo method start.
@Override
public void start(Stage stage) {
StackPane pane = new StackPane();
pane.setBackground(new Background(new BackgroundFill(Color.DARKGRAY, CornerRadii.EMPTY, Insets.EMPTY)));
pane.setPadding(new Insets(10, 10, 10, 10));
pane.getChildren().add(control);
Scene scene = new Scene(pane);
stage.setTitle("VuMeter Demo");
stage.setScene(scene);
stage.show();
timer.start();
calcNoOfNodes(scene.getRoot());
System.out.println(noOfNodes + " Nodes in SceneGraph");
}
Aggregations