Package org.pushingpixels.trident

Examples of org.pushingpixels.trident.Timeline$UISetter


  @Override
  public void installUI(JComponent c) {
        //noinspection unchecked
        this.ribbonBand = (AbstractRibbonBand<AbstractBandControlPanel>) c;

    this.rolloverTimeline = new Timeline(this);
    this.rolloverTimeline.addPropertyToInterpolate("rolloverAmount", 0.0f,
        1.0f);
    this.rolloverTimeline.addCallback(new SwingRepaintCallback(
        this.ribbonBand));
    this.rolloverTimeline.setDuration(250);
View Full Code Here


    createTimeline().play();
  }

  private Timeline createTimeline() {
    AnimationProgressHandler handler = new AnimationProgressHandler(this);
    Timeline t = handler.timeline;
    this.animHandlers.add(handler);
    return t;
  }
View Full Code Here

    private ScrollingText scrolling;

    private AnimationProgressHandler(final ScrollingText scrolling) {
      this.scrolling = scrolling;
      // prepare the timeline
      this.timeline = new Timeline(this);
      this.timeline.addPropertyToInterpolate("animProgress", 0f, 1f);
      this.timeline.setDuration(scrolling.scrollTextUtils.getDuration());
      this.timeline.addCallback(createCallBack(this.timeline));
    }
View Full Code Here

  public void startAnim() {
    if (timeline != null) {
      timeline.cancel();
    }
    timeline = new Timeline(this);
    timeline.setDuration(500);
    timeline.addPropertyToInterpolate("animProgress", 0f, 1f);
    timeline.play();
  }
View Full Code Here

  public void startAnim() {
    if (timeline != null) {
      timeline.cancel();
    }
    timeline = new Timeline(this);
    timeline.addPropertyToInterpolate("animProgress", 0f, 1f);
    timeline.play();
  }
View Full Code Here

   */
  @Override
  public void installUI(JComponent c) {
    this.ribbonBand = (AbstractRibbonBand) c;

    this.rolloverTimeline = new Timeline(this);
    this.rolloverTimeline.addPropertyToInterpolate("rolloverAmount", 0.0f,
        1.0f);
    this.rolloverTimeline.addCallback(new SwingRepaintCallback(
        this.ribbonBand));
    this.rolloverTimeline.setDuration(250);
View Full Code Here

    private Timeline progressTimeline;
    private Timeline swingProgressTimeline;

    private void setup() {
        progressTimeline = new Timeline(this);
  progressTimeline.addPropertyToInterpolate("position", getStartX(), getEndX());
  KeyValues<Float> alphaValues = KeyValues.create(0.0f, 1.0f, 1.0f, 0.0f);
  KeyTimes alphaTimes = new KeyTimes(0.0f, 0.3f, 0.7f, 1.0f);
  progressTimeline.addPropertyToInterpolate("alpha", new KeyFrames<Float>(alphaValues, alphaTimes));
  progressTimeline.setDuration(1500);
View Full Code Here

TOP

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

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.