Examples of addAnimationListener()


Examples of com.intellij.openapi.graph.anim.AnimationPlayer.addAnimationListener()

      LayoutMorpher morpher = GraphManager.getGraphManager().createLayoutMorpher(view, layout);
      morpher.setPreferredDuration(800);
      morpher.setKeepZoomFactor(true);

      final AnimationPlayer player = GraphManager.getGraphManager().createAnimationPlayer();
      player.addAnimationListener(view);
      player.setFps(1200);
      player.animate(AnimationFactory.Statics.createEasedAnimation(morpher));

      GraphViewUtil.updateWorldRect(view);
    }
View Full Code Here

Examples of com.vlsolutions.swing.docking.animation.ComponentAnimator.addAnimationListener()

         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 de.anormalmedia.vividswinganimations.Animation.addAnimationListener()

        Animation windowFadeAnimation = WindowFadeFactory.createWindowFadeAnimation( this, 0f );
        windowFadeAnimation.setStartOffset( 3000 );
        windowFadeAnimation.setDuration( 1000 );
        defaultAnimationExecutor.addAnimation( windowFadeAnimation );

        windowFadeAnimation.addAnimationListener( new AnimationAdapter() {

            @Override
            public void animationFinished() {
                Point p = DemoFrame.this.getLocation();
                p.x = frameBounds.x + frameBounds.width - DemoFrame.this.getWidth();
View Full Code Here

Examples of de.anormalmedia.vividswinganimations.Animation.addAnimationListener()

        windowFadeAnimation = WindowFadeFactory.createWindowFadeAnimation( this, 0f );
        windowFadeAnimation.setStartOffset( 16000 );
        windowFadeAnimation.setDuration( 8000 );
        defaultAnimationExecutor.addAnimation( windowFadeAnimation );

        windowFadeAnimation.addAnimationListener( new AnimationAdapter() {

            @Override
            public void animationFinished() {
                DemoFrame.this.dispose();
            }
View Full Code Here

Examples of de.anormalmedia.vividswinganimations.panels.SlidePanelAnimation.addAnimationListener()

        SlidePanelAnimation slideOut = new SlidePanelAnimation( slidePanel, 0f );
        slideOut.setInterpolator( new AccelerateInterpolator() );
        slideOut.setStartOffset( 10000 );
        slideOut.setDuration( 1000 );
        slideOut.addAnimationListener( new AnimationAdapter() {
            @Override
            public void animationFinished() {
                slidePanel.setDirection( DIRECTION.fromRight );
                slidePanel.setBounds( contentPane.getWidth() - 200, 0, 200, contentPane.getHeight() );
                super.animationFinished();
View Full Code Here

Examples of de.anormalmedia.vividswinganimations.panels.SlidePanelAnimation.addAnimationListener()

        slideOut = new SlidePanelAnimation( slidePanel, 0f );
        slideOut.setInterpolator( new AccelerateInterpolator() );
        slideOut.setStartOffset( 16000 );
        slideOut.setDuration( 1000 );
        slideOut.addAnimationListener( new AnimationAdapter() {
            @Override
            public void animationFinished() {
                slidePanel.setDirection( DIRECTION.fromTop );
                slidePanel.setBounds( 0, 0, contentPane.getWidth(), 200 );
                super.animationFinished();
View Full Code Here

Examples of de.anormalmedia.vividswinganimations.panels.SlidePanelAnimation.addAnimationListener()

        slideOut = new SlidePanelAnimation( slidePanel, 0f );
        slideOut.setInterpolator( new AccelerateInterpolator() );
        slideOut.setStartOffset( 22000 );
        slideOut.setDuration( 1000 );
        slideOut.addAnimationListener( new AnimationAdapter() {
            @Override
            public void animationFinished() {
                slidePanel.setDirection( DIRECTION.fromBottom );
                slidePanel.setBounds( 0, contentPane.getHeight() - 200, contentPane.getWidth(), 200 );
                super.animationFinished();
View Full Code Here

Examples of de.anormalmedia.vividswinganimations.panels.SlidePanelAnimation.addAnimationListener()

        slideOut = new SlidePanelAnimation( slidePanel, 0f );
        slideOut.setInterpolator( new AccelerateInterpolator() );
        slideOut.setStartOffset( 28000 );
        slideOut.setDuration( 1000 );
        slideOut.addAnimationListener( new AnimationAdapter() {
            @Override
            public void animationFinished() {
                DemoPanels.this.dispose();
            }
        } );
View Full Code Here

Examples of org.mt4j.util.animation.Animation.addAnimationListener()

    list.addListElement(this.createListCell("Blue Marble", font, new BlueMarble(), cellWidth, cellHeight, cellFillColor, cellPressedFillColor));
    list.addListElement(this.createListCell("Daily Planet", font, new DailyPlanet(), cellWidth, cellHeight, cellFillColor, cellPressedFillColor));
   
    MultiPurposeInterpolator in = new MultiPurposeInterpolator(0,170, 700, 0.1f, 0.7f, 1);
    final Animation slideOut = new Animation("slide out animation", in, mapMenu);
    slideOut.addAnimationListener(new IAnimationListener() {
      public void processAnimationEvent(AnimationEvent ae) {
        float delta = ae.getCurrentStepDelta();
        ((IMTComponent3D)ae.getTargetObject()).translateGlobal(new Vector3D(delta,0,0));
        switch (ae.getId()) {
        case AnimationEvent.ANIMATION_ENDED:
View Full Code Here

Examples of org.mt4j.util.animation.Animation.addAnimationListener()

        }
      }
    });
   
    final Animation slideIn = new Animation("slide out animation", in, mapMenu);
    slideIn.addAnimationListener(new IAnimationListener() {
      public void processAnimationEvent(AnimationEvent ae) {
        float delta = -ae.getCurrentStepDelta();
        ((IMTComponent3D)ae.getTargetObject()).translateGlobal(new Vector3D(delta,0,0));
        switch (ae.getId()) {
        case AnimationEvent.ANIMATION_ENDED:
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.