Class KeyBindings3D

java.lang.Object
edu.cnu.mdi.mdi3D.adapter3D.KeyBindings3D

public class KeyBindings3D extends Object
Installs the standard MDI-3D keyboard bindings on a Panel3D via Swing's InputMap/ActionMap, so they work regardless of which child component currently has keyboard focus within the panel's focused window (unlike a plain KeyListener, which only fires when the panel itself has focus).

Every binding — including the shifted variants (larger pan/dolly step, reversed rotation) — routes through the single shared KeyAdapter3D.handleVK(edu.cnu.mdi.mdi3D.panel.Panel3D, int, boolean) method, the same one KeyboardLabel's on-screen legend buttons call. Key handling logic therefore lives in exactly one place; this class only registers key strokes.

  • Constructor Details

    • KeyBindings3D

      public KeyBindings3D(Panel3D panel)
      Install the standard key bindings on the given panel.
      Parameters:
      panel - the panel to receive the bindings