Package org.jvnet.lafwidget.animation

Examples of org.jvnet.lafwidget.animation.FadeState


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

    SubstanceColorScheme prevScheme = currScheme;

    FadeState fadeState = SubstanceFadeUtilities.getFadeState(button,
        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(
              button,
              (button 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(button,
        currState);
    float prevAlpha = SubstanceColorSchemeUtilities.getAlpha(button,
View Full Code Here

TOP

Related Classes of org.jvnet.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.