Package visad.java3d

Examples of visad.java3d.KeyboardBehaviorJ3D


                MouseHelper.DIRECT // CTRL + SHIFT + right mouse
                          // button
            }}});

    // Set the keyboard behavior.
    final KeyboardBehaviorJ3D keyBehavior = new KeyboardBehaviorJ3D(
        dRenderer);
    keyBehavior.mapKeyToFunction(KeyboardBehaviorJ3D.ROTATE_X_POS,
        KeyEvent.VK_DOWN, 0);
    keyBehavior.mapKeyToFunction(KeyboardBehaviorJ3D.ROTATE_X_NEG,
        KeyEvent.VK_UP, 0);
    keyBehavior.mapKeyToFunction(KeyboardBehaviorJ3D.ROTATE_Y_POS,
        KeyEvent.VK_LEFT, 0);
    keyBehavior.mapKeyToFunction(KeyboardBehaviorJ3D.ROTATE_Y_NEG,
        KeyEvent.VK_RIGHT, 0);
    keyBehavior.mapKeyToFunction(KeyboardBehaviorJ3D.ROTATE_Z_POS,
        KeyEvent.VK_PAGE_UP, 0);
    keyBehavior.mapKeyToFunction(KeyboardBehaviorJ3D.ROTATE_Z_NEG,
        KeyEvent.VK_PAGE_DOWN, 0);
    keyBehavior.mapKeyToFunction(KeyboardBehavior.ZOOM_IN,
        KeyEvent.VK_PLUS, 0);
    keyBehavior.mapKeyToFunction(KeyboardBehavior.ZOOM_OUT,
        KeyEvent.VK_MINUS, 0);
    keyBehavior.mapKeyToFunction(KeyboardBehavior.ZOOM_IN, KeyEvent.VK_ADD,
        0);
    keyBehavior.mapKeyToFunction(KeyboardBehavior.ZOOM_OUT,
        KeyEvent.VK_SUBTRACT, 0);
    dRenderer.addKeyboardBehavior(keyBehavior);

    // Set text control properties.
    final TextControl textControl = (TextControl) annotationMap
View Full Code Here

TOP

Related Classes of visad.java3d.KeyboardBehaviorJ3D

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.