@Override public void widthChange(double oldWidth, double newWidth) { double left = Math.max(newWidth - untransformedWidth - paginationGroup.getLayoutX()-36, 0); paginationGroup.translateXProperty().set(left); double translateX = newWidth - IOpenPatricianApplicationWindow.MIN_WIDTH; labelShapes.translateXProperty().set(translateX); } /**
@Override public void widthChange(double oldWidth, double newWidth) { double left = Math.max(newWidth - untransformedWidth - paginationGroup.getLayoutX()-36, 0); paginationGroup.translateXProperty().set(left); double translateX = newWidth - IOpenPatricianApplicationWindow.MIN_WIDTH; labelShapes.translateXProperty().set(translateX); } /**
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); } }
return; barGroup.translateXProperty().unbind(); barGroup.translateYProperty().unbind(); label.translateXProperty().unbind(); break; case LEFT: barGroup.translateXProperty().bind(label.widthProperty().add(10)); barGroup.setTranslateY(0); label.setTranslateX(0);
return; barGroup.translateXProperty().unbind(); barGroup.translateYProperty().unbind(); label.translateXProperty().unbind(); break; case LEFT: barGroup.translateXProperty().bind(label.widthProperty().add(10)); barGroup.setTranslateY(0); label.setTranslateX(0);