artofillusion.keystroke
Class KeystrokeRecord
java.lang.Object
artofillusion.keystroke.KeystrokeRecord
public class KeystrokeRecord
- extends java.lang.Object
This class contains information about a keyboard shortcut which automates some operation.
A keystroke pairs a key description (key code and modifier) with a Beanshell script to execute
when the key is pressed.
|
Constructor Summary |
KeystrokeRecord(int keyCode,
int modifiers,
java.lang.String name,
java.lang.String script)
Create a new KeystrokeRecord. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
KeystrokeRecord
public KeystrokeRecord(int keyCode,
int modifiers,
java.lang.String name,
java.lang.String script)
- Create a new KeystrokeRecord.
- Parameters:
keyCode - the key code (as defined by KeyEvent) for the key which activates this keystrokemodifiers - the modifier keys which must be held down to activate this keystrokename - a name to identify this keystrokescript - a Beanshell script to execute when the keystroke is activated
getKeyCode
public int getKeyCode()
setKeyCode
public void setKeyCode(int keyCode)
getModifiers
public int getModifiers()
setModifiers
public void setModifiers(int modifiers)
getName
public java.lang.String getName()
setName
public void setName(java.lang.String name)
getScript
public java.lang.String getScript()
setScript
public void setScript(java.lang.String script)
duplicate
public KeystrokeRecord duplicate()
- Create an exact duplicate of this record.
Copyright © 1999-2008 by Peter Eastman.