public abstract class AbstractMouseAndKeyHandler extends Object
Modifier and Type | Class and Description |
---|---|
protected static class |
AbstractMouseAndKeyHandler.BehaviourEntry<T extends Behaviour> |
Modifier and Type | Field and Description |
---|---|
protected ArrayList<AbstractMouseAndKeyHandler.BehaviourEntry<ClickBehaviour>> |
buttonClicks |
protected ArrayList<AbstractMouseAndKeyHandler.BehaviourEntry<DragBehaviour>> |
buttonDrags |
protected static int |
DOUBLE_CLICK_INTERVAL |
protected ArrayList<AbstractMouseAndKeyHandler.BehaviourEntry<ClickBehaviour>> |
keyClicks |
protected ArrayList<AbstractMouseAndKeyHandler.BehaviourEntry<DragBehaviour>> |
keyDrags |
protected ArrayList<AbstractMouseAndKeyHandler.BehaviourEntry<ScrollBehaviour>> |
scrolls |
Constructor and Description |
---|
AbstractMouseAndKeyHandler() |
Modifier and Type | Method and Description |
---|---|
void |
setBehaviourMap(BehaviourMap behaviourMap) |
void |
setInputMap(InputTriggerMap inputMap) |
protected void |
update()
Make sure that the internal behaviour lists are up to date.
|
protected static final int DOUBLE_CLICK_INTERVAL
protected final ArrayList<AbstractMouseAndKeyHandler.BehaviourEntry<DragBehaviour>> buttonDrags
protected final ArrayList<AbstractMouseAndKeyHandler.BehaviourEntry<DragBehaviour>> keyDrags
protected final ArrayList<AbstractMouseAndKeyHandler.BehaviourEntry<ClickBehaviour>> buttonClicks
protected final ArrayList<AbstractMouseAndKeyHandler.BehaviourEntry<ClickBehaviour>> keyClicks
protected final ArrayList<AbstractMouseAndKeyHandler.BehaviourEntry<ScrollBehaviour>> scrolls
public void setInputMap(InputTriggerMap inputMap)
public void setBehaviourMap(BehaviourMap behaviourMap)
protected void update()
inputMap
and
behaviourMap
. If expected mod counts are not matched, call
updateInternalMaps()
to rebuild the internal behaviour lists.Copyright © 2015–2022 SciJava. All rights reserved.