Package org.pushingpixels.substance.internal.animation

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


        button instanceof JMenuItem);
    ComponentState prevState = (state == ComponentState.ACTIVE) ? state
        : SubstanceCoreUtilities.getPrevComponentState(button);
    float transitionPosition = -1.0f;
    if (button.getUI() instanceof TransitionAwareUI) {
      TransitionAwareUI transitionAwareUI = (TransitionAwareUI) button
          .getUI();
      StateTransitionModel stateTransitionModel = transitionAwareUI
          .getTransitionModel();
      state = stateTransitionModel.getCurrState();
      prevState = stateTransitionModel.getPrevState();
      transitionPosition = stateTransitionModel.getTransitionPosition();
    }
View Full Code Here


        .getTextComponentForTransitions(c);

    if (componentForTransitions != null) {
      ComponentUI ui = componentForTransitions.getUI();
      if (ui instanceof TransitionAwareUI) {
        TransitionAwareUI trackable = (TransitionAwareUI) ui;
        StateTransitionTracker stateTransitionTracker = trackable
            .getTransitionTracker();
        StateTransitionTracker.ModelStateInfo modelStateInfo = stateTransitionTracker
            .getModelStateInfo();
        Map<ComponentState, StateTransitionTracker.StateContributionInfo> activeStates = modelStateInfo
            .getStateContributionMap();
View Full Code Here

   */
  public static BufferedImage getFullAlphaBackground(AbstractButton button,
      ButtonModel model, SubstanceButtonShaper shaper,
      SubstanceFillPainter fillPainter,
      SubstanceBorderPainter borderPainter, int width, int height) {
    TransitionAwareUI transitionAwareUI = (TransitionAwareUI) button
        .getUI();
    StateTransitionTracker.ModelStateInfo modelStateInfo = transitionAwareUI
        .getTransitionTracker().getModelStateInfo();

    ComponentState currState = modelStateInfo.getCurrModelState();

    // ComponentState prevState = stateTransitionModel.getPrevModelState();
View Full Code Here

        .getBorderPainter(button);

    BufferedImage bgImage = getFullAlphaBackground(button, button
        .getModel(), shaper, fillPainter, borderPainter, width, height);

    TransitionAwareUI transitionAwareUI = (TransitionAwareUI) button
        .getUI();
    StateTransitionTracker stateTransitionTracker = transitionAwareUI
        .getTransitionTracker();
    StateTransitionTracker.ModelStateInfo modelStateInfo = stateTransitionTracker
        .getModelStateInfo();
    Map<ComponentState, StateTransitionTracker.StateContributionInfo> activeStates = modelStateInfo
        .getStateContributionMap();
View Full Code Here

   * @return Button background.
   */
  public static BufferedImage getFullAlphaBackground(JComboBox combo,
      ButtonModel model, SubstanceFillPainter fillPainter,
      SubstanceBorderPainter borderPainter, int width, int height) {
    TransitionAwareUI transitionAwareUI = (TransitionAwareUI) combo.getUI();
    StateTransitionTracker.ModelStateInfo modelStateInfo = transitionAwareUI
        .getTransitionTracker().getModelStateInfo();
    ComponentState currState = modelStateInfo.getCurrModelState();

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

        .getBorderPainter(combo);

    BufferedImage bgImage = getFullAlphaBackground(combo, comboModel,
        fillPainter, borderPainter, width, height);

    TransitionAwareUI transitionAwareUI = (TransitionAwareUI) combo.getUI();
    StateTransitionTracker stateTransitionTracker = transitionAwareUI
        .getTransitionTracker();
    StateTransitionTracker.ModelStateInfo modelStateInfo = stateTransitionTracker
        .getModelStateInfo();
    Map<ComponentState, StateTransitionTracker.StateContributionInfo> activeStates = modelStateInfo
        .getStateContributionMap();
View Full Code Here

   * @return Icon to paint.
   */
  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

   *            Mnemonic index.
   */
  public static void paintText(Graphics g, AbstractButton button,
      ButtonModel model, Rectangle textRect, String text,
      int mnemonicIndex) {
    TransitionAwareUI transitionAwareUI = (TransitionAwareUI) button
        .getUI();
    StateTransitionTracker stateTransitionTracker = transitionAwareUI
        .getTransitionTracker();

    float buttonAlpha = SubstanceColorSchemeUtilities.getAlpha(button,
        ComponentState.getState(button));

View Full Code Here

        .getTextComponentForTransitions(comp);

    if (componentForTransitions != null) {
      ComponentUI ui = componentForTransitions.getUI();
      if (ui instanceof TransitionAwareUI) {
        TransitionAwareUI trackable = (TransitionAwareUI) ui;
        StateTransitionTracker stateTransitionTracker = trackable
            .getTransitionTracker();

        Color outerTextComponentBorderColor = SubstanceColorUtilities
            .getOuterTextComponentBorderColor(backgroundFillColor);
        outerTextComponentBorderColor = SubstanceColorUtilities
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

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.