Examples of SwingRepaintCallback


Examples of org.pushingpixels.trident.swing.SwingRepaintCallback

    // + this.currState.name() + ", NEW:" + newState.name());

    if (this.transitionTimeline != null)
      this.transitionTimeline.abort();
    this.transitionTimeline = new Timeline(this);
    this.transitionTimeline.addCallback(new SwingRepaintCallback(
        this.component));
    AnimationConfigurationManager.getInstance().configureTimeline(
        this.transitionTimeline);
    long fullDuration = this.transitionTimeline.getDuration();
    if (this.prevState == newState) {
View Full Code Here

Examples of org.pushingpixels.trident.swing.SwingRepaintCallback

    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);

    installDefaults();
    installComponents();
View Full Code Here

Examples of org.pushingpixels.trident.swing.SwingRepaintCallback

    this.iconGlowTimeline = new Timeline(this.component);
    AnimationConfigurationManager.getInstance().configureTimeline(
        this.iconGlowTimeline);
    this.iconGlowTimeline.setDuration(10 * this.iconGlowTimeline
        .getDuration());
    this.iconGlowTimeline.addCallback(new SwingRepaintCallback(component));
    this.iconGlowTimeline.setName("Icon glow");
  }
View Full Code Here

Examples of org.pushingpixels.trident.swing.SwingRepaintCallback

    this.modelStateInfo.clear();

    this.repaintCallback = new StateTransitionTracker.RepaintCallback() {
      @Override
      public SwingRepaintCallback getRepaintCallback() {
        return new SwingRepaintCallback(component);
      }
    };
    this.isAutoTrackingModelChanges = true;
    this.eventListenerList = new EventListenerList();
View Full Code Here

Examples of org.pushingpixels.trident.swing.SwingRepaintCallback

            @Override
            public SwingRepaintCallback getRepaintCallback() {
              JScrollBar scrollBar = (JScrollBar) SwingUtilities
                  .getAncestorOfClass(JScrollBar.class, b);
              if (scrollBar != null)
                return new SwingRepaintCallback(scrollBar);
              return new SwingRepaintCallback(b);
            }
          });
    }
    this.stateTransitionTracker.registerModelListeners();
    this.stateTransitionTracker.registerFocusListeners();
View Full Code Here

Examples of org.pushingpixels.trident.swing.SwingRepaintCallback

    while (c != null) {
      if (c instanceof JComponent) {
        TextComponentAware tcaui = (TextComponentAware) ((JComponent) c)
            .getClientProperty(TEXT_COMPONENT_AWARE);
        if (tcaui != null) {
          return new SwingRepaintCallback(c);
        }
      }
      c = c.getParent();
    }
    return new SwingRepaintCallback(textComponent);
  }
View Full Code Here

Examples of org.pushingpixels.trident.swing.SwingRepaintCallback

  private void trackModificationFlag() {
    this.modifiedTimeline = new Timeline(this.button);
    AnimationConfigurationManager.getInstance().configureModifiedTimeline(
        modifiedTimeline);
    this.modifiedTimeline
        .addCallback(new SwingRepaintCallback(this.button));
    this.modifiedTimeline.playLoop(RepeatBehavior.REVERSE);
  }
View Full Code Here

Examples of org.pushingpixels.trident.swing.SwingRepaintCallback

   * Installs defaults on the associated color selector component.
   */
  protected void installDefaults() {
    this.rolloverTimeline = new Timeline(this);
    this.rolloverTimeline.addPropertyToInterpolate("rollover", 0.0f, 1.0f);
    this.rolloverTimeline.addCallback(new SwingRepaintCallback(
        this.colorSelectorComponent));
    this.rolloverTimeline.setDuration(150);
  }
View Full Code Here

Examples of org.pushingpixels.trident.swing.SwingRepaintCallback

        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);

    installDefaults();
    installComponents();
View Full Code Here

Examples of org.pushingpixels.trident.swing.SwingRepaintCallback

    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);

    installDefaults();
    installComponents();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.