當前位置: 首頁>>代碼示例>>Java>>正文


Java ProgressBar.setMinHeight方法代碼示例

本文整理匯總了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);
}
 
開發者ID:bisq-network,項目名稱:exchange,代碼行數:26,代碼來源:SeparatedPhaseBars.java

示例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);
}
 
開發者ID:westerwave,項目名稱:livestreamer_twitch_gui,代碼行數:22,代碼來源:BrowserController.java

示例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();
}
 
開發者ID:bisq-network,項目名稱:exchange,代碼行數:29,代碼來源:TradeStepView.java


注:本文中的javafx.scene.control.ProgressBar.setMinHeight方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。