Examples of Animation


Examples of com.sun.dtv.lwuit.animations.Animation

        // prevent animations from playing with a popup
        if (animatableComponents != null) {
            // we don't save size() in a varible since the animate method may deregister
            // the animation thus invalidating the size
            for (int iter = 0; iter < animatableComponents.size(); iter++) {
                Animation c = (Animation) animatableComponents.elementAt(iter);
                if (c.animate()) {
                    if (c instanceof Component) {
                        Rectangle rect = ((Component) c).getDirtyRegion();
                        if (rect != null) {
                            ((Component) c).repaint(rect.getX(), rect.getY(), rect.getSize().getWidth(), rect.getSize().getHeight());
                        } else {
View Full Code Here

Examples of de.ailis.jollada.model.Animation

     *            The element attributes
     */

    private void enterAnimation(final Attributes attributes)
    {
        final Animation animation = new Animation();
        animation.setId(attributes.getValue("id"));
        animation.setName(attributes.getValue("name"));

        if (this.animation == null)
            this.animationLibrary.getAnimations().add(animation);
        else
            this.animation.getAnimations().add(animation);
View Full Code Here

Examples of de.anormalmedia.vividswinganimations.Animation

        BackgroundColorAnimation blueBackgroundColorAnimation = new BackgroundColorAnimation( contentPane, Color.BLUE );
        blueBackgroundColorAnimation.setStartOffset( 2000 );
        blueBackgroundColorAnimation.setDuration( 1000 );
        defaultAnimationExecutor.addAnimation( blueBackgroundColorAnimation );

        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();
                DemoFrame.this.setLocation( p );
            }
        } );

        windowFadeAnimation = WindowFadeFactory.createWindowFadeAnimation( this, 1f );
        windowFadeAnimation.setStartOffset( 4000 );
        windowFadeAnimation.setDuration( 1000 );
        defaultAnimationExecutor.addAnimation( windowFadeAnimation );

        SizeAnimation collapseWidthAnimation = new SizeAnimation( this, 200, -1 );
        collapseWidthAnimation.setStartOffset( 6000 );
        collapseWidthAnimation.setDuration( 1000 );
        defaultAnimationExecutor.addAnimation( collapseWidthAnimation );

        LocationAnimation locationXAnimation = new LocationAnimation( this, frameBounds.x + frameBounds.width / 2 + 100, -1 );
        locationXAnimation.setStartOffset( 6000 );
        locationXAnimation.setDuration( 1000 );
        defaultAnimationExecutor.addAnimation( locationXAnimation );

        SizeAnimation collapseHeighthAnimation = new SizeAnimation( this, -1, 100 );
        collapseHeighthAnimation.setStartOffset( 7000 );
        collapseHeighthAnimation.setDuration( 1000 );
        defaultAnimationExecutor.addAnimation( collapseHeighthAnimation );

        LocationAnimation locationYAnimation = new LocationAnimation( this, -1, 250 );
        locationYAnimation.setStartOffset( 7000 );
        locationYAnimation.setDuration( 1000 );
        defaultAnimationExecutor.addAnimation( locationYAnimation );

        CircleAnimation circleAnimation = new CircleAnimation( this, 200, true );
        circleAnimation.setStartOffset( 8000 );
        circleAnimation.setDuration( 1000 );
        defaultAnimationExecutor.addAnimation( circleAnimation );

        CircleAnimation circleReverseAnimation = new CircleAnimation( this, 200, false );
        circleReverseAnimation.setStartOffset( 9000 );
        circleReverseAnimation.setDuration( 1000 );
        defaultAnimationExecutor.addAnimation( circleReverseAnimation );

        BackgroundColorAnimation blackBackgroundColorAnimation = new BackgroundColorAnimation( contentPane, Color.BLACK );
        blackBackgroundColorAnimation.setStartOffset( 10000 );
        blackBackgroundColorAnimation.setDuration( 1000 );
        defaultAnimationExecutor.addAnimation( blackBackgroundColorAnimation );

        ForegroundColorAnimation foregroundColorAnimation = new ForegroundColorAnimation( lblGeil, Color.WHITE );
        foregroundColorAnimation.setStartOffset( 11000 );
        foregroundColorAnimation.setDuration( 2000 );
        defaultAnimationExecutor.addAnimation( foregroundColorAnimation );

        BackgroundColorRangeAnimation prepareColorRangeAnimation = new BackgroundColorRangeAnimation( contentPane, new Color( Color.HSBtoRGB( 0f, 1f, 1f ) ) );
        prepareColorRangeAnimation.setStartOffset( 13000 );
        prepareColorRangeAnimation.setDuration( 1000 );
        defaultAnimationExecutor.addAnimation( prepareColorRangeAnimation );

        BackgroundColorRangeAnimation backgroundColorRangeAnimation = new BackgroundColorRangeAnimation( contentPane, new Color( Color.HSBtoRGB( 0.99f, 1f, 1f ) ) );
        backgroundColorRangeAnimation.setStartOffset( 14000 );
        backgroundColorRangeAnimation.setDuration( 10000 );
        defaultAnimationExecutor.addAnimation( backgroundColorRangeAnimation );

        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 javafx.animation.Animation

     */
    private ParallelTransition buildSlideTransition(final boolean isReverse, final SlideModel<SlideStep> previousSlideModel, final SlideModel<SlideStep> selectedSlideModel) {
        final ParallelTransition slideAnimation = ParallelTransitionBuilder.create().build();

        if (previousSlideModel != null) {
            final Animation a = isReverse ? previousSlideModel.getShowAnimation() : previousSlideModel.getHideAnimation();
            if (a != null) {
                slideAnimation.getChildren().add(a);
            }
        }
        if (this.selectedSlideModel != null) {
            final Animation a = isReverse ? this.selectedSlideModel.getHideAnimation() : this.selectedSlideModel.getShowAnimation();
            if (a != null) {
                slideAnimation.getChildren().add(a);
            }
        }

View Full Code Here

Examples of kiloboltgame.framework.Animation

    tilegrassTop = getImage(base, "data/tilegrasstop.png");
    tilegrassBot = getImage(base, "data/tilegrassbot.png");
    tilegrassLeft = getImage(base, "data/tilegrassleft.png");
    tilegrassRight = getImage(base, "data/tilegrassright.png");

    anim = new Animation();
    anim.addFrame(character, 1250);
    anim.addFrame(character2, 50);
    anim.addFrame(character3, 50);
    anim.addFrame(character2, 50);

    hanim = new Animation();
    hanim.addFrame(heliboy, 100);
    hanim.addFrame(heliboy2, 100);
    hanim.addFrame(heliboy3, 100);
    hanim.addFrame(heliboy4, 100);
    hanim.addFrame(heliboy5, 100);
View Full Code Here

Examples of net.edzard.kinetic.Animation

 
  public void testAnimatingPosition() {
   
    final Circle e = Kinetic.createCircle(pos1, 10);
   
    final Animation animation = Kinetic.createAnimation(layer, new Drawable() {
      @Override
      public void draw(Frame frame) {
        e.setPosition(pos2);
        assertEquals("Position cannot be set", pos2, e.getPosition());
      }
    });
   
    assertEquals("Position cannot be set", pos1, e.getPosition());
    animation.start();
    layer.draw();
    animation.stop();
    assertEquals("Animated position does not match", pos2, e.getPosition());
 
View Full Code Here

Examples of net.rim.device.api.animation.Animation

        // Set up the animation. The animation will animate a scalar float value
        // (_mainRotation) from 360 to 0 over 3 seconds and will repeat
        // indefinitely.
        _animator = new Animator(0);
        final Animation animation =
                _animator.addAnimationFromTo(_mainRotation,
                        AnimatedScalar.ANIMATION_PROPERTY_SCALAR, 360.0f, 0.0f,
                        Animation.EASINGCURVE_LINEAR, 3000L);
        animation.setRepeatCount(Animation.REPEAT_COUNT_INDEFINITE);

        _animator.begin(0L);
    }
View Full Code Here

Examples of net.sf.jiga.xtended.impl.Animation

    @Override
    protected void doLoadOnGL(RenderingScene context) {
        super.doLoadOnGL(context);
        RenderingScene._GLloadSprite((Sprite) gui.getCacheEntry("GFX_BACKGROUND_SCROLLING"), context);
        RenderingScene._GLloadSprite((Sprite) gui.getCacheEntry("GFX_CHARACTER_ICON"), context);
        Animation anim = (Animation) gui.getCacheEntry("GFX_VSLOGO");
        vsLogo = RenderingScene._GLloadAnim(anim, (RenderingScene) context, RenderingScene.PTY_ANIM);
        vsLogoBds = anim.getBounds();
    }
View Full Code Here

Examples of net.wigis.graph.dnv.animations.Animation

        // ------------------------------
        // Animations
        // ------------------------------
        if( !overview )
        {
          Animation animation;
          List<Animation> animations = subgraph.getSuperGraph().getAnimations();
          for( int i = 0; i < animations.size(); i++ )
          {
            animation = animations.get( i );
            animation.paint( g2d, pb );
            if( animation.hasCompleted() )
            {
              animations.remove( i );
              i--;
            }
          }
View Full Code Here

Examples of org.flexdock.dockbar.activation.Animation

            EventManager.dispatch(evt);
        }
    }

    private void startAnimation(final Dockable oldDockable, final Dockable newDockable, final String newDockableId, final int newEdge) {
        Animation deactivation = oldDockable==null? null: new Animation(this, true);
        Runnable updater1 = new Runnable() {
            public void run() {
                setActiveEdge(newEdge);
                setActiveDockableId(newDockableId);
                viewPane.updateOrientation();
                viewPane.updateContents();
            }
        };
        Animation activation = newDockableId==null? null: new Animation(this, false);
        Runnable updater2 = new Runnable() {
            public void run() {
                viewPane.setPrefSize(ViewPane.UNSPECIFIED_PREFERRED_SIZE);
                viewPane.updateOrientation();
                viewPane.updateContents();
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.