Examples of Animator


Examples of jsynoptic.plugins.java3d.Animator

        }
        throw new RuntimeException("addSceneGraphObject invalid argument ="+obj.getClass());
    }
   
    public void addRef(SceneGraphObject o) {
        Animator a=(Animator)getGraphObject();
        boolean forced=forceCapability(Group.ALLOW_CHILDREN_EXTEND);
        SceneGraphObjectHolder res=Universe.findHolder(this, o);
        a.addGraphObject(o, res.getSceneGraphNode() , _ad);
        if(forced) restoreCapability(Group.ALLOW_CHILDREN_EXTEND);
    }
View Full Code Here

Examples of jsynoptic.plugins.java3d.Animator

        a.addGraphObject(o, res.getSceneGraphNode() , _ad);
        if(forced) restoreCapability(Group.ALLOW_CHILDREN_EXTEND);
    }

    public void removeRef(GraphObjectReference r) {
        Animator a=(Animator)getGraphObject();
        boolean forced=forceCapability(Group.ALLOW_CHILDREN_WRITE);
        a.removeGraphObject(r, _ad);
        if(forced) restoreCapability(Group.ALLOW_CHILDREN_WRITE);
    }
View Full Code Here

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

                        "Tap or click to swap screens", null, null);

        // 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);
View Full Code Here

Examples of org.gwtoolbox.commons.ui.client.animation.Animator

    public static void effect(int duration, final Effect effect) {
        if (!effect.init()) {
            return;
        }
        new Animator(duration).start(new Animator.Callback() {
            public void update(double progress) {
                progress = effect.getTransition().translate(progress);
                effect.update(progress);
            }
View Full Code Here

Examples of org.jdesktop.animation.timing.Animator

            if (template != null) {
                if (controller != null && controller.isRunning()) {
                    controller.stop();
                }

                controller = new Animator(300,
                        new PropertySetter(display, "control1",
                        point2dInterpolator, display.getControl1(),
                        template.getControl1()));
                controller.setResolution(10);
                controller.addTarget(new PropertySetter(display, "control2",
View Full Code Here

Examples of org.jdesktop.animation.timing.Animator

   
    KeyTimes  keyTimes   = new KeyTimes(times);
      KeyValues keyValues = KeyValues.create(values);
    KeyFrames keyFrames = new KeyFrames(keyValues, keyTimes,  new SplineInterpolator(1.00f, 0.00f, 0.00f, 1.00f));
   
    animation = new Animator1000,
                  1
                  Animator.RepeatBehavior.LOOP,
                  new PropertySetter(this, "factor", keyFrames) );
   
    m_LastTimeStamp = animation.getTotalElapsedTime();
View Full Code Here

Examples of org.jdesktop.animation.timing.Animator

        LoadAnimationPanel loadAnimationPanel = new LoadAnimationPanel();

        add(loadAnimationPanel);
        loadAnimationPanel.setAnimating(true);

        Animator fadeOutAnimator = null;
        Animator fadeInAnimator = null;
        try {
            loadAnimationPanel.setAnimating(false);
            fadeOutAnimator = new Animator(400,
                    new FadeOut(DemoXPanel.this,
                            loadAnimationPanel, demoPanel));
            fadeOutAnimator.setAcceleration(.2f);
            fadeOutAnimator.setDeceleration(.3f);
            fadeInAnimator = new Animator(400,
                    new PropertySetter(DemoXPanel.this, "alpha", 0.3f, 1.0f));
            TimingTrigger.addTrigger(fadeOutAnimator, fadeInAnimator, TimingTriggerEvent.STOP);
            fadeOutAnimator.start();
        } catch (Exception ignore) {
            if (fadeOutAnimator != null) fadeOutAnimator.stop();
            if (fadeInAnimator != null) fadeInAnimator.stop();
            if (loadAnimationPanel != null)
               loadAnimationPanel.setAnimating(false);
           
            System.err.println(ignore);
            ignore.printStackTrace();
View Full Code Here

Examples of org.jdesktop.animation.timing.Animator

            // remind(aim): get from resource map
            message = "demo loading";

            PropertySetter rotator = new PropertySetter(this, "triState", 0, 3);
            animator = new Animator(500, Animator.INFINITE,
                    Animator.RepeatBehavior.LOOP, rotator);
            // Don't animate gears if loading is quick
            animator.setStartDelay(200);
        }
View Full Code Here

Examples of org.jdesktop.animation.timing.Animator

     * cannot be found for propertyName.
     */
    public static Animator createAnimator(int duration, Object object,
            String propertyName, KeyFrames keyFrames) {
        PropertySetter ps = new PropertySetter(object, propertyName, keyFrames);
        Animator animator = new Animator(duration, ps);
        return animator;
    }
View Full Code Here

Examples of org.jdesktop.animation.timing.Animator

     * cannot be found for propertyName.
     */
    public static <T> Animator createAnimator(int duration,
            Object object, String propertyName, T... params) {
        PropertySetter ps = new PropertySetter(object, propertyName, params);
        Animator animator = new Animator(duration, ps);
        return animator;
    }
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.