Package com.google.gwt.animation.client

Examples of com.google.gwt.animation.client.Animation


     */
    private void translateTo(int duration, final int fromY, final int finalY) {
        if (duration > 0) {
            transitionOn = true;

            momentum = new Animation() {

                @Override
                protected void onUpdate(double progress) {
                    lastAnimatedTranslateY = (fromY + (finalY - fromY)
                            * progress);
 
View Full Code Here


    //Fade out the "Loading application" pop-up
    private void hideLoadingPopup() {
        final Element e = RootPanel.get( "loading" ).getElement();

        new Animation() {

            @Override
            protected void onUpdate( double progress ) {
                e.getStyle().setOpacity( 1.0 - progress );
            }
View Full Code Here

                .get(0).WIDTH) / 2.0);
        int step = 2 * columnMargine + items.get(0).WIDTH;
        firstItemLeft = columnMargine
                - (int) (Math.ceil(selected / rows) * step);

        Animation animation = new Animation() {
            int move = (firstItemLeft - items.get(0).getLeft());

            @Override
            protected void onUpdate(double progress) {
                moveButtons((int) (move * progress));

                if (progress >= 1) {
                    animating = false;
                    setSize();
                    client
                            .updateVariable(paintableId, "cursor", selected,
                                    true);
                }
            }
        };

        // softAnimationTime = 250 * (Math.abs(firstItemLeft
        // - items.get(0).getLeft()) / 100);
        animating = true;
        animation.run(softAnimationTime);
    }
View Full Code Here

    /**
     * Animate moving one item in from the left
     */
    private void animateFromLeft() {
        Animation animation = new Animation() {
            int move = (areaWidth / columns);

            @Override
            protected void onUpdate(double progress) {
                moveButtons((int) (move * progress));

                if (progress >= 1) {
                    animating = false;
                    selected -= rows;
                    if (selected < rows) {
                        selected = 0;
                    }
                    setSize();
                    client
                            .updateVariable(paintableId, "cursor", selected,
                                    true);
                }
            }
        };
        animating = true;
        animation.run(animationTime);
    }
View Full Code Here

    /**
     * Animate moving one item in from the right
     */
    private void animateFromRight() {
        Animation animation = new Animation() {
            int move = (areaWidth / columns);

            @Override
            protected void onUpdate(double progress) {
                moveButtons(-(int) (move * progress));

                if (progress >= 1) {
                    animating = false;
                    selected += rows;
                    setSize();
                    client
                            .updateVariable(paintableId, "cursor", selected,
                                    true);
                }
            }
        };
        animating = true;
        animation.run(animationTime);
    }
View Full Code Here

  protected Effect effect;
  protected Animation animation;
  protected int duration = 0;

  public Fx() {
    animation = new Animation() {

      @Override
      public void onCancel() {
        Fx.this.onCancel();
        isRunning = false;
View Full Code Here

    //Fade out the "Loading application" pop-up
    private void hideLoadingPopup() {
        final Element e = RootPanel.get( "loading" ).getElement();

        Animation r = new Animation() {

            @Override
            protected void onUpdate( double progress ) {
                e.getStyle().setOpacity( 1.0 - progress );
            }

            @Override
            protected void onComplete() {
                e.getStyle().setVisibility( Visibility.HIDDEN );
            }

        };

        r.run( 500 );

    }
View Full Code Here

    //Fade out the "Loading application" pop-up
    private void hideLoadingPopup() {
        final Element e = RootPanel.get( "loading" ).getElement();

        new Animation() {

            @Override
            protected void onUpdate( double progress ) {
                e.getStyle().setOpacity( 1.0 - progress );
            }
View Full Code Here

    //Fade out the "Loading application" pop-up
    private void hideLoadingPopup() {
        final Element e = RootPanel.get( "loading" ).getElement();

        new Animation() {

            @Override
            protected void onUpdate( double progress ) {
                e.getStyle().setOpacity( 1.0 - progress );
            }
View Full Code Here

    //Fade out the "Loading application" pop-up
    private void hideLoadingPopup() {
        final Element e = RootPanel.get( "loading" ).getElement();

        new Animation() {

            @Override
            protected void onUpdate( double progress ) {
                e.getStyle().setOpacity( 1.0 - progress );
            }
View Full Code Here

TOP

Related Classes of com.google.gwt.animation.client.Animation

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.