MinieExamples/src/main/java/jme3utilities/minie/test/common/AbstractDemo.java
/**
     * Process an action that wasn't handled by the active InputMode.
     *
     * @param actionString textual description of the action (not null)
     * @param ongoing true if the action is ongoing, otherwise false
     * @param tpf the time interval between frames (in seconds, &ge;0)
     */
Process an action that wasn't handled by the active InputMode.

@param actionString textual description of the action (not null)
@param ongoing true if the action is ongoing, otherwise false
@param tpf the time interval between frames (in seconds, ≥0)
Process an action that wasn ' t handled by the active InputMode . @param actionString textual description of the action ( not null ) @param ongoing true if the action is ongoing otherwise false @param tpf the time interval between frames ( in seconds ≥0 )
@Override
    public void onAction(String actionString, boolean ongoing, float tpf) {
        if (ongoing) {
            switch (actionString) {
                case asCollectGarbage:
                    System.gc();
                    return;
                case asDumpGui:
                    dumper.dump(guiNode);
                    return;
                case asDumpScene:
                    dumper.dump(rootNode);
                    return;
                case asDumpScenes:
                    dumper.dump(renderManager);
                    return;
                case asDumpSpace:
                    PhysicsSpace physicsSpace = getPhysicsSpace();
                    dumper.dump(physicsSpace);
                    return;
                case asDumpViewport:
                    dumper.dump(viewPort);
                    return;
                case asToggleAabbs:
                    toggleAabbs();
                    return;
                case asToggleCcdSpheres:
                    toggleCcdSpheres();
                    return;
                case asToggleDebug:
                    togglePhysicsDebug();
                    return;
                case asToggleGArrows:
                    toggleGravityArrows();
                    return;
                case asToggleHelp:
                    toggleHelp();
                    return;
                case asTogglePause:
                    togglePause();
                    return;
                case asTogglePcoAxes:
                    togglePcoAxes();
                    return;
                case asToggleVArrows:
                    toggleVelocityArrows();
                    return;
                case asToggleWorldAxes:
                    toggleWorldAxes();
                    return;
            }
        }
        super.onAction(actionString, ongoing, tpf);
    }
@ Override public void onAction ( String actionString , boolean ongoing , float tpf ) { if ( ongoing ) { switch ( actionString ) { case asCollectGarbage : System . gc ( ) ; return ; case asDumpGui : dumper . dump ( guiNode ) ; return ; case asDumpScene : dumper . dump ( rootNode ) ; return ; case asDumpScenes : dumper . dump ( renderManager ) ; return ; case asDumpSpace : PhysicsSpace physicsSpace = getPhysicsSpace ( ) ; dumper . dump ( physicsSpace ) ; return ; case asDumpViewport : dumper . dump ( viewPort ) ; return ; case asToggleAabbs : toggleAabbs ( ) ; return ; case asToggleCcdSpheres : toggleCcdSpheres ( ) ; return ; case asToggleDebug : togglePhysicsDebug ( ) ; return ; case asToggleGArrows : toggleGravityArrows ( ) ; return ; case asToggleHelp : toggleHelp ( ) ; return ; case asTogglePause : togglePause ( ) ; return ; case asTogglePcoAxes : togglePcoAxes ( ) ; return ; case asToggleVArrows : toggleVelocityArrows ( ) ; return ; case asToggleWorldAxes : toggleWorldAxes ( ) ; return ; } } super . onAction ( actionString , ongoing , tpf ) ; }
Process an action that wasn't handled by the active InputMode.
Process an action that wasn ' t handled by the active InputMode .