private void setUpUserInterface() {
        /*
         * Attach a BitmapText to display the status of the ContrastAdjustmentFilter.
         */
        statusText = new BitmapText(guiFont);
        guiNode.attachChild(statusText);
        statusText.setLocalTranslation(0f, cam.getHeight(), 0f);
        /*
         * Create listeners for user keypresses.
         */
        ActionListener action = new ActionListener() {
            @Override
            public void onAction(String name, boolean keyPressed, float tpf) {
                if (name.equals("reset") && keyPressed) {
                    contrastAdjustmentFilter.setExponents(1f, 1f, 1f)
                            .setInputRange(0f, 1f)
                            .setScales(1f, 1f, 1f);
                }
            }
        };
        AnalogListener analog = new AnalogListener() {
            @Override
            public void onAnalog(String name, float value, float tpf) {
                float increment = name.endsWith("+") ? 0.3f * tpf : -0.3f * tpf;

                if (name.startsWith("lower")) {
                    float newValue = contrastAdjustmentFilter.getLowerLimit() + increment;
                    contrastAdjustmentFilter.setLowerLimit(newValue);

                } else if (name.startsWith("upper")) {
                    float newValue = contrastAdjustmentFilter.getUpperLimit() + increment;
                    contrastAdjustmentFilter.setUpperLimit(newValue);

                } else if (name.startsWith("re")) {
                    float newValue = contrastAdjustmentFilter.getRedExponent() + increment;
                    contrastAdjustmentFilter.setRedExponent(newValue);

                } else if (name.startsWith("ge")) {
                    float newValue = contrastAdjustmentFilter.getGreenExponent() + increment;
                    contrastAdjustmentFilter.setGreenExponent(newValue);

                } else if (name.startsWith("be")) {
                    float newValue = contrastAdjustmentFilter.getBlueExponent() + increment;
                    contrastAdjustmentFilter.setBlueExponent(newValue);

                } else if (name.startsWith("rs")) {
                    float newValue = contrastAdjustmentFilter.getRedScale() + increment;
                    contrastAdjustmentFilter.setRedScale(newValue);

                } else if (name.startsWith("gs")) {
                    float newValue = contrastAdjustmentFilter.getGreenScale() + increment;
                    contrastAdjustmentFilter.setGreenScale(newValue);

                } else if (name.startsWith("bs")) {
                    float newValue = contrastAdjustmentFilter.getBlueScale() + increment;
                    contrastAdjustmentFilter.setBlueScale(newValue);
                }
            }
        };
        /*
         * Add mappings and listeners for user keypresses.
         */
        System.out.println("Press Enter to reset the filter to defaults.");
        inputManager.addMapping("reset", new KeyTrigger(KeyInput.KEY_RETURN));
        inputManager.addListener(action, "reset");

        System.out.println("lower limit:     press R to increase, F to decrease");
        inputManager.addMapping("lower+", new KeyTrigger(KeyInput.KEY_R));
        inputManager.addMapping("lower-", new KeyTrigger(KeyInput.KEY_F));
        inputManager.addListener(analog, "lower+", "lower-");

        System.out.println("upper limit:     press T to increase, G to decrease");
        inputManager.addMapping("upper+", new KeyTrigger(KeyInput.KEY_T));
        inputManager.addMapping("upper-", new KeyTrigger(KeyInput.KEY_G));
        inputManager.addListener(analog, "upper+", "upper-");

        System.out.println("red exponent:    press Y to increase, H to decrease");
        inputManager.addMapping("re+", new KeyTrigger(KeyInput.KEY_Y));
        inputManager.addMapping("re-", new KeyTrigger(KeyInput.KEY_H));
        inputManager.addListener(analog, "re+", "re-");

        System.out.println("green exponent:  press U to increase, J to decrease");
        inputManager.addMapping("ge+", new KeyTrigger(KeyInput.KEY_U));
        inputManager.addMapping("ge-", new KeyTrigger(KeyInput.KEY_J));
        inputManager.addListener(analog, "ge+", "ge-");

        System.out.println("blue exponent:   press I to increase, K to decrease");
        inputManager.addMapping("be+", new KeyTrigger(KeyInput.KEY_I));
        inputManager.addMapping("be-", new KeyTrigger(KeyInput.KEY_K));
        inputManager.addListener(analog, "be+", "be-");

        System.out.println("red scale:       press O to increase, L to decrease");
        inputManager.addMapping("rs+", new KeyTrigger(KeyInput.KEY_O));
        inputManager.addMapping("rs-", new KeyTrigger(KeyInput.KEY_L));
        inputManager.addListener(analog, "rs+", "rs-");

        System.out.println("green scale:     press P to increase, ; to decrease");
        inputManager.addMapping("gs+", new KeyTrigger(KeyInput.KEY_P));
        inputManager.addMapping("gs-", new KeyTrigger(KeyInput.KEY_SEMICOLON));
        inputManager.addListener(analog, "gs+", "gs-");

        System.out.println("blue scale:      press [ to increase, ' to decrease");
        inputManager.addMapping("bs+", new KeyTrigger(KeyInput.KEY_LBRACKET));
        inputManager.addMapping("bs-", new KeyTrigger(KeyInput.KEY_APOSTROPHE));
        inputManager.addListener(analog, "bs+", "bs-");

        System.out.println();
    }
Update the status text.

@param tpf unused
jme3-examples/src/main/java/jme3test/post/TestContrastAdjustment.java