本文整理匯總了Java中javafx.scene.control.ProgressBar.setMinHeight方法的典型用法代碼示例。如果您正苦於以下問題:Java ProgressBar.setMinHeight方法的具體用法?Java ProgressBar.setMinHeight怎麽用?Java ProgressBar.setMinHeight使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類javafx.scene.control.ProgressBar
的用法示例。
在下文中一共展示了ProgressBar.setMinHeight方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: addLabels
import javafx.scene.control.ProgressBar; //導入方法依賴的package包/類
private void addLabels() {
Label titleLabel = new Label(Res.get("dao.compensation.active.phase"));
Label startLabel = new Label(Res.get("dao.compensation.active.startBlock"));
AnchorPane startLabelPane = new AnchorPane();
AnchorPane.setLeftAnchor(startLabel, 0d);
startLabelPane.getChildren().add(startLabel);
Label endLabel = new Label(Res.get("dao.compensation.active.endBlock"));
AnchorPane endLabelPane = new AnchorPane();
AnchorPane.setRightAnchor(endLabel, 0d);
endLabelPane.getChildren().add(endLabel);
ProgressBar progressBar = new ProgressBar();
progressBar.setMinHeight(9);
progressBar.setMaxHeight(9);
progressBar.setVisible(false);
vBoxLabels = new VBox();
vBoxLabels.setSpacing(5);
vBoxLabels.getChildren().addAll(titleLabel, progressBar, startLabelPane, endLabelPane);
vBoxLabels.setAlignment(Pos.CENTER);
vBoxLabels.setPadding(new Insets(0, 10, 0, 0));
getChildren().add(vBoxLabels);
}
示例2: setupProgressBar
import javafx.scene.control.ProgressBar; //導入方法依賴的package包/類
private void setupProgressBar() {
final VBox vbox = new VBox();
final ProgressBar browserProgressBar = new ProgressBar();
browserProgressBar.setVisible(false);
browserProgressBar.setMinHeight(PROGRESS_BAR_MIN_HEIGHT);
browserProgressBar.setMaxWidth(Double.MAX_VALUE);
vbox.getChildren().add(browserProgressBar);
this.browserRootBorderPane.setBottom(vbox);
final DoubleProperty progress = new SimpleDoubleProperty();
TwitchBrowserUpdateService.activeServicesProperty().addListener((observable, oldValue, newValue) -> {
final int size = observable.getValue().size();
if (size == 0) {
progress.set(1.0D);
browserProgressBar.setVisible(false);
} else {
browserProgressBar.setVisible(true);
progress.set(1.0D / observable.getValue().size());
}
});
browserProgressBar.progressProperty().bind(progress);
}
示例3: addTradeInfoBlock
import javafx.scene.control.ProgressBar; //導入方法依賴的package包/類
protected void addTradeInfoBlock() {
tradeInfoTitledGroupBg = addTitledGroupBg(gridPane, gridRow, 4, Res.get("portfolio.pending.tradeInformation"));
txIdTextField = addLabelTxIdTextField(gridPane, gridRow, Res.getWithCol("shared.depositTransactionId"), Layout.FIRST_ROW_DISTANCE).second;
String id = model.dataModel.txId.get();
if (!id.isEmpty())
txIdTextField.setup(id);
else
txIdTextField.cleanup();
if (model.dataModel.getTrade() != null)
PaymentMethodForm.addOpenTradeDuration(gridPane, ++gridRow, model.dataModel.getTrade().getOffer(),
model.getDateForOpenDispute());
timeLeftTextField = addLabelTextField(gridPane, ++gridRow, Res.getWithCol("portfolio.pending.remainingTime")).second;
timeLeftProgressBar = new ProgressBar(0);
timeLeftProgressBar.setOpacity(0.7);
timeLeftProgressBar.setMinHeight(9);
timeLeftProgressBar.setMaxHeight(9);
timeLeftProgressBar.setMaxWidth(Double.MAX_VALUE);
GridPane.setRowIndex(timeLeftProgressBar, ++gridRow);
GridPane.setColumnIndex(timeLeftProgressBar, 1);
GridPane.setFillWidth(timeLeftProgressBar, true);
gridPane.getChildren().add(timeLeftProgressBar);
updateTimeLeft();
}