Package org.jvnet.lafwidget.animation

Examples of org.jvnet.lafwidget.animation.FadeTracker


          // fix for defect 223 (min and max on the model are the
          // same).
          int pixelDelta = (span <= 0) ? 0 : (currValue - oldValue)
              * totalPixels / span;

          FadeTracker fadeTracker = FadeTracker.getInstance();
          if (!fadeTracker.isTracked(progressBar,
              PROGRESS_BAR_VALUE_CHANGED)) {
            progressBar.putClientProperty(PROGRESS_BAR_FROM,
                progressBar.getClientProperty(PROGRESS_BAR_TO));
          }
          progressBar.putClientProperty(PROGRESS_BAR_TO, progressBar
View Full Code Here


    int amountFull = 0;
    BoundedRangeModel model = progressBar.getModel();

    long span = model.getMaximum() - model.getMinimum();
    double currentValue = model.getValue();
    FadeTracker fadeTracker = FadeTracker.getInstance();
    if (fadeTracker.isTracked(progressBar, PROGRESS_BAR_VALUE_CHANGED)) {
      double fade = fadeTracker.getFade(progressBar,
          PROGRESS_BAR_VALUE_CHANGED);
      int from = (Integer) progressBar
          .getClientProperty(PROGRESS_BAR_FROM);
      int to = (Integer) progressBar.getClientProperty(PROGRESS_BAR_TO);
      currentValue = from + (fade * (to - from));
View Full Code Here

    Graphics2D graphics = (Graphics2D) g.create();

    float cyclePos = 1.0f;

    FadeTracker fadeTracker = FadeTracker.getInstance();
    boolean isFocusAnimated = fadeTracker.isTracked(c, FadeKind.FOCUS);

    float radius = this.radiusScaleFactor
        * SubstanceSizeUtils
            .getClassicButtonCornerRadius(SubstanceSizeUtils
                .getComponentFontSize(c));

    ComponentState state = isEnabled ? ComponentState.DEFAULT
        : ComponentState.DISABLED_UNSELECTED;
    SubstanceColorScheme borderColorScheme = SubstanceColorSchemeUtilities
        .getColorScheme(c, ColorSchemeAssociationKind.BORDER, state);
    SubstanceColorScheme borderColorScheme2 = borderColorScheme;
    float finalAlpha = alpha;

    if (isFocusAnimated || c.hasFocus()) {
      if (isFocusAnimated) {
        cyclePos = fadeTracker.getFade(c, FadeKind.FOCUS);
      }
      borderColorScheme2 = SubstanceColorSchemeUtilities.getColorScheme(
          c, ColorSchemeAssociationKind.BORDER,
          ComponentState.SELECTED);
    } else {
View Full Code Here

TOP

Related Classes of org.jvnet.lafwidget.animation.FadeTracker

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.