本文整理匯總了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();
}