Package de.scoopgmbh.copper.monitoring.client.ui.adaptermonitoring.result.animation

Examples of de.scoopgmbh.copper.monitoring.client.ui.adaptermonitoring.result.animation.AdapterAnimationCreator


      public void handle(ActionEvent event) {
        if (timeline.getStatus()!=Status.RUNNING){
          // lazy init cause else annimation pane is not layouted
          timeline.getKeyFrames().clear();
          annimationPane.getChildren().clear();
          final AdapterAnimationCreator adapterAnimationCreator = new AdapterAnimationCreator(annimationPane, timeline);
          adapterAnimationCreator.create(adapterInputTable.getItems(), adapterOutputLaunchTable.getItems(),
              adapterOutputNotifyTable.getItems());
         
          slider.setMax(timeline.getTotalDuration().toMillis());
         
          Bindings.unbindBidirectional(positionLabel.textProperty(), slider.valueProperty());
          positionLabel.textProperty().bindBidirectional(slider.valueProperty(), new StringConverter<Number>() {
            private SimpleDateFormat simpleDateFormat = new SimpleDateFormat(DATETIME_FORMAT);
           
            @Override
            public Number fromString(String string) {
              return null;
            }
           
            @Override
            public String toString(Number object) {
              return simpleDateFormat.format(new Date(object.longValue()+ adapterAnimationCreator.getMin()));
            }
          });
          timeline.jumpTo(Duration.ZERO);
          timeline.play();
        } else{
View Full Code Here

TOP

Related Classes of de.scoopgmbh.copper.monitoring.client.ui.adaptermonitoring.result.animation.AdapterAnimationCreator

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.