Package edu.cnu.mdi.mdi3D.adapter3D
Class KeyAdapter3D
java.lang.Object
edu.cnu.mdi.mdi3D.adapter3D.KeyAdapter3D
Shared static logic for MDI-3D's fixed keyboard/legend commands: pan
(L/R/U/D), dolly (J/K), incremental rotation (X/Y/Z, tripled when shifted),
and four canonical axis-aligned views (1-4).
This class holds only handleVK(edu.cnu.mdi.mdi3D.panel.Panel3D, int, boolean). Both real keyboard input (via
KeyBindings3D, which registers Swing InputMap/
ActionMap bindings) and the on-screen KeyboardLabel legend
— whose buttons let a user click a key's effect instead of pressing it —
route through this one method, so a keystroke and its corresponding legend
button can never disagree about what they do.
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidRespond to a key stroke, or aKeyboardLabelbutton mimicking one.
-
Method Details
-
handleVK
Respond to a key stroke, or aKeyboardLabelbutton mimicking one.- Parameters:
panel3D- the owner panelkeyCode- the key codeshifted- whether it was shifted (e.g., capitalized)
-