本文整理汇总了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;
}