Package org.pushingpixels.substance.internal.animation

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


    }
  }

  public StateTransitionTracker getTracker(final int columnIndex,
      boolean initialRollover, boolean initialSelected) {
    StateTransitionTracker tracker = stateTransitionMultiTracker
        .getTracker(columnIndex);
    if (tracker == null) {
      ButtonModel model = new DefaultButtonModel();
      model.setSelected(initialSelected);
      model.setRollover(initialRollover);
      tracker = new StateTransitionTracker(header, model);
      tracker.registerModelListeners();
      tracker.setRepaintCallback(new RepaintCallback() {
        @Override
        public TimelineCallback getRepaintCallback() {
          return new ColumnHeaderRepaintCallback(header, columnIndex);
        }
      });
View Full Code Here


        || (tabPlacement == SwingConstants.RIGHT);
  }

  private StateTransitionTracker getTracker(final int tabIndex,
      boolean initialRollover, boolean initialSelected) {
    StateTransitionTracker tracker = stateTransitionMultiTracker
        .getTracker(tabIndex);
    if (tracker == null) {
      ButtonModel model = new DefaultButtonModel();
      model.setSelected(initialSelected);
      model.setRollover(initialRollover);
      tracker = new StateTransitionTracker(tabPane, model);
      tracker.registerModelListeners();
      tracker.setRepaintCallback(new RepaintCallback() {
        @Override
        public TimelineCallback getRepaintCallback() {
          return new TabRepaintCallback(tabPane, tabIndex);
        }
      });
View Full Code Here

                  areaTooltip);
            }
          }
          if ((currRolledOver >= 0)
              && (currRolledOver < tabPane.getTabCount())) {
            StateTransitionTracker tracker = getTracker(
                currRolledOver, true,
                currRolledOver == currSelectedIndex);
            tracker.getModel().setRollover(false);
            tracker.endTransition();
          }
        }
      } else {
        if ((this.prevRolledOver >= 0)
            && (this.prevRolledOver < tabPane.getTabCount())
            && tabPane.isEnabledAt(this.prevRolledOver)) {
          StateTransitionTracker tracker = getTracker(prevRolledOver,
              true, prevRolledOver == currSelectedIndex);
          tracker.getModel().setRollover(false);
        }
        if ((currRolledOver >= 0)
            && (currRolledOver < tabPane.getTabCount())
            && tabPane.isEnabledAt(currRolledOver)) {
          StateTransitionTracker tracker = getTracker(currRolledOver,
              false, currRolledOver == currSelectedIndex);
          tracker.getModel().setRollover(true);
        }
      }
      this.prevRolledOver = currRolledOver;
    }
View Full Code Here

          && SubstanceTabbedPaneUI.this.tabPane
              .isEnabledAt(this.prevRolledOver)) {
        // only the previously rolled-over tab needs to be
        // repainted (fade-out) instead of repainting the
        // whole tab as before.
        StateTransitionTracker tracker = getTracker(prevRolledOver,
            true, prevRolledOver == currSelectedIndex);
        tracker.getModel().setRollover(false);

        if (SubstanceCoreUtilities.getTabCloseCallback(e, tabPane,
            this.prevRolledOver) != null) {
          tabPane.setToolTipTextAt(this.prevRolledOver, null);
        }
View Full Code Here

    this.transitionModel.setSelected(false);
    this.transitionModel.setPressed(false);
    this.transitionModel.setRollover(false);
    this.transitionModel.setEnabled(this.textField.isEnabled());

    this.stateTransitionTracker = new StateTransitionTracker(
        this.textField, this.transitionModel);
    this.stateTransitionTracker
        .setRepaintCallback(new StateTransitionTracker.RepaintCallback() {
          @Override
          public SwingRepaintCallback getRepaintCallback() {
View Full Code Here

    this.transitionModel.setSelected(false);
    this.transitionModel.setPressed(false);
    this.transitionModel.setRollover(false);
    this.transitionModel.setEnabled(this.textPane.isEnabled());

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

   *            Associated radio button.
   */
  public SubstanceRadioButtonUI(JToggleButton button) {
    this.button = button;
    button.setRolloverEnabled(true);
    this.stateTransitionTracker = new StateTransitionTracker(this.button,
        this.button.getModel());
  }
View Full Code Here

    item.setRolloverEnabled(true);
    return new SubstanceCheckBoxMenuItemUI((JCheckBoxMenuItem) comp);
  }

  public SubstanceCheckBoxMenuItemUI(JCheckBoxMenuItem menuItem) {
    this.stateTransitionTracker = new StateTransitionTracker(menuItem,
        menuItem.getModel());
  }
View Full Code Here

    this.transitionModel.setSelected(false);
    this.transitionModel.setPressed(false);
    this.transitionModel.setRollover(false);
    this.transitionModel.setEnabled(combo.isEnabled());

    this.stateTransitionTracker = new StateTransitionTracker(this.comboBox,
        this.transitionModel);

    this.delegate = new ComboBoxBackgroundDelegate();
  }
View Full Code Here

    return new SubstanceRadioButtonMenuItemUI((JRadioButtonMenuItem) comp);
  }

  public SubstanceRadioButtonMenuItemUI(JRadioButtonMenuItem menuItem) {
    this.stateTransitionTracker = new StateTransitionTracker(menuItem,
        menuItem.getModel());
  }
View Full Code Here

TOP

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

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.