Examples of SlideTransition


Examples of org.mt4j.sceneManagement.transition.SlideTransition

    getCanvas().addChild(nextSceneButton);
    nextSceneButton.setPositionGlobal(new Vector3D(mtApp.width - nextSceneButton.getWidthXY(TransformSpace.GLOBAL) - 5, mtApp.height - nextSceneButton.getHeightXY(TransformSpace.GLOBAL) - 5, 0));

    //Set a scene transition - Flip transition only available using opengl supporting the FBO extenstion
    if (MT4jSettings.getInstance().isOpenGlMode() && GLFBO.isSupported(mtApp))
      this.setTransition(new SlideTransition(mtApp, 700));
    else{
      this.setTransition(new FadeTransition(mtApp));
    }
  }
View Full Code Here

Examples of pivot.wtk.effects.SlideTransition

        Window owner = window.getOwner();
        owner.getComponentMouseButtonListeners().add(ownerMouseButtonListener);

        ApplicationContext.queueCallback(new Runnable() {
            public void run() {
                openTransition = new SlideTransition(window, 0, 0,
                    -window.getHeight(), 0, false, SLIDE_DURATION, SLIDE_RATE);
                openTransition.start(new TransitionListener() {
                    public void transitionCompleted(Transition transition) {
                        openTransition = null;
                    }
View Full Code Here

Examples of pivot.wtk.effects.SlideTransition

                openTransition = null;
            }

            if (duration > 0) {
                closeTransition = new SlideTransition(sheet, beginX, 0,
                    beginY, -sheet.getHeight(), true, duration, SLIDE_RATE);
                closeTransition.start(new TransitionListener() {
                    public void transitionCompleted(Transition transition) {
                        sheet.close(result);
                        closeTransition = null;
View Full Code Here

Examples of pivot.wtk.effects.SlideTransition

        Window owner = window.getOwner();
        owner.getComponentMouseButtonListeners().add(ownerMouseButtonListener);

        ApplicationContext.queueCallback(new Runnable() {
            public void run() {
                openTransition = new SlideTransition(window, 0, 0,
                    -window.getHeight(), 0, false, SLIDE_DURATION, SLIDE_RATE);
                openTransition.start(new TransitionListener() {
                    public void transitionCompleted(Transition transition) {
                        openTransition = null;
                    }
View Full Code Here

Examples of pivot.wtk.effects.SlideTransition

                openTransition = null;
            }

            if (duration > 0) {
                closeTransition = new SlideTransition(sheet, beginX, 0,
                    beginY, -sheet.getHeight(), true, duration, SLIDE_RATE);
                closeTransition.start(new TransitionListener() {
                    public void transitionCompleted(Transition transition) {
                        sheet.close(result);
                        closeTransition = null;
View Full Code Here

Examples of tripleplay.game.trans.SlideTransition

    /** The y-coordinate at which screens are located. Defaults to 0. */
    public float originY = 0;

    /** Creates a slide transition. */
    public SlideTransition slide () { return new SlideTransition(this); }
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.