|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.awt.event.KeyAdapter com.jstatcom.ts.DefaultTSKeyListener
public class DefaultTSKeyListener
A KeyListener
that is especially designed to be used with the
TSList
. It is meant to be shared between TSList
instances, but can also be created and subclassed if necessary.
Constructor Summary | |
---|---|
DefaultTSKeyListener(java.lang.String name)
Creates a DefaultTSKeyListener with a descriptive name. |
Method Summary | |
---|---|
static DefaultTSKeyListener |
getSharedInstance()
Returns an instance of the DefaultTSKeyListener , that can
be shared across all TSList instances. |
void |
keyPressed(java.awt.event.KeyEvent keyEvent)
The following keys are recognized: KeyEvent.VK_DELETE - all selected series are deleted |
java.lang.String |
toString()
Returns a string representation of DefaultTSKeyListener . |
Methods inherited from class java.awt.event.KeyAdapter |
---|
keyReleased, keyTyped |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public DefaultTSKeyListener(java.lang.String name)
DefaultTSKeyListener
with a descriptive name.
Use the constructor only, if you need a instance that should be different
from getSharedInstance
via subclassing.
Method Detail |
---|
public static DefaultTSKeyListener getSharedInstance()
DefaultTSKeyListener
, that can
be shared across all TSList
instances. It is also possible
to create subclasses that can be individually configured and set to a
TSList
that should have a different
KeyListener
.
public void keyPressed(java.awt.event.KeyEvent keyEvent)
KeyEvent.VK_DELETE
- all selected series are deleted
keyPressed
in interface java.awt.event.KeyListener
keyPressed
in class java.awt.event.KeyAdapter
keyEvent
- a key eventpublic java.lang.String toString()
DefaultTSKeyListener
.
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |