Examples of AnimationListener


Examples of android.view.animation.Animation.AnimationListener

    View list = getListView();
    int cx = root.getWidth() / 2;
    int cy = root.getHeight() / 2;
    Animation animation = new Flip3dAnimation(list, edit, cx, cy, true);
    animation.setAnimationListener(new AnimationListener() {
      @Override
      public void onAnimationEnd(Animation animation) {
        hideToast();
        if (0 == secretsList.getCount()) {
          showToast(getText(R.string.edit_instructions));
View Full Code Here

Examples of android.view.animation.Animation.AnimationListener

    View list = getListView();
    int cx = root.getWidth() / 2;
    int cy = root.getHeight() / 2;
    Animation animation = new Flip3dAnimation(list, edit, cx, cy, false);
    animation.setAnimationListener(new AnimationListener() {
      @Override
      public void onAnimationEnd(Animation animation) {
        if (AdapterView.INVALID_POSITION != editingPosition) {
          ListView listView = getListView();
          listView.requestFocus();
View Full Code Here

Examples of com.ardor3d.extension.animation.skeletal.AnimationListener

                }
            }
        });

        // add callback for our UI
        manager.findClipInstance("skeleton.punch").addAnimationListener(new AnimationListener() {
            public void animationFinished(final AnimationClipInstance source) {
                punchButton.setEnabled(true);
            }
        });
    }
View Full Code Here

Examples of com.ardor3d.extension.animation.skeletal.AnimationListener

        // kick things off by setting our starting states
        manager.getBaseAnimationLayer().setCurrentState("walk_anim", true);

        // add callback for our UI
        manager.findClipInstance("skeleton.punch").addAnimationListener(new AnimationListener() {
            public void animationFinished(final AnimationClipInstance source) {
                punchButton.setEnabled(true);
            }
        });
    }
View Full Code Here

Examples of com.vlsolutions.swing.docking.animation.AnimationListener

         newBounds = new Rectangle(bounds.x,bounds.y, getWidth(), 20);
         animSpeed = getHeight()/ 800f; //  pix / sec
      }
     
      ComponentAnimator canim = new ComponentAnimator(this, bounds, newBounds, animSpeed);
      canim.addAnimationListener(new AnimationListener() {
        public void animation(AnimationEvent e) {
          if (e.getState() == AnimationEvent.ANIMATION_END){
            gripperListener.resetBorder();
            finishAnimation(collapsed);
          }
View Full Code Here

Examples of org.noos.xing.mydoggy.plaf.ui.animation.AnimationListener

                    valueAdjusting = false;
                }
            }
        });

        floatingAnimation.addAnimationListener(new AnimationListener() {
            public void onFinished() {
                if (lister) {
                    assignFocus();
                    lister = false;
                }
View Full Code Here

Examples of org.noos.xing.mydoggy.plaf.ui.animation.AnimationListener

            }
        });
        addPropertyChangeListener("enabled", new TypeEnabledPropertyChangeListener());

        descriptor.getTypeDescriptor(ToolWindowType.FLOATING).addPropertyChangeListener(this);
        floatingAnimation.addAnimationListener(new AnimationListener() {
            public void onFinished() {
                if (assignFocusOnAnimFinished) {
                    dockedContainer.assignFocus();
                    assignFocusOnAnimFinished = false;
                }
View Full Code Here

Examples of org.noos.xing.mydoggy.plaf.ui.animation.AnimationListener

        // Init floating type descriptor properties listeners
        PropertyChangeEventSource floatingTypeDescriptorSource = (PropertyChangeEventSource) descriptor.getToolWindow().getTypeDescriptor(FloatingTypeDescriptor.class);
        floatingTypeDescriptorSource.addPlafPropertyChangeListener(propertyChangeListener);

        // Animation listener
        floatingAnimation.addAnimationListener(animationListener = new AnimationListener() {
            public void onFinished() {
                if (assignFocusOnAnimFinished) {
                    descriptor.assignFocus();
                    assignFocusOnAnimFinished = false;
                }
View Full Code Here

Examples of org.noos.xing.mydoggy.plaf.ui.animation.AnimationListener

                },
                balloonTip,
                SwingUtil.getFloat("RepresentativeAnchorBalloonTipUI.animation.alpha", 0.15f),
                SwingUtil.getInt("RepresentativeAnchorBalloonTipUI.animation.duration", 500)
        );
        transparencyAnimation.addAnimationListener(new AnimationListener() {
            public void onFinished() {
                if (transparencyAnimation.getAnimationDirection() == AbstractAnimation.Direction.OUTGOING)
                    balloonTip.setVisible(false);
            }
        });
View Full Code Here

Examples of org.noos.xing.mydoggy.plaf.ui.animation.AnimationListener

                    valueAdjusting = false;
                }
            }
        });

        floatingAnimation.addAnimationListener(new AnimationListener() {
            public void onFinished() {
                if (assignFocusOnAnimFinished) {
                    dockedContainer.assignFocus();
                    assignFocusOnAnimFinished = false;
                }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.