Examples of Animation


Examples of com.googlecode.mgwt.examples.showcase.client.activities.animation.Animation

    HandlerRegistration addHandler = eventBus.addHandler(AnimationSelectedEvent.getType(), new AnimationSelectedEvent.Handler() {

      @Override
      public void onAnimationSelected(AnimationSelectedEvent event) {

        Animation animation = event.getAnimation();

        AnimationNames animationName = animation.getAnimationName();

        Place place = null;

        switch (animationName) {
        case SLIDE:
View Full Code Here

Examples of com.googlecode.mgwt.ui.client.widget.animation.Animation

   */
  public void hide() {
    if (!isVisible)
      return;
    isVisible = false;
    Animation animation = getHideAnimation();

    display.animate(animation, false, new AnimationEndCallback() {

      @Override
      public void onAnimationEnd() {
View Full Code Here

Examples of com.googlecode.mgwt.ui.client.widget.animation.Animation

    }

    display.setFirstWidget(container);

    // and animiate
    Animation animation = getShowAnimation();

    display.animate(animation, true, new AnimationEndCallback() {

      @Override
      public void onAnimationEnd() {
View Full Code Here

Examples of com.googlecode.mgwt.ui.client.widget.animation.Animation

      placeChangeStack.add(event);
      return;
    }

    Activity nextActivity = getNextActivity(event);
    Animation animation = getAnimation(event);

    Throwable caughtOnStop = null;
    Throwable caughtOnStart = null;

    if (nextActivity == null) {
View Full Code Here

Examples of com.jme3.animation.Animation

  public void setDefault(String animset, String defaultset){
    defaultAnimations.put(animset, defaultset);
  }
 
  public Animation getAnimation(String path){
    Animation a ;
    //FIXME remove this !=!
    if(path.endsWith(".j3o"))
      a = (Animation) Singleton.get().getAssetManager().getJmeAssetMan().loadAsset(path);
    else
      a = (Animation) Singleton.get().getAssetManager().getJmeAssetMan().loadAsset(path+".j3o")
View Full Code Here

Examples of com.l2client.animsystem.Animation

*/
public class Retreat extends Action {
  @Override
  protected Animation evaluate(Mediator med){

    Animation ret = null;
    if(med.forceLockCheck(Channels.AllChannels,2)){
      ret = med.getAnimation();
      ret.setChannel(med.getChannel(Channels.AllChannels));
      ret.setLevel(2);
      ret.setBlendTime(0.1f);
      ret.setName("retreat");
      return ret;
    }
   
    return null;
  }
View Full Code Here

Examples of com.randarlabs.java.GameEngine.video.Animation

    w.addKeyListener(this);
    w.setFocusTraversalKeysEnabled(false);
    bg = new ImageIcon("res\\mario-wall-01.png").getImage();
    //bgb = new ImageIcon("res\\mario-wall-01b.png").getImage();
    hero = new ImageIcon("res\\8_Bit_Mario.png").getImage();
    a = new Animation();
    a.addScene(hero.getScaledInstance(hero.getWidth(null) / 25, hero.getHeight(null) / 25, 25), 800);
   
    sprite = new SpriteManager(a);
    sprite.setY((sm.getHeight() / 2 - sprite.getHeight()));
   
View Full Code Here

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

            int topX = getWidth();
            int topY = getHeight();
            int bottomX = 0;
            int bottomY = 0;
            for (int iter = 0; iter < size; iter++) {
                Animation ani = paintQueueTemp[iter];
                paintQueueTemp[iter] = null;
                wrapper.translate(-wrapper.getTranslateX(), -wrapper.getTranslateY());
                wrapper.setClip(0, 0, getWidth(), getHeight());
                if (ani instanceof Component) {
                    Component cmp = (Component) ani;
                    System.out.println(cmp.getUIID() + " <- imprimido");
                    Rectangle dirty = cmp.getDirtyRegion();
                    //Rectangle dirty = new Rectangle(0, 0, cmp.getPreferredSize()) ;
                    if (dirty != null) {
                        System.out.println(cmp.getUIID() + " <- sujo");
                        wrapper.setClip(dirty.getX(), dirty.getY(), dirty.getSize().getWidth(), dirty.getSize().getHeight());
                        cmp.setDirtyRegion(null);
                    }

                    cmp.paintComponent(wrapper);
                    int cmpAbsX = cmp.getAbsoluteX() + cmp.getScrollX();
                    topX = Math.min(cmpAbsX, topX);
                    bottomX = Math.max(cmpAbsX + cmp.getWidth(), bottomX);
                    int cmpAbsY = cmp.getAbsoluteY() + cmp.getScrollY();
                    topY = Math.min(cmpAbsY, topY);
                    bottomY = Math.max(cmpAbsY + cmp.getHeight(), bottomY);
                } else {
                    bottomX = getWidth();
                    bottomY = getHeight();
                    topX = 0;
                    topY = 0;
                    ani.paint(wrapper);
                }
            }

            // disable flush graphics bug when media is playing to prevent the
            // double buffer
View Full Code Here

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

        }
    }

    private void paintTransitionAnimation() {
        Vector animationQueue = Display.getInstance().getAnimationQueue();
        Animation ani = (Animation) animationQueue.elementAt(0);
        if (!ani.animate()) {
            animationQueue.removeElementAt(0);
            if (ani instanceof Transition) {
                Form current = Display.getInstance().getCurrentInternal();
                Form source = (Form) ((Transition) ani).getSource();
                restoreMenu(source);
                Form f = (Form) ((Transition) ani).getDestination();
                restoreMenu(f);
                if (source == null || source == current || source == Display.getInstance().getCurrent()) {
                    Display.getInstance().setCurrentForm(f);
                }
                ((Transition) ani).cleanup();
                if (animationQueue.size() > 0) {
                    ani = (Animation) animationQueue.elementAt(0);
                    if (ani instanceof Transition) {
                        ((Transition) ani).initTransition();
                    }
                }
                return;
            }
        }
        ani.paint(wrapper);
        flushGraphics();

        if (transitionDelay > 0) {
            // yield for a fraction, some devices don't "properly" implement
            // flush and so require the painting thread to get CPU too.
View Full Code Here

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

        next.setParent(this);
        if (next instanceof Container) {
            ((Container) next).layoutContainer();
        }

        Animation anim = new Anim(this, current, next, t);

        // block events as long as the transition is animating
        Display.getInstance().blockEvents(true);

        // register the transition animation
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.