Package org.pushingpixels.substance.internal.animation

Examples of org.pushingpixels.substance.internal.animation.StateTransitionTracker$StateContributionInfo


        } catch (Exception exc) {
          this.thumbRectField = null;
        }
      }

      this.stateTransitionTracker = new StateTransitionTracker(
          this.slider, this.transitionModel);
    }
View Full Code Here


      }

      JSlider slider = (JSlider) c;
      TransitionAwareUI transitionAwareUI = (TransitionAwareUI) slider
          .getUI();
      StateTransitionTracker stateTransitionTracker = transitionAwareUI
          .getTransitionTracker();
      Icon iconToDraw = getIcon(slider, stateTransitionTracker);

      iconToDraw.paintIcon(c, g, x, y);
    }
View Full Code Here

      }

      JSlider slider = (JSlider) c;
      TransitionAwareUI transitionAwareUI = (TransitionAwareUI) slider
          .getUI();
      StateTransitionTracker stateTransitionTracker = transitionAwareUI
          .getTransitionTracker();
      Icon iconToDraw = getIcon(slider, stateTransitionTracker);

      iconToDraw.paintIcon(c, g, x, y);
    }
View Full Code Here

      }

      JSlider slider = (JSlider) c;
      TransitionAwareUI transitionAwareUI = (TransitionAwareUI) slider
          .getUI();
      StateTransitionTracker stateTransitionTracker = transitionAwareUI
          .getTransitionTracker();
      Icon iconToDraw = getIcon(slider, stateTransitionTracker);

      iconToDraw.paintIcon(c, g, x, y);
    }
View Full Code Here

    SubstanceButtonShaper shaper = SubstanceCoreUtilities
        .getButtonShaper(button);

    TransitionAwareUI transitionAwareUI = (TransitionAwareUI) button
        .getUI();
    StateTransitionTracker stateTransitionTracker = transitionAwareUI
        .getTransitionTracker();
    StateTransitionTracker.ModelStateInfo modelStateInfo = stateTransitionTracker
        .getModelStateInfo();

    ComponentState currState = modelStateInfo.getCurrModelState();
    SubstanceColorScheme baseFillScheme = SubstanceColorSchemeUtilities
        .getColorScheme(button, currState);
View Full Code Here

    if (SubstanceCoreUtilities.isButtonNeverPainted(this)) {
      return;
    }

    TransitionAwareUI transitionAwareUI = (TransitionAwareUI) this.getUI();
    StateTransitionTracker stateTransitionTracker = transitionAwareUI
        .getTransitionTracker();
    StateTransitionTracker.ModelStateInfo modelStateInfo = stateTransitionTracker
        .getModelStateInfo();
    Map<ComponentState, StateTransitionTracker.StateContributionInfo> activeStates = modelStateInfo
        .getStateContributionMap();

    ComponentState currState = modelStateInfo.getCurrModelState();
    float extraAlpha = stateTransitionTracker.getActiveStrength();

    if (currState == ComponentState.DISABLED_UNSELECTED)
      extraAlpha = 0.0f;

    if (extraAlpha == 0.0f)
View Full Code Here

    if (SubstanceCoreUtilities.isButtonNeverPainted(this)) {
      return;
    }

    TransitionAwareUI transitionAwareUI = (TransitionAwareUI) this.getUI();
    StateTransitionTracker stateTransitionTracker = transitionAwareUI
        .getTransitionTracker();
    StateTransitionTracker.ModelStateInfo modelStateInfo = stateTransitionTracker
        .getModelStateInfo();
    Map<ComponentState, StateTransitionTracker.StateContributionInfo> activeStates = modelStateInfo
        .getStateContributionMap();

    ComponentState currState = modelStateInfo.getCurrModelState();
    float extraAlpha = stateTransitionTracker.getActiveStrength();

    if (currState == ComponentState.DISABLED_UNSELECTED)
      extraAlpha = 0.0f;

    if (extraAlpha == 0.0f)
View Full Code Here

            icon.paintIcon(menuItem, g2d, mli.iconRect.x,
                mli.iconRect.y);
          } else {
            TransitionAwareUI transitionAwareUI = (TransitionAwareUI) menuItem
                .getUI();
            StateTransitionTracker stateTransitionTracker = transitionAwareUI
                .getTransitionTracker();
            float rolloverAmount = Math
                .max(
                    stateTransitionTracker
                        .getFacetStrength(ComponentStateFacet.ROLLOVER),
                    stateTransitionTracker
                        .getFacetStrength(ComponentStateFacet.ARM));
            if (rolloverAmount > 0) {
              themed.paintIcon(menuItem, g2d, mli.iconRect.x,
                  mli.iconRect.y);
              g2d.setComposite(LafWidgetUtilities
View Full Code Here

    if (this.menuItem == null)
      return null;

    TransitionAwareUI transitionAwareUI = (TransitionAwareUI) this.menuItem
        .getUI();
    StateTransitionTracker stateTransitionTracker = transitionAwareUI
        .getTransitionTracker();

    StateTransitionTracker.ModelStateInfo modelStateInfo = stateTransitionTracker
        .getModelStateInfo();
    Map<ComponentState, StateTransitionTracker.StateContributionInfo> activeStates = modelStateInfo
        .getStateContributionMap();

    SubstanceFillPainter fillPainter = SubstanceCoreUtilities
        .getFillPainter(this.menuItem);
    SubstanceBorderPainter borderPainter = SubstanceCoreUtilities
        .getBorderPainter(this.menuItem);
    ComponentState currState = modelStateInfo.getCurrModelState();

    SubstanceColorScheme baseFillColorScheme = SubstanceColorSchemeUtilities
        .getColorScheme(this.menuItem, ColorSchemeAssociationKind.FILL,
            currState);
    SubstanceColorScheme baseMarkColorScheme = SubstanceColorSchemeUtilities
        .getColorScheme(this.menuItem, ColorSchemeAssociationKind.MARK,
            currState);
    SubstanceColorScheme baseBorderColorScheme = SubstanceColorSchemeUtilities
        .getColorScheme(this.menuItem,
            ColorSchemeAssociationKind.BORDER, currState);
    float visibility = stateTransitionTracker
        .getFacetStrength(ComponentStateFacet.SELECTION);
    boolean isCheckMarkFadingOut = !currState
        .isFacetActive(ComponentStateFacet.SELECTION);

    int fontSize = SubstanceSizeUtils.getComponentFontSize(this.menuItem);
View Full Code Here

    // if (comp instanceof AbstractButton) {
    // AbstractButton ab = (AbstractButton) comp;

    // TransitionAwareUI transitionAwareUI = (TransitionAwareUI) ab
    // .getUI();
    StateTransitionTracker stateTransitionTracker = transitionAwareUI
        .getTransitionTracker();
    StateTransitionTracker.ModelStateInfo modelStateInfo = stateTransitionTracker
        .getModelStateInfo();

    ComponentState currState = modelStateInfo.getCurrModelState();
    Map<ComponentState, StateTransitionTracker.StateContributionInfo> activeStates = modelStateInfo
        .getStateContributionMap();
View Full Code Here

TOP

Related Classes of org.pushingpixels.substance.internal.animation.StateTransitionTracker$StateContributionInfo

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.