Class ToolKeyAdapter
- java.lang.Object
-
- java.awt.event.KeyAdapter
-
- adams.gui.visualization.object.tools.ToolKeyAdapter
-
- All Implemented Interfaces:
KeyListener
,EventListener
public class ToolKeyAdapter extends KeyAdapter
KeyAdapter
with an owning tool. TheToolMouseAdapter
in the tool must call theToolMouseAdapter.requestFocus()
method, otherwise key input won't be recognized (due to not focused).- Author:
- FracPete (fracpete at waikato dot ac dot nz)
-
-
Constructor Summary
Constructors Constructor Description ToolKeyAdapter(Tool owner)
Initializes the adapter.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Tool
getOwner()
Returns the owning tool.-
Methods inherited from class java.awt.event.KeyAdapter
keyPressed, keyReleased, keyTyped
-
-