Module org.bigdataviewer.core
Package bdv.ui.keymap
Class AbstractKeymapManager<T extends AbstractKeymapManager<T>>
- java.lang.Object
-
- bdv.ui.settings.style.AbstractStyleManager<T,Keymap>
-
- bdv.ui.keymap.AbstractKeymapManager<T>
-
- All Implemented Interfaces:
StyleManager<T,Keymap>
- Direct Known Subclasses:
KeymapManager
public abstract class AbstractKeymapManager<T extends AbstractKeymapManager<T>> extends AbstractStyleManager<T,Keymap>
Manages a collection ofKeymap.Provides de/serialization of user-defined keymaps.
- Author:
- Tobias Pietzsch
-
-
Field Summary
-
Fields inherited from class bdv.ui.settings.style.AbstractStyleManager
builtinStyles, selectedStyle, userStyles
-
-
Constructor Summary
Constructors Constructor Description AbstractKeymapManager()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description KeymapgetForwardSelectedKeymap()Returns a finalKeymapinstance that always has the same properties as the selected keymap.protected voidloadStyles(File directory)protected voidsaveStyles(File directory)voidsetSelectedStyle(Keymap keymap)-
Methods inherited from class bdv.ui.settings.style.AbstractStyleManager
duplicate, getBuiltinStyles, getSelectedStyle, getUserStyles, loadBuiltinStyles, nameExists, remove, rename, set, styleForName
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface bdv.ui.settings.style.StyleManager
saveStyles
-
-
-
-
Method Detail
-
setSelectedStyle
public void setSelectedStyle(Keymap keymap)
- Specified by:
setSelectedStylein interfaceStyleManager<T extends AbstractKeymapManager<T>,Keymap>- Overrides:
setSelectedStylein classAbstractStyleManager<T extends AbstractKeymapManager<T>,Keymap>
-
getForwardSelectedKeymap
public Keymap getForwardSelectedKeymap()
Returns a finalKeymapinstance that always has the same properties as the selected keymap.- Returns:
- a keymap instance that always has the same properties as the selected keymap.
-
loadStyles
protected void loadStyles(File directory) throws IOException
- Throws:
IOException
-
saveStyles
protected void saveStyles(File directory) throws IOException
- Throws:
IOException
-
-