void animate(double toValue){
Timeline timeline = new Timeline();
timeline.getKeyFrames().add(
new KeyFrame(Duration.seconds(1),
new KeyValue(getMaxHeightProperty(), toValue)));
timeline.playFromStart();
}
protected abstract DoubleProperty getMaxHeightProperty();
}