The MoveKeyInteractor interactor
allows application users to use the keyboard to move graph elements.
Note
This interactor works only when the diagram is in Edition
mode. You can change between Navigation mode and Edition mode using
the SwitchModeInteractor.
The following table lists the keyboard keys that the MoveKeyInteractor assigns
by default to graph element move actions:
Action | Description | Default key |
---|---|---|
moveLeft | Moves the selected graph elements left. | Left Arrow |
moveRight | Moves the selected graph elements right. | Right Arrow |
moveUp | Moves the selected graph elements up. | Up Arrow |
moveDown | Moves the selected graph elements down. | Down Arrow |
fineMoveLeft | Moves the selected graph elements left by a finer increment factor than the moveLeft action. | No default key assigned |
fineMoveRight | Moves the selected graph elements right by a finer increment factor than the moveRight action. | No default key assigned |
fineMoveUp | Moves the selected graph elements up by a finer increment factor than the moveUp action. | No default key assigned |
fineMoveDown | Moves the selected graph elements down by a finer increment factor than the moveDown action. | No default key assigned |
By default, the standard move adjustment uses increments
of 10 units, while the fine move adjustment uses increments of 1 unit.
You can change these settings with the setIncrement and setFineIncrement methods.