Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTom Schindl2015-11-26 10:54:23 +0000
committerTom Schindl2015-11-26 10:54:23 +0000
commit9f614794a696b6116c3890d3ad25101cd73ead6c (patch)
tree51c89ebdae2abde56b076f0c1ec2597a77554102
parentd5e4aba58b990645addda884a2b46b8bbecfe0fc (diff)
downloadorg.eclipse.efxclipse-9f614794a696b6116c3890d3ad25101cd73ead6c.tar.gz
org.eclipse.efxclipse-9f614794a696b6116c3890d3ad25101cd73ead6c.tar.xz
org.eclipse.efxclipse-9f614794a696b6116c3890d3ad25101cd73ead6c.zip
Bug 409340 - [e4] Add support for min/max
-rw-r--r--bundles/runtime/org.eclipse.fx.ui.workbench.renderers.fx/src/org/eclipse/fx/ui/workbench/renderers/fx/services/ProgressiveMaximizationTransitionService.java20
1 files changed, 10 insertions, 10 deletions
diff --git a/bundles/runtime/org.eclipse.fx.ui.workbench.renderers.fx/src/org/eclipse/fx/ui/workbench/renderers/fx/services/ProgressiveMaximizationTransitionService.java b/bundles/runtime/org.eclipse.fx.ui.workbench.renderers.fx/src/org/eclipse/fx/ui/workbench/renderers/fx/services/ProgressiveMaximizationTransitionService.java
index f41499a02..2f10f5170 100644
--- a/bundles/runtime/org.eclipse.fx.ui.workbench.renderers.fx/src/org/eclipse/fx/ui/workbench/renderers/fx/services/ProgressiveMaximizationTransitionService.java
+++ b/bundles/runtime/org.eclipse.fx.ui.workbench.renderers.fx/src/org/eclipse/fx/ui/workbench/renderers/fx/services/ProgressiveMaximizationTransitionService.java
@@ -52,23 +52,23 @@ public class ProgressiveMaximizationTransitionService implements MaximizationTra
double duration = 300;
Interpolator interpolator = Interpolator.EASE_BOTH;
- KeyValue kvOpacity = new KeyValue(greyPane.opacityProperty(), 1.0, interpolator);
+ KeyValue kvOpacity = new KeyValue(greyPane.opacityProperty(), Double.valueOf(1.0), interpolator);
KeyFrame kfOpacity = new KeyFrame(Duration.millis(duration), kvOpacity);
timeline.getKeyFrames().add(kfOpacity);
- KeyValue kv = new KeyValue(node.translateXProperty(), 0, interpolator);
+ KeyValue kv = new KeyValue(node.translateXProperty(), Double.valueOf(0.0), interpolator);
KeyFrame kf = new KeyFrame(Duration.millis(duration), kv);
timeline.getKeyFrames().add(kf);
- KeyValue kvY = new KeyValue(node.translateYProperty(), 0, interpolator);
+ KeyValue kvY = new KeyValue(node.translateYProperty(), Double.valueOf(0.0), interpolator);
KeyFrame kfY = new KeyFrame(Duration.millis(duration), kvY);
timeline.getKeyFrames().add(kfY);
- KeyValue kvYWidth = new KeyValue(node.prefWidthProperty(), commonRoot.getWidth(), interpolator);
+ KeyValue kvYWidth = new KeyValue(node.prefWidthProperty(), Double.valueOf(commonRoot.getWidth()), interpolator);
KeyFrame kfYWidth = new KeyFrame(Duration.millis(duration), kvYWidth);
timeline.getKeyFrames().add(kfYWidth);
- KeyValue kvYHeight = new KeyValue(node.prefHeightProperty(), commonRoot.getHeight(), interpolator);
+ KeyValue kvYHeight = new KeyValue(node.prefHeightProperty(), Double.valueOf(commonRoot.getHeight()), interpolator);
KeyFrame kfYHeight = new KeyFrame(Duration.millis(duration), kvYHeight);
timeline.getKeyFrames().add(kfYHeight);
@@ -101,22 +101,22 @@ public class ProgressiveMaximizationTransitionService implements MaximizationTra
double duration = 300;
Interpolator interpolator = Interpolator.EASE_BOTH;
- KeyValue kvOpacity = new KeyValue(greyPane.opacityProperty(), 0.0, interpolator);
+ KeyValue kvOpacity = new KeyValue(greyPane.opacityProperty(), Double.valueOf(0.0), interpolator);
final KeyFrame kfOpacity = new KeyFrame(Duration.millis(duration), kvOpacity);
timeline.getKeyFrames().add(kfOpacity);
- KeyValue kv = new KeyValue(node.translateXProperty(), bounds.getMinX(), interpolator);
+ KeyValue kv = new KeyValue(node.translateXProperty(), Double.valueOf(bounds.getMinX()), interpolator);
KeyFrame kf = new KeyFrame(Duration.millis(duration), kv);
timeline.getKeyFrames().add(kf);
- KeyValue kvY = new KeyValue(node.translateYProperty(), bounds.getMinY(), interpolator);
+ KeyValue kvY = new KeyValue(node.translateYProperty(), Double.valueOf(bounds.getMinY()), interpolator);
KeyFrame kfY = new KeyFrame(Duration.millis(duration), kvY);
timeline.getKeyFrames().add(kfY);
- KeyValue kvYWidth = new KeyValue(node.prefWidthProperty(), bounds.getWidth(), interpolator);
+ KeyValue kvYWidth = new KeyValue(node.prefWidthProperty(), Double.valueOf(bounds.getWidth()), interpolator);
KeyFrame kfYWidth = new KeyFrame(Duration.millis(duration), kvYWidth);
timeline.getKeyFrames().add(kfYWidth);
- KeyValue kvYHeight = new KeyValue(node.prefHeightProperty(), bounds.getHeight(), interpolator);
+ KeyValue kvYHeight = new KeyValue(node.prefHeightProperty(), Double.valueOf(bounds.getHeight()), interpolator);
KeyFrame kfYHeight = new KeyFrame(Duration.millis(duration), kvYHeight);
timeline.getKeyFrames().add(kfYHeight);

Back to the top