Package com.sun.scenario.animation

Examples of com.sun.scenario.animation.Clip


            System.setProperty(SERVER_URL_PROP, serverURL);
        }

        // HUGE HACK ! Force scenario to initialize so menus work correctly
        // (work around for scenario bug)
        Clip clip2 = Clip.create(1000, new TimingTarget() {

            public void timingEvent(float arg0, long arg1) {
            }

            public void begin() {
            }

            public void end() {
            }

            public void pause() {
            }

            public void resume() {
            }
        });
        clip2.setInterpolator(Interpolators.getEasingInstance(0.4f, 0.4f));
        clip2.start();
        // End HUGE HACK.

        WorldManager worldManager = ClientContextJME.getWorldManager();
        worldManager.getRenderManager().setDesiredFrameRate(getDesiredFrameRate());
View Full Code Here


    private void attachOrb(Entity entity) {
        attachInnerOrb(entity);
        attachOuterOrb(entity);
        //Spin the inner orb
        RotationAnimationProcessor spinner = new RotationAnimationProcessor(entity, innerOrbNode, 0f, 360, new Vector3f(0f,0f,1f));
        Clip spinnerClip = Clip.create(1000, Clip.INDEFINITE, spinner);
        spinnerClip.setRepeatBehavior(RepeatBehavior.LOOP);
        spinnerClip.start();
        spinnerClip.resume();
        //Rotate the inner orb
        RotationAnimationProcessor rotator = new RotationAnimationProcessor(entity, innerOrbNode, 0f, 360, new Vector3f(0f,1f,0f));
        Clip rotatorClip = Clip.create(1000, Clip.INDEFINITE, rotator);
        rotatorClip.setRepeatBehavior(RepeatBehavior.LOOP);
        rotatorClip.start();
        rotatorClip.resume();
        //Traslate the whole orb
        TranslationAnimationProcessor translator = new TranslationAnimationProcessor(entity, orbNode, new Vector3f(0f,MINIMUM_HEIGHT,0f) , new Vector3f(0f,MAXIMUM_HEIGHT,0f));
        Clip translatorClip = Clip.create(1000, Clip.INDEFINITE, translator);
        translatorClip.setRepeatBehavior(RepeatBehavior.REVERSE);
        translatorClip.start();
        translatorClip.resume();
    }
View Full Code Here

        listener.removeFromEntity(entity);
    }

    private void createSpeakingAnimations(Entity entity) {
        ScaleAnimationProcessor scaler = new ScaleAnimationProcessor(entity, innerOrbNode, 1.0f, OUTER_RADIUS/INNER_RADIUS * 0.9f);
        Clip scalingClip = Clip.create(1000, Clip.INDEFINITE, scaler);
        scalingClip.setRepeatBehavior(RepeatBehavior.REVERSE);
        scalingClip.start();
        scalingClip.pause();
        animations.add(scalingClip);
        //Need to add a colour animator?
    }
View Full Code Here

TOP

Related Classes of com.sun.scenario.animation.Clip

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.