Package org.pushingpixels.substance.internal.animation

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


        : 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();
    }

    // special case for enabled buttons with no background -
    // always use the color scheme for the default state.
    if (SubstanceCoreUtilities.isButtonNeverPainted(button)
View Full Code Here


   *            If <code>true</code>, the button will have the rollover
   *            listener installed on it.
   */
  public void installListeners(final AbstractButton b,
      boolean toInstallRolloverListener) {
    this.stateTransitionModel = new StateTransitionModel(b, b.getModel());
    if (toInstallRolloverListener) {
      this.substanceButtonListener = new RolloverButtonListener(b,
          this.stateTransitionModel);
      b.addMouseListener(this.substanceButtonListener);
      b.addMouseMotionListener(this.substanceButtonListener);
View Full Code Here

   * @seejavax.swing.plaf.basic.BasicButtonUI#installListeners(javax.swing.
   * AbstractButton)
   */
  @Override
  protected void installListeners(final AbstractButton b) {
    this.stateTransitionModel = new StateTransitionModel(b, b.getModel());

    super.installListeners(b);

    substancePropertyListener = new PropertyChangeListener() {
      public void propertyChange(PropertyChangeEvent evt) {
View Full Code Here

TOP

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

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.