public class InputTriggerConfig extends Object implements InputTriggerAdder.Factory, KeyStrokeAdder.Factory
Modifier and Type | Class and Description |
---|---|
static class |
InputTriggerConfig.InputTriggerAdderImp |
static class |
InputTriggerConfig.KeyStrokeAdderImp |
Constructor and Description |
---|
InputTriggerConfig() |
InputTriggerConfig(Collection<InputTriggerDescription> keyMappings) |
Modifier and Type | Method and Description |
---|---|
void |
add(InputTrigger trigger,
String behaviourName,
Collection<String> contexts) |
void |
add(InputTrigger trigger,
String behaviourName,
String context) |
void |
add(String trigger,
String behaviourName,
String context) |
void |
clear() |
Set<InputTrigger> |
getInputs(String behaviourName,
Set<String> contexts) |
Set<InputTrigger> |
getInputs(String behaviourName,
String context) |
InputTriggerAdder |
inputTriggerAdder(InputTriggerMap map,
String... contexts) |
KeyStrokeAdder |
keyStrokeAdder(InputMap map,
String... contexts) |
static String |
prettyPrintInputs(Set<InputTrigger> triggers)
Creates a pretty printed list of keys, useful in conjunction with
getInputs(java.lang.String, java.lang.String) . |
void |
remove(InputTrigger trigger,
String behaviourName,
Collection<String> contexts) |
void |
remove(InputTrigger trigger,
String behaviourName,
String context) |
void |
remove(String trigger,
String behaviourName,
String context) |
void |
set(InputTriggerConfig config) |
public InputTriggerConfig()
public InputTriggerConfig(Collection<InputTriggerDescription> keyMappings) throws IllegalArgumentException
IllegalArgumentException
public InputTriggerAdder inputTriggerAdder(InputTriggerMap map, String... contexts)
inputTriggerAdder
in interface InputTriggerAdder.Factory
public KeyStrokeAdder keyStrokeAdder(InputMap map, String... contexts)
keyStrokeAdder
in interface KeyStrokeAdder.Factory
public Set<InputTrigger> getInputs(String behaviourName, String context)
public Set<InputTrigger> getInputs(String behaviourName, Set<String> contexts)
public static String prettyPrintInputs(Set<InputTrigger> triggers)
getInputs(java.lang.String, java.lang.String)
.triggers
- Set of triggers to be printed.public void clear()
public void set(InputTriggerConfig config)
public void add(InputTrigger trigger, String behaviourName, String context)
public void add(InputTrigger trigger, String behaviourName, Collection<String> contexts)
public void remove(InputTrigger trigger, String behaviourName, String context)
public void remove(InputTrigger trigger, String behaviourName, Collection<String> contexts)
Copyright © 2015–2022 SciJava. All rights reserved.