Package libshapedraw.animation.trident

Examples of libshapedraw.animation.trident.Timeline


        // the animation start out fast, then slow down at the end of each
        // cycle.
        //
        // The final effect is a big pink arrow-like shape, dramatically
        // pointing at a specific block.
        Timeline timeline = new Timeline(vector);
        timeline.addPropertyToInterpolate("y", vector.getY(), vector.getY() - 30.0);
        timeline.setEase(new Sine());
        timeline.setDuration(3500);
        timeline.playLoop(RepeatBehavior.LOOP);
    }
View Full Code Here


        return this;
    }

    private void newTimeline(T toValue, long durationMs) {
        animateStop();
        timeline = new Timeline(this);
        timeline.addPropertyToInterpolate("value", value, toValue);
        timeline.setDuration(durationMs);
    }
View Full Code Here

        return this;
    }

    private void newTimeline(double toX, double toY, double toZ, long durationMs) {
        animateStop();
        timeline = new Timeline(this);
        timeline.addPropertyToInterpolate("x", x, toX);
        timeline.addPropertyToInterpolate("y", y, toY);
        timeline.addPropertyToInterpolate("z", z, toZ);
        timeline.setDuration(durationMs);
    }
View Full Code Here

        return this;
    }

    private void newTimelineAngle(double toAngleDegrees, long durationMs) {
        animateStop();
        timelineAngle = new Timeline(this);
        timelineAngle.addPropertyToInterpolate("angle", angle, toAngleDegrees);
        timelineAngle.setDuration(durationMs);
    }
View Full Code Here

        return this;
    }

    private void newTimeline(double toRed, double toGreen, double toBlue, double toAlpha, long durationMs) {
        animateStop();
        timeline = new Timeline(this);
        timeline.addPropertyToInterpolate("red",   red,   toRed);
        timeline.addPropertyToInterpolate("green", green, toGreen);
        timeline.addPropertyToInterpolate("blue",  blue,  toBlue);
        timeline.addPropertyToInterpolate("alpha", alpha, toAlpha);
        timeline.setDuration(durationMs);
View Full Code Here

TOP

Related Classes of libshapedraw.animation.trident.Timeline

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.