本文整理匯總了Java中javafx.scene.control.ProgressIndicator.setMinWidth方法的典型用法代碼示例。如果您正苦於以下問題:Java ProgressIndicator.setMinWidth方法的具體用法?Java ProgressIndicator.setMinWidth怎麽用?Java ProgressIndicator.setMinWidth使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類javafx.scene.control.ProgressIndicator
的用法示例。
在下文中一共展示了ProgressIndicator.setMinWidth方法的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: buildProgressIndicator
import javafx.scene.control.ProgressIndicator; //導入方法依賴的package包/類
private ProgressIndicator buildProgressIndicator(double parentWidth, double parentHeight) {
double minWidth = parentWidth / 2;
double minHeight = parentHeight / 2;
double positionX = imageRectangle.getX() + (parentWidth - minWidth) / 2;
double positionY = imageRectangle.getY() + (parentHeight - minHeight) / 2;
ProgressIndicator result = new ProgressIndicator(0);
result.setTranslateX(positionX);
result.setTranslateY(positionY);
result.setMinWidth(minWidth);
result.setMinHeight(minHeight);
result.setOpacity(0.5);
result.setVisible(false);
return result;
}
示例2: createSwirlingProgressIndicator
import javafx.scene.control.ProgressIndicator; //導入方法依賴的package包/類
public static ProgressIndicator createSwirlingProgressIndicator(double width, double height)
{
ProgressIndicator indicator = new ProgressIndicator();
indicator.setStyle("-fx-progress-color: white;");
indicator.setMinWidth(width);
indicator.setMaxWidth(width);
indicator.setMinHeight(height);
indicator.setMaxHeight(height);
return indicator;
}
示例3: createProgressIndicator
import javafx.scene.control.ProgressIndicator; //導入方法依賴的package包/類
private ProgressIndicator createProgressIndicator(double width, double height) {
ProgressIndicator indicator = new ProgressIndicator(0);
indicator.setTranslateX(card.getX() + width * 0.05);
indicator.setTranslateY(card.getY() + height * 0.2);
indicator.setMinWidth(width * 0.9);
indicator.setMinHeight(width * 0.9);
indicator.setOpacity(0);
return indicator;
}
示例4: nodeForPercentage
import javafx.scene.control.ProgressIndicator; //導入方法依賴的package包/類
private Node nodeForPercentage() {
final ProgressIndicator progress = new ProgressIndicator(percentageAchieved);
progress.getStyleClass().add("itrysql-achievement-progress");
progress.setPrefWidth(LABEL_LOGO_FIXED_WIDTH);
progress.setMinWidth(LABEL_LOGO_FIXED_WIDTH);
progress.setMaxWidth(LABEL_LOGO_FIXED_WIDTH);
return progress;
}