本文整理了Java中javafx.scene.layout.VBox.setMaxWidth()
方法的一些代码示例,展示了VBox.setMaxWidth()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。VBox.setMaxWidth()
方法的具体详情如下:
包路径:javafx.scene.layout.VBox
类名称:VBox
方法名:setMaxWidth
暂无
代码示例来源:origin: speedment/speedment
box.setMaxWidth(Double.MAX_VALUE);
bar.setMaxWidth(Double.MAX_VALUE);
message.setMaxWidth(Double.MAX_VALUE);
代码示例来源:origin: com.cedarsoft.commons/javafx
@Nonnull
private static Parent createContent(@Nonnull String message) {
Text text = new Text(message);
TextFlow textFlow = new TextFlow(text);
VBox root = new VBox(textFlow);
root.setMaxWidth(500);
return root;
}
代码示例来源:origin: ch.sahits.game/OpenPatricianJavaFX
public VBox createMultiParagraphContainer() {
VBox box = new VBox();
box.setLayoutY(topInset);
box.setLayoutX(leftInset);
box.setMaxWidth(wrappingWidth);
return box;
}
代码示例来源:origin: stackoverflow.com
public static List<Node> getLineRecordPages(Collection<LineRecord> lineRecords, PageLayout layout) {
LinkedList<Node> result = new LinkedList<>();
VBox node = null;
double totalHeight = Double.POSITIVE_INFINITY;
for (LineRecord record : lineRecords) {
PrintLineRecordView view = new PrintLineRecordView();
final PrintLineRecordPresenter presenter = (PrintLineRecordPresenter) view.getPresenter();
presenter.bind(record);
final double elementHeight = view.getView().prefHeight(layout.getPrintableWidth());
if (elementHeight + totalHeight > layout.getPrintableHeight()) {
node = new VBox();
node.setMaxWidth(layout.getPrintableWidth());
result.add(node);
totalHeight = 0;
}
totalHeight+=elementHeight;
if (node != null) {
node.getChildren().add(view.getView());
}
}
return result;
}
代码示例来源:origin: stackoverflow.com
double maxWidth = 10 * item.length();
leftBox.setMinWidth(Math.max(minWidth, leftBox.getMinWidth()));
leftBox.setMaxWidth(maxWidth);
代码示例来源:origin: stackoverflow.com
vbox.setMaxWidth(Double.MAX_VALUE);
vbox.setPrefSize(300, 100);
progressAlert.getDialogPane().setContent(vbox);
代码示例来源:origin: org.controlsfx/controlsfx
vbox.setMaxWidth(Double.MAX_VALUE);
vbox.setPrefSize(300, 100);
代码示例来源:origin: stackoverflow.com
alertPane.setMaxWidth(400);
alertPane.setMaxHeight(200);
alertPane.setAlignment(Pos.CENTER);
代码示例来源:origin: stackoverflow.com
vbox1.setMaxWidth(50);
vbox1.getChildren().add(label1);
vbox1.getChildren().add(label2);
vbox2.setMaxWidth(50);
vbox2.getChildren().add(label3);
vbox2.getChildren().add(label4);
代码示例来源:origin: at.bestsolution.efxclipse.rt/org.eclipse.fx.ui.dialogs
private Node createContent(Task<R> task) {
VBox progressPane = new VBox(6);
progressPane.setMaxWidth(Double.MAX_VALUE);
progressPane.setAlignment(Pos.CENTER_LEFT);
代码示例来源:origin: ch.sahits.game/OpenPatricianJavaFX
contentContainer = new VBox();
contentContainer.getStyleClass().add("containerVBox");
contentContainer.setMaxWidth(control.getContentMaxWidth());
contentContainer.setPadding(defaultInsets);
内容来源于网络,如有侵权,请联系作者删除!