Package org.pushingpixels.trident

Examples of org.pushingpixels.trident.Timeline$Chain


                          list, ColorSchemeAssociationKind.HIGHLIGHT,
                          prevState);
                }
          }

          Timeline runningTimeline = ui.getRunningTimeline(index);
          Color color = SubstanceColorUtilities
          .getInterpolatedForegroundColor(list, index, scheme, state,
              prevScheme, prevState, runningTimeline);

          // System.out.println("[row " + index + "] - " + prevState.name()
View Full Code Here


                            list, ColorSchemeAssociationKind.HIGHLIGHT,
                            prevState);
                }
            }

            Timeline runningTimeline = ui.getRunningTimeline(index);
            Color color = SubstanceColorUtilities
                    .getInterpolatedForegroundColor(list, index, scheme, state,
                            prevScheme, prevState, runningTimeline);

            // System.out.println("[row " + index + "] - " + prevState.name()
View Full Code Here

     * @param window
     * @param fadeOutDuration
     */
    private static void fadeOutAndEnd(final Window window, int fadeOutDuration,
            final boolean exit) {
        Timeline dispose = new Timeline(new WindowFader(window));
        dispose.addPropertyToInterpolate("opacity", 1.0f,
//                AWTUtilitiesWrapper.getWindowOpacity(window),
                0.0f);
        dispose.addCallback(new UIThreadTimelineCallbackAdapter() {
            @Override
            public void onTimelineStateChanged(TimelineState oldState,
                    TimelineState newState, float durationFraction,
                    float timelinePosition) {
                if (newState == TimelineState.DONE) {
                    if (exit) {
                        Runtime.getRuntime().exit(0);
                    } else {
                        window.dispose();
                    }
                }
            }
        });
        dispose.setDuration(fadeOutDuration);
        dispose.play();
    }
View Full Code Here

    public HUDAnimator(HUDObject animatee, String property, PropertyInterpolator interpolator,
            Object from, Object to, long duration) {
        this.animatee = animatee;
        try {
            timeline = new Timeline(animatee);
        } catch (Exception e) {
            logger.warning("failed to correctly initialize trident library");
        }
        timeline.addPropertyToInterpolate(property, from, to, interpolator);
        timeline.setDuration(duration);
View Full Code Here

    public HUDAnimator(HUDView2D animateeView, String property, PropertyInterpolator interpolator,
            Object from, Object to, long duration) {
        this.animateeView = animateeView;
        try {
            timeline = new Timeline(animateeView);
        } catch (Exception e) {
            logger.warning("failed to correctly initialize trident library");
        }
        timeline.addPropertyToInterpolate(property, from, to, interpolator);
        timeline.setDuration(duration);
View Full Code Here

        SubstanceLookAndFeel.COLORIZATION_FACTOR, Double.valueOf(1.0));
    this.add(instructional, BorderLayout.NORTH);

    // create a looping animation to change the label foreground
    // from black to blue and back to draw some attention.
    Timeline instructionalTimeline = new Timeline(instructional);
    instructionalTimeline.addPropertyToInterpolate("foreground",
        Color.black, Color.blue);
    instructionalTimeline.setDuration(1000);
    instructionalTimeline.playLoop(RepeatBehavior.REVERSE);

    FormLayout lm = new FormLayout("right:pref, 4dlu, fill:pref:grow", "");
    DefaultFormBuilder builder = new DefaultFormBuilder(lm,
        new ScrollablePanel());
View Full Code Here

    return new Rectangle(margin, margin, barRectWidth, barRectHeight);
  }

  @Override
  protected void startAnimationTimer() {
    this.indeterminateLoopTimeline = new Timeline(this);
    Integer cycleDuration = UIManager.getInt("ProgressBar.cycleTime");
    if (cycleDuration == null)
      cycleDuration = 1000;
    this.indeterminateLoopTimeline.setDuration(cycleDuration);
    this.indeterminateLoopTimeline.addCallback(new TimelineCallback() {
View Full Code Here

          * totalPixels / span;

      if (displayTimeline != null) {
        displayTimeline.abort();
      }
      displayTimeline = new Timeline(progressBar);
      displayTimeline.addPropertyToInterpolate(Timeline
          .<Integer> property("displayedValue").from(displayedValue)
          .to(currValue).setWith(new PropertySetter<Integer>() {
            @Override
            public void set(Object obj, String fieldName,
View Full Code Here

    }
    return tracker;
  }

  private void trackTabModification(int tabIndex, Component tabComponent) {
    Timeline modifiedTimeline = new Timeline(tabPane);
    AnimationConfigurationManager.getInstance().configureModifiedTimeline(
        modifiedTimeline);
    modifiedTimeline.addCallback(new TabRepaintCallback(tabPane, tabIndex));
    modifiedTimeline.playLoop(RepeatBehavior.REVERSE);
    modifiedTimelines.put(tabComponent, modifiedTimeline);
  }
View Full Code Here

            boolean wasModified = Boolean.TRUE.equals(oldValue);
            boolean isModified = Boolean.TRUE.equals(newValue);

            if (wasModified) {
              if (!isModified) {
                Timeline modifiedTimeline = modifiedTimelines
                    .get(tabComponent);
                modifiedTimeline.cancel();
                modifiedTimelines.remove(tabComponent);
              }
            } else {
              if (isModified) {
                int tabIndex = SubstanceTabbedPaneUI.this.tabPane
View Full Code Here

TOP

Related Classes of org.pushingpixels.trident.Timeline$Chain

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.