public class MappingManager
extends java.lang.Object
Constructor and Description |
---|
MappingManager(GUIPanel gp) |
Modifier and Type | Method and Description |
---|---|
void |
addMapping(java.lang.String source,
java.lang.String target)
Add a mapping between the provided source and target sequences, expressed
as Strings.
|
boolean |
notifyAboutKeyPress(java.lang.String keyString,
boolean runLiteralWhenNoMatch)
Notify the mapping manager that a key was pressed and let it decide,
whether it is a part of mapping; if not, run this sequence by passing it
to the
KeyInput.KeySequence#execute(chartadvancedpie.GUIPanel) method;
else, find the target sequence to this source and then run this target
sequence (provided that the 2nd argument passed to this method is true),
or ignore otherwise. |
public MappingManager(GUIPanel gp)
public void addMapping(java.lang.String source, java.lang.String target)
InstrumentationPlatformGUI#Elements#GUIPanel#notifyAboutKeyPress()
method.source
- the string representing the source keypress sequencetarget
- the string representing the target keypress sequenceInstrumentationPlatformGUI.Entry.GUIPanel#notifyAboutKeyPress()
public boolean notifyAboutKeyPress(java.lang.String keyString, boolean runLiteralWhenNoMatch)
KeyInput.KeySequence#execute(chartadvancedpie.GUIPanel)
method;
else, find the target sequence to this source and then run this target
sequence (provided that the 2nd argument passed to this method is true),
or ignore otherwise.keyString
- the string of the key pressed, as returned by
KeyProcessingUtils.createStringFromKeyEventrunLiteralWhenNoMatch
- when no mapping was found, run the "raw"
input sequence?