@Override public void heightChange(double oldHeight, double newHeigth) { double top = Math.max(newHeigth - untransformedHeight - paginationGroup.getLayoutY() - 7, 0); paginationGroup.translateYProperty().set(top); double translateY = newHeigth - IOpenPatricianApplicationWindow.MIN_HEIGHT; labelShapes.translateYProperty().set(translateY); }
@Override public void heightChange(double oldHeight, double newHeigth) { double top = Math.max(newHeigth - untransformedHeight - paginationGroup.getLayoutY() - 7, 0); paginationGroup.translateYProperty().set(top); double translateY = newHeigth - IOpenPatricianApplicationWindow.MIN_HEIGHT; labelShapes.translateYProperty().set(translateY); }
public void setLabelVisible(boolean b) { if (!b) { getChildren().remove(label); barGroup.translateXProperty().unbind(); barGroup.translateYProperty().unbind(); barGroup.setTranslateX(0); barGroup.setTranslateY(0); } else if (!getChildren().contains(label)) { getChildren().add(label); setLabelPosition(labelPosition); } }
public void setLabelVisible(boolean b) { if (!b) { getChildren().remove(label); barGroup.translateXProperty().unbind(); barGroup.translateYProperty().unbind(); barGroup.setTranslateX(0); barGroup.setTranslateY(0); } else if (!getChildren().contains(label)) { getChildren().add(label); setLabelPosition(labelPosition); } }
barGroup.translateYProperty().unbind(); label.translateXProperty().unbind(); label.translateYProperty().unbind(); case TOP: barGroup.setTranslateX(0); barGroup.translateYProperty().bind(label.heightProperty()); label.translateXProperty().bind(width.divide(2).subtract(label.widthProperty().divide(2))); label.setTranslateY(0);
barGroup.translateYProperty().unbind(); label.translateXProperty().unbind(); label.translateYProperty().unbind(); case TOP: barGroup.setTranslateX(0); barGroup.translateYProperty().bind(label.heightProperty()); label.translateXProperty().bind(width.divide(2).subtract(label.widthProperty().divide(2))); label.setTranslateY(0);