Java Code Examples for javafx.scene.effect.GaussianBlur#radiusProperty()
The following examples show how to use
javafx.scene.effect.GaussianBlur#radiusProperty() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: Transitions.java From bisq with GNU Affero General Public License v3.0 | 6 votes |
private void removeEffect(Node node, int duration) { if (node != null) { node.setMouseTransparent(false); removeEffectTimeLine = new Timeline(); GaussianBlur blur = (GaussianBlur) node.getEffect(); if (blur != null) { KeyValue kv1 = new KeyValue(blur.radiusProperty(), 0.0); KeyFrame kf1 = new KeyFrame(Duration.millis(getDuration(duration)), kv1); removeEffectTimeLine.getKeyFrames().add(kf1); ColorAdjust darken = (ColorAdjust) blur.getInput(); KeyValue kv2 = new KeyValue(darken.brightnessProperty(), 0.0); KeyFrame kf2 = new KeyFrame(Duration.millis(getDuration(duration)), kv2); removeEffectTimeLine.getKeyFrames().add(kf2); removeEffectTimeLine.setOnFinished(actionEvent -> { node.setEffect(null); removeEffectTimeLine = null; }); removeEffectTimeLine.play(); } else { node.setEffect(null); removeEffectTimeLine = null; } } }
Example 2
Source File: GuiUtils.java From green_android with GNU General Public License v3.0 | 5 votes |
public static void blurOut(Node node) { GaussianBlur blur = new GaussianBlur(0.0); node.setEffect(blur); Timeline timeline = new Timeline(); KeyValue kv = new KeyValue(blur.radiusProperty(), 10.0); KeyFrame kf = new KeyFrame(Duration.millis(UI_ANIMATION_TIME_MSEC), kv); timeline.getKeyFrames().add(kf); timeline.play(); }
Example 3
Source File: GuiUtils.java From green_android with GNU General Public License v3.0 | 5 votes |
public static void blurIn(Node node) { GaussianBlur blur = (GaussianBlur) node.getEffect(); Timeline timeline = new Timeline(); KeyValue kv = new KeyValue(blur.radiusProperty(), 0.0); KeyFrame kf = new KeyFrame(Duration.millis(UI_ANIMATION_TIME_MSEC), kv); timeline.getKeyFrames().add(kf); timeline.setOnFinished(actionEvent -> node.setEffect(null)); timeline.play(); }
Example 4
Source File: GuiUtils.java From thunder with GNU Affero General Public License v3.0 | 5 votes |
public static void blurOut (Node node) { GaussianBlur blur = new GaussianBlur(0.0); node.setEffect(blur); Timeline timeline = new Timeline(); KeyValue kv = new KeyValue(blur.radiusProperty(), 10.0); KeyFrame kf = new KeyFrame(Duration.millis(UI_ANIMATION_TIME_MSEC), kv); timeline.getKeyFrames().add(kf); timeline.play(); }
Example 5
Source File: GuiUtils.java From thunder with GNU Affero General Public License v3.0 | 5 votes |
public static void blurIn (Node node) { GaussianBlur blur = (GaussianBlur) node.getEffect(); Timeline timeline = new Timeline(); KeyValue kv = new KeyValue(blur.radiusProperty(), 0.0); KeyFrame kf = new KeyFrame(Duration.millis(UI_ANIMATION_TIME_MSEC), kv); timeline.getKeyFrames().add(kf); timeline.setOnFinished(actionEvent -> node.setEffect(null)); timeline.play(); }
Example 6
Source File: GuiUtils.java From GreenBits with GNU General Public License v3.0 | 5 votes |
public static void blurOut(Node node) { GaussianBlur blur = new GaussianBlur(0.0); node.setEffect(blur); Timeline timeline = new Timeline(); KeyValue kv = new KeyValue(blur.radiusProperty(), 10.0); KeyFrame kf = new KeyFrame(Duration.millis(UI_ANIMATION_TIME_MSEC), kv); timeline.getKeyFrames().add(kf); timeline.play(); }
Example 7
Source File: GuiUtils.java From GreenBits with GNU General Public License v3.0 | 5 votes |
public static void blurIn(Node node) { GaussianBlur blur = (GaussianBlur) node.getEffect(); Timeline timeline = new Timeline(); KeyValue kv = new KeyValue(blur.radiusProperty(), 0.0); KeyFrame kf = new KeyFrame(Duration.millis(UI_ANIMATION_TIME_MSEC), kv); timeline.getKeyFrames().add(kf); timeline.setOnFinished(actionEvent -> node.setEffect(null)); timeline.play(); }
Example 8
Source File: GuiUtils.java From devcoretalk with GNU General Public License v2.0 | 5 votes |
public static void blurOut(Node node) { GaussianBlur blur = new GaussianBlur(0.0); node.setEffect(blur); Timeline timeline = new Timeline(); KeyValue kv = new KeyValue(blur.radiusProperty(), 10.0); KeyFrame kf = new KeyFrame(Duration.millis(UI_ANIMATION_TIME_MSEC), kv); timeline.getKeyFrames().add(kf); timeline.play(); }
Example 9
Source File: GuiUtils.java From devcoretalk with GNU General Public License v2.0 | 5 votes |
public static void blurIn(Node node) { GaussianBlur blur = (GaussianBlur) node.getEffect(); Timeline timeline = new Timeline(); KeyValue kv = new KeyValue(blur.radiusProperty(), 0.0); KeyFrame kf = new KeyFrame(Duration.millis(UI_ANIMATION_TIME_MSEC), kv); timeline.getKeyFrames().add(kf); timeline.setOnFinished(actionEvent -> node.setEffect(null)); timeline.play(); }
Example 10
Source File: GuiUtils.java From thundernetwork with GNU Affero General Public License v3.0 | 5 votes |
public static void blurOut(Node node) { GaussianBlur blur = new GaussianBlur(0.0); node.setEffect(blur); Timeline timeline = new Timeline(); KeyValue kv = new KeyValue(blur.radiusProperty(), 10.0); KeyFrame kf = new KeyFrame(Duration.millis(UI_ANIMATION_TIME_MSEC), kv); timeline.getKeyFrames().add(kf); timeline.play(); }
Example 11
Source File: GuiUtils.java From thundernetwork with GNU Affero General Public License v3.0 | 5 votes |
public static void blurIn(Node node) { GaussianBlur blur = (GaussianBlur) node.getEffect(); Timeline timeline = new Timeline(); KeyValue kv = new KeyValue(blur.radiusProperty(), 0.0); KeyFrame kf = new KeyFrame(Duration.millis(UI_ANIMATION_TIME_MSEC), kv); timeline.getKeyFrames().add(kf); timeline.setOnFinished(actionEvent -> node.setEffect(null)); timeline.play(); }