|
@ -1729,21 +1729,17 @@ public class AppController implements Initializable { |
|
|
private void serverToggleStartAnimation() { |
|
|
private void serverToggleStartAnimation() { |
|
|
Node thumbArea = serverToggle.lookup(".thumb-area"); |
|
|
Node thumbArea = serverToggle.lookup(".thumb-area"); |
|
|
if(thumbArea != null) { |
|
|
if(thumbArea != null) { |
|
|
FadeTransition fadeTransition = new FadeTransition(Duration.millis(600), thumbArea); |
|
|
Timeline timeline = AnimationUtil.getPulse(thumbArea, Duration.millis(600), 1.0, 0.4, 20); |
|
|
fadeTransition.setFromValue(1.0); |
|
|
timeline.play(); |
|
|
fadeTransition.setToValue(0.4); |
|
|
serverToggle.setUserData(new AnimationUtil.AnimatedNode(thumbArea, timeline)); |
|
|
fadeTransition.setAutoReverse(true); |
|
|
|
|
|
fadeTransition.setCycleCount(Animation.INDEFINITE); |
|
|
|
|
|
fadeTransition.play(); |
|
|
|
|
|
serverToggle.setUserData(fadeTransition); |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
private void serverToggleStopAnimation() { |
|
|
private void serverToggleStopAnimation() { |
|
|
if(serverToggle.getUserData() != null) { |
|
|
if(serverToggle.getUserData() != null) { |
|
|
FadeTransition fadeTransition = (FadeTransition)serverToggle.getUserData(); |
|
|
AnimationUtil.AnimatedNode animatedNode = (AnimationUtil.AnimatedNode)serverToggle.getUserData(); |
|
|
fadeTransition.stop(); |
|
|
animatedNode.timeline().stop(); |
|
|
fadeTransition.getNode().setOpacity(1.0); |
|
|
animatedNode.node().setOpacity(1.0); |
|
|
serverToggle.setUserData(null); |
|
|
serverToggle.setUserData(null); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
@ -1759,13 +1755,9 @@ public class AppController implements Initializable { |
|
|
private void tabLabelStartAnimation(Tab tab) { |
|
|
private void tabLabelStartAnimation(Tab tab) { |
|
|
Label tabLabel = (Label) tab.getGraphic(); |
|
|
Label tabLabel = (Label) tab.getGraphic(); |
|
|
if(tabLabel.getUserData() == null) { |
|
|
if(tabLabel.getUserData() == null) { |
|
|
FadeTransition fadeTransition = new FadeTransition(Duration.millis(1000), tabLabel.getGraphic()); |
|
|
Timeline timeline = AnimationUtil.getPulse(tabLabel.getGraphic(), Duration.millis(1000), tabLabel.getGraphic().getOpacity(), 0.1, 20); |
|
|
fadeTransition.setFromValue(tabLabel.getGraphic().getOpacity()); |
|
|
timeline.play(); |
|
|
fadeTransition.setToValue(0.1); |
|
|
tabLabel.setUserData(timeline); |
|
|
fadeTransition.setAutoReverse(true); |
|
|
|
|
|
fadeTransition.setCycleCount(Animation.INDEFINITE); |
|
|
|
|
|
fadeTransition.play(); |
|
|
|
|
|
tabLabel.setUserData(fadeTransition); |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
@ -1795,8 +1787,8 @@ public class AppController implements Initializable { |
|
|
private void tabLabelStopAnimation(Tab tab) { |
|
|
private void tabLabelStopAnimation(Tab tab) { |
|
|
Label tabLabel = (Label) tab.getGraphic(); |
|
|
Label tabLabel = (Label) tab.getGraphic(); |
|
|
if(tabLabel.getUserData() != null) { |
|
|
if(tabLabel.getUserData() != null) { |
|
|
FadeTransition fadeTransition = (FadeTransition)tabLabel.getUserData(); |
|
|
Animation animation = (Animation)tabLabel.getUserData(); |
|
|
fadeTransition.stop(); |
|
|
animation.stop(); |
|
|
tabLabel.setUserData(null); |
|
|
tabLabel.setUserData(null); |
|
|
tabLabel.getGraphic().setOpacity(tab.isSelected() ? TAB_LABEL_GRAPHIC_OPACITY_ACTIVE : TAB_LABEL_GRAPHIC_OPACITY_INACTIVE); |
|
|
tabLabel.getGraphic().setOpacity(tab.isSelected() ? TAB_LABEL_GRAPHIC_OPACITY_ACTIVE : TAB_LABEL_GRAPHIC_OPACITY_INACTIVE); |
|
|
} |
|
|
} |
|
@ -1929,7 +1921,7 @@ public class AppController implements Initializable { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
List<BlockTransaction> blockTransactions = new ArrayList<>(event.getBlockTransactions()); |
|
|
List<BlockTransaction> blockTransactions = new ArrayList<>(event.getBlockTransactions()); |
|
|
List<BlockTransaction> whirlpoolTransactions = event.getUnspentWhirlpoolMixTransactions(); |
|
|
List<BlockTransaction> whirlpoolTransactions = event.getUnspentConfirmingWhirlpoolMixTransactions(); |
|
|
blockTransactions.removeAll(whirlpoolTransactions); |
|
|
blockTransactions.removeAll(whirlpoolTransactions); |
|
|
|
|
|
|
|
|
if(!whirlpoolTransactions.isEmpty()) { |
|
|
if(!whirlpoolTransactions.isEmpty()) { |
|
|