com.jzy3d.surfedit.controllers
Class KeyController
java.lang.Object
com.jzy3d.surfedit.controllers.KeyController
- All Implemented Interfaces:
- java.awt.event.KeyListener, java.util.EventListener
public class KeyController
- extends java.lang.Object
- implements java.awt.event.KeyListener
A key controller that is able to query a surface shape change for the currently
selected cells.
The default behaviour use J and K keys to decrease/increase the cell values. One
can change this to up/down arrows by changing the KeyControllerMode
.
- Author:
- Martin Pernollet
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ALLOW_LISTENING_TO_ESCAPE_KEY
public static boolean ALLOW_LISTENING_TO_ESCAPE_KEY
KeyController
public KeyController(IInteractiveSurface surface,
InteractiveChart chart)
KeyController
public KeyController(IInteractiveSurface surface,
InteractiveChart chart,
KeyControllerMode keyMode)
isShiftHeld
public boolean isShiftHeld()
isControlHeld
public boolean isControlHeld()
isZKeyControlHeld
public boolean isZKeyControlHeld()
keyPressed
public void keyPressed(java.awt.event.KeyEvent key)
- Specified by:
keyPressed
in interface java.awt.event.KeyListener
keyReleased
public void keyReleased(java.awt.event.KeyEvent key)
- Specified by:
keyReleased
in interface java.awt.event.KeyListener
keyTyped
public void keyTyped(java.awt.event.KeyEvent e)
- Specified by:
keyTyped
in interface java.awt.event.KeyListener
addPostKeyListeners
public boolean addPostKeyListeners(java.awt.event.KeyListener postKeyListener)
removePostKeyListeners
public boolean removePostKeyListeners(java.awt.event.KeyListener postKeyListener)
getKeyMode
public KeyControllerMode getKeyMode()
setKeyMode
public void setKeyMode(KeyControllerMode keyMode)