本文整理了Java中javafx.scene.layout.Region.setPrefHeight
方法的一些代码示例,展示了Region.setPrefHeight
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Region.setPrefHeight
方法的具体详情如下:
包路径:javafx.scene.layout.Region
类名称:Region
方法名:setPrefHeight
暂无
代码示例来源:origin: org.codehaus.griffon/griffon-javafx
protected void updateChildBounds(Node node) {
if (node instanceof Region) {
Region child = (Region) node;
child.setPrefWidth(getWidth());
child.setPrefHeight(getHeight());
}
}
代码示例来源:origin: org.codehaus.griffon/griffon-javafx
protected void updateChildBounds(Node node) {
if (node instanceof Region) {
Region child = (Region) node;
child.setPrefWidth(getWidth());
child.setPrefHeight(getHeight());
}
}
代码示例来源:origin: org.refcodes/refcodes-graphical-ext-javafx
/**
* {@inheritDoc}
*/
@Override
public void setContent( Node aContent ) {
if ( aContent instanceof Region ) {
((Region) aContent).setPrefWidth( getWidth() );
((Region) aContent).setPrefHeight( getHeight() );
}
_content = aContent;
}
代码示例来源:origin: com.aquafx-project/aquafx
private void updateArrowLinePositions() {
double left = arrowButton.localToScene(0, 0).getX() - arrowButtonContainer.localToScene(0, 0).getX();
arrowButtonLeftLine.setLayoutX(left-1);
arrowButtonLeftLine.setPrefHeight(arrowButtonContainer.getLayoutBounds().getHeight());
arrowButtonRightLine.setLayoutX(left + arrowButton.getLayoutBounds().getWidth());
arrowButtonRightLine.setPrefHeight(arrowButtonContainer.getLayoutBounds().getHeight());
double arrowLeft = arrow.localToScene(0, 0).getX() - arrowButtonContainer.localToScene(0, 0).getX();
arrowLeftLine.setLayoutX(arrowLeft-1);
arrowLeftLine.setPrefHeight(arrowButtonContainer.getLayoutBounds().getHeight());
arrowRightLine.setLayoutX(arrowLeft + arrow.getLayoutBounds().getWidth());
arrowRightLine.setPrefHeight(arrowButtonContainer.getLayoutBounds().getHeight());
}
}
代码示例来源: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.setPrefHeight(prefHeight);
代码示例来源:origin: PhoenicisOrg/phoenicis
spacer.setPrefHeight(20);
VBox.setVgrow(spacer, Priority.NEVER);
buttonSpacer.setPrefHeight(20);
VBox.setVgrow(buttonSpacer, Priority.NEVER);
代码示例来源:origin: org.gillius/jfxutils
region.setPrefHeight( h );
else
h = region.getPrefHeight();
代码示例来源:origin: com.intuit.karate/karate-core
region.setPrefHeight(newHeight);
内容来源于网络,如有侵权,请联系作者删除!