本文整理汇总了Java中javafx.scene.layout.StackPane.setBackground方法的典型用法代码示例。如果您正苦于以下问题:Java StackPane.setBackground方法的具体用法?Java StackPane.setBackground怎么用?Java StackPane.setBackground使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类javafx.scene.layout.StackPane
的用法示例。
在下文中一共展示了StackPane.setBackground方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: start
import javafx.scene.layout.StackPane; //导入方法依赖的package包/类
@Override public void start(Stage stage) {
StackPane pane = new StackPane(graph);
pane.setPadding(new Insets(10));
pane.setBackground(new Background(new BackgroundFill(Color.rgb(40, 40, 40), CornerRadii.EMPTY, Insets.EMPTY)));
Scene scene = new Scene(pane);
stage.setTitle("Radial Chart");
stage.setScene(scene);
stage.show();
timer.start();
}
示例2: start
import javafx.scene.layout.StackPane; //导入方法依赖的package包/类
@Override public void start(Stage stage) {
StackPane pane = new StackPane(matrix);
pane.setPadding(new Insets(10));
pane.setBackground(new Background(new BackgroundFill(Color.rgb(20, 20, 20), CornerRadii.EMPTY, Insets.EMPTY)));
Scene scene = new Scene(pane);
stage.setTitle("DotMatrix");
stage.setScene(scene);
stage.show();
timer.start();
}
示例3: start
import javafx.scene.layout.StackPane; //导入方法依赖的package包/类
@Override public void start(Stage stage) {
StackPane pane = new StackPane(matrix);
pane.setBackground(new Background(new BackgroundFill(Color.rgb(10, 10, 20), CornerRadii.EMPTY, Insets.EMPTY)));
Scene scene = new Scene(pane);
stage.setTitle("Matrix Image");
stage.setScene(scene);
stage.show();
timer.start();
}
示例4: setSymbolFill
import javafx.scene.layout.StackPane; //导入方法依赖的package包/类
public void setSymbolFill(final Series<X, Y> SERIES, final Background SYMBOL_BACKGROUND) {
if (!getData().contains(SERIES)) { return; }
for (XYChart.Data<X, Y> data : SERIES.getData()) {
StackPane stackPane = (StackPane) data.getNode();
if (null == stackPane) { continue; }
stackPane.setBackground(SYMBOL_BACKGROUND);
}
}
示例5: start
import javafx.scene.layout.StackPane; //导入方法依赖的package包/类
@Override public void start(Stage stage) {
StackPane pane = new StackPane(pixelMatrix);
pane.setBackground(new Background(new BackgroundFill(Color.WHITE, CornerRadii.EMPTY, Insets.EMPTY)));
pane.setPadding(new Insets(10));
Scene scene = new Scene(pane);
stage.setTitle("MatrixPlot");
stage.setScene(scene);
stage.show();
timer.start();
}
示例6: start
import javafx.scene.layout.StackPane; //导入方法依赖的package包/类
@Override public void start(Stage stage) {
StackPane pane = new StackPane(lineChart);
pane.setPadding(new Insets(10));
pane.setBackground(new Background(new BackgroundFill(Color.web("#293C47"), CornerRadii.EMPTY, Insets.EMPTY)));
Scene scene = new Scene(pane);
stage.setTitle("Line Chart");
stage.setScene(scene);
stage.show();
}