本文整理了Java中javafx.scene.control.Label.heightProperty()
方法的一些代码示例,展示了Label.heightProperty()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Label.heightProperty()
方法的具体详情如下:
包路径:javafx.scene.control.Label
类名称:Label
方法名:heightProperty
暂无
代码示例来源:origin: jfoenixadmin/JFoenix
errorLabel.heightProperty().addListener((o, oldVal, newVal) -> {
if (errorShown) {
if (oldErrorLabelHeight == -1) {
代码示例来源:origin: at.bestsolution.efxclipse.rt/org.eclipse.fx.ui.controls
this.icon.layoutYProperty().bind(this.icon.heightProperty().divide(-2));
} else if( location == Location.TOP_RIGHT ) {
this.icon.layoutXProperty().bind(Bindings.createDoubleBinding(() -> {
return Double.valueOf(c.getWidth() - this.icon.widthProperty().get() / 2);
},this.icon.widthProperty(), c.widthProperty()));
this.icon.layoutYProperty().bind(this.icon.heightProperty().divide(-2));
} else if( location == Location.BOTTOM_LEFT ) {
this.icon.layoutXProperty().bind(this.icon.widthProperty().divide(-2));
this.icon.layoutYProperty().bind(Bindings.createDoubleBinding(() -> {
return Double.valueOf(c.getHeight() - this.icon.heightProperty().get() / 2);
}, this.icon.heightProperty(), c.heightProperty()));
} else if( location == Location.BOTTOM_RIGHT ) {
this.icon.layoutXProperty().bind(Bindings.createDoubleBinding(() -> {
},this.icon.widthProperty(), c.widthProperty()));
this.icon.layoutYProperty().bind(Bindings.createDoubleBinding(() -> {
return Double.valueOf(c.getHeight() - this.icon.heightProperty().get() / 2);
}, this.icon.heightProperty(), c.heightProperty()));
代码示例来源:origin: stackoverflow.com
message.heightProperty().addListener((observable, oldValue, newValue) -> {
bubble.setHeight(newValue.doubleValue() + 10);
Platform.runLater(new Runnable() {
代码示例来源:origin: com.github.almasb/fxgl-ui
barGroup.setTranslateY(0);
label.setTranslateX(0);
label.translateYProperty().bind(height.divide(2).subtract(label.heightProperty().divide(2)));
break;
case RIGHT:
barGroup.setTranslateY(0);
label.translateXProperty().bind(width.add(10));
label.translateYProperty().bind(height.divide(2).subtract(label.heightProperty().divide(2)));
break;
case TOP:
barGroup.setTranslateX(0);
barGroup.translateYProperty().bind(label.heightProperty());
label.translateXProperty().bind(width.divide(2).subtract(label.widthProperty().divide(2)));
label.setTranslateY(0);
代码示例来源:origin: com.github.almasb/fxgl-base
barGroup.setTranslateY(0);
label.setTranslateX(0);
label.translateYProperty().bind(height.divide(2).subtract(label.heightProperty().divide(2)));
break;
case RIGHT:
barGroup.setTranslateY(0);
label.translateXProperty().bind(width.add(10));
label.translateYProperty().bind(height.divide(2).subtract(label.heightProperty().divide(2)));
break;
case TOP:
barGroup.setTranslateX(0);
barGroup.translateYProperty().bind(label.heightProperty());
label.translateXProperty().bind(width.divide(2).subtract(label.widthProperty().divide(2)));
label.setTranslateY(0);
代码示例来源:origin: com.jfoenix/jfoenix
errorLabel.heightProperty().addListener((o, oldVal, newVal) -> {
if (errorShown) {
if (oldErrorLabelHeight == -1) {
内容来源于网络,如有侵权,请联系作者删除!