本文整理了Java中javafx.scene.layout.Region.setMinWidth
方法的一些代码示例,展示了Region.setMinWidth
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Region.setMinWidth
方法的具体详情如下:
包路径:javafx.scene.layout.Region
类名称:Region
方法名:setMinWidth
暂无
代码示例来源:origin: com.cedarsoft.commons/javafx
/**
* Sets the min width to use the pref size
*/
@Nonnull
public static <T extends Region> T minWidth2pref(@Nonnull T node) {
node.setMinWidth(Region.USE_PREF_SIZE);
return node;
}
代码示例来源:origin: org.controlsfx/controlsfx
((Region)editor).setMinWidth(MIN_COLUMN_WIDTH);
((Region)editor).setMaxWidth(Double.MAX_VALUE);
代码示例来源:origin: com.intuit.karate/karate-core
protected void mousePressed(MouseEvent event) {
// ignore clicks outside of the draggable margin
if (!isInDraggableZone(event)) {
return;
}
dragging = true;
// make sure that the minimum height is set to the current height once,
// setting a min height that is smaller than the current height will
// have no effect
if (!initMinHeight) {
region.setMinHeight(region.getHeight());
initMinHeight = true;
}
y = event.getSceneY();
if (!initMinWidth) {
region.setMinWidth(region.getWidth());
initMinWidth = true;
}
x = event.getSceneX();
}
代码示例来源:origin: org.jfxtras/jfxtras-common
/**
* @param node
*/
protected void apply(Node node)
{
if (node instanceof javafx.scene.layout.Region)
{
javafx.scene.layout.Region lRegion = (javafx.scene.layout.Region)node;
// setup the reset values on the first apply
rememberResetValues(lRegion);
// either set or reset values
lRegion.setMinWidth(minWidth >= 0 ? minWidth : minWidthReset);
lRegion.setPrefWidth(prefWidth >= 0 ? prefWidth : prefWidthReset);
lRegion.setMaxWidth(maxWidth >= 0 ? maxWidth : maxWidthReset);
lRegion.setMinHeight(minHeight >= 0 ? minHeight : minHeightReset);
lRegion.setPrefHeight(prefHeight >= 0 ? prefHeight : prefHeightReset);
lRegion.setMaxHeight(maxHeight >= 0 ? maxHeight : maxHeightReset);
}
}
代码示例来源:origin: net.sf.dcutils/dcutils
region.setMinWidth(minWidth);
代码示例来源:origin: at.bestsolution.efxclipse.rt/org.eclipse.fx.ui.controls
spacer.setMinWidth(2);
spacer.setMaxWidth(2);
this.rootContainer.getChildren().add(spacer);
代码示例来源:origin: com.intuit.karate/karate-core
region.setMinWidth(newWidth);
region.setPrefWidth(newWidth);
内容来源于网络,如有侵权,请联系作者删除!