Package org.pushingpixels.lafwidget.animation

Examples of org.pushingpixels.lafwidget.animation.FadeState


      ComponentState state, SubstanceColorScheme prevColorScheme,
      ComponentState prevState, FadeKind... kinds) {
    // SubstanceColorScheme colorScheme2 = colorScheme;
    float cyclePos = state.getCyclePosition();

    FadeState fadeState = SubstanceFadeUtilities.getFadeState(comp,
        componentId, kinds);
    if (fadeState != null) {
      cyclePos = fadeState.getFadePosition();
      if (!fadeState.isFadingIn())
        cyclePos = 1.0f - cyclePos;
    }

    // System.out.println(colorScheme.getDisplayName() + ":"
    // + prevColorScheme.getDisplayName() + ":" + cyclePos);
View Full Code Here


                && currState.isKindActive(FadeKind.ROLLOVER) ? ColorSchemeAssociationKind.HIGHLIGHT
                : ColorSchemeAssociationKind.MARK, currState);

    SubstanceColorScheme prevScheme = currScheme;

    FadeState fadeState = SubstanceFadeUtilities.getFadeState(
        this.component, FadeKind.ROLLOVER, FadeKind.SELECTION,
        FadeKind.PRESS, FadeKind.ARM);
    if (fadeState != null) {
      // Use HIGHLIGHT for rollover menus (arrow icons)
      // and MARK for the rest
      prevScheme = SubstanceColorSchemeUtilities
          .getColorScheme(
              this.component,
              (this.component instanceof JMenu)
                  && prevState
                      .isKindActive(FadeKind.ROLLOVER) ? ColorSchemeAssociationKind.HIGHLIGHT
                  : ColorSchemeAssociationKind.MARK,
              prevState);
      cyclePos = fadeState.getFadePosition();
      if (!fadeState.isFadingIn())
        cyclePos = 1.0f - cyclePos;
    }
    float currAlpha = SubstanceColorSchemeUtilities.getAlpha(
        this.component, currState);
    float prevAlpha = SubstanceColorSchemeUtilities.getAlpha(
View Full Code Here

TOP

Related Classes of org.pushingpixels.lafwidget.animation.FadeState

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.