Package org.pushingpixels.substance.internal.animation

Examples of org.pushingpixels.substance.internal.animation.TransitionAwareUI


      if (!(g instanceof Graphics2D)) {
        return;
      }

      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


      if (!(g instanceof Graphics2D)) {
        return;
      }

      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

      return;

    SubstanceButtonShaper shaper = SubstanceCoreUtilities
        .getButtonShaper(button);

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

    ComponentState currState = modelStateInfo.getCurrModelState();
View Full Code Here

  protected void paintBorder(Graphics g) {
    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();
View Full Code Here

  protected void paintBorder(Graphics g) {
    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();
View Full Code Here

              || model.isSelected();
          if (useRegularVersion) {
            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),
View Full Code Here

   */
  private Icon getIconToPaint() {
    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
View Full Code Here

   */
  public static void paintHighlights(Graphics g, JMenuItem menuItem,
      float borderAlpha) {
    Graphics2D graphics = (Graphics2D) g.create();

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

    ComponentState currState = modelStateInfo
View Full Code Here

TOP

Related Classes of org.pushingpixels.substance.internal.animation.TransitionAwareUI

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.