public abstract class AbstractStyleManager<M extends AbstractStyleManager<M,S>,S extends Style<S>> extends Object implements StyleManager<M,S>
| Modifier and Type | Field and Description |
|---|---|
protected List<S> |
builtinStyles |
protected S |
selectedStyle |
protected List<S> |
userStyles |
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractStyleManager() |
| Modifier and Type | Method and Description |
|---|---|
S |
duplicate(S style)
Returns a copy of the specified
style, making sure that
the copy receives a name not already present in this manager's list of
styles. |
List<S> |
getBuiltinStyles() |
S |
getSelectedStyle() |
List<S> |
getUserStyles() |
protected abstract List<S> |
loadBuiltinStyles() |
protected boolean |
nameExists(String name) |
void |
remove(S style) |
void |
rename(S style,
String newName) |
void |
set(M other) |
void |
setSelectedStyle(S style) |
protected Optional<S> |
styleForName(String name) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsaveStylespublic void set(M other)
set in interface StyleManager<M extends AbstractStyleManager<M,S>,S extends Style<S>>public List<S> getBuiltinStyles()
getBuiltinStyles in interface StyleManager<M extends AbstractStyleManager<M,S>,S extends Style<S>>public List<S> getUserStyles()
getUserStyles in interface StyleManager<M extends AbstractStyleManager<M,S>,S extends Style<S>>public S getSelectedStyle()
getSelectedStyle in interface StyleManager<M extends AbstractStyleManager<M,S>,S extends Style<S>>public void setSelectedStyle(S style)
setSelectedStyle in interface StyleManager<M extends AbstractStyleManager<M,S>,S extends Style<S>>public void remove(S style)
remove in interface StyleManager<M extends AbstractStyleManager<M,S>,S extends Style<S>>public void rename(S style, String newName)
rename in interface StyleManager<M extends AbstractStyleManager<M,S>,S extends Style<S>>public S duplicate(S style)
style, making sure that
the copy receives a name not already present in this manager's list of
styles.duplicate in interface StyleManager<M extends AbstractStyleManager<M,S>,S extends Style<S>>style - the style to copy.protected boolean nameExists(String name)
Copyright © 2012–2024 BigDataViewer. All rights reserved.