public class MemoryStyleSource extends Object implements StyleSource
StyleSource.| Constructor and Description |
|---|
MemoryStyleSource() |
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Clear all styles.
|
String |
get(String group,
String name)
Returns the appropriate style for the given style-group and style-name, or
null if missing. |
Iterable<String> |
groups()
Returns configured style-group names.
|
void |
remove(String group)
Remove all styles for given style-group.
|
void |
remove(String group,
String name)
Remove a specific style from style-group.
|
void |
set(String group,
String name,
String style)
Set a specific style in a style-group.
|
Map<String,String> |
styles(String group)
Returns configured styles for given style-group.
|
@Nullable public String get(String group, String name)
StyleSourcenull if missing.get in interface StyleSourcepublic void set(String group, String name, String style)
StyleSourceset in interface StyleSourcepublic void remove(String group)
StyleSourceremove in interface StyleSourcepublic void remove(String group, String name)
StyleSourceremove in interface StyleSourcepublic void clear()
StyleSourceclear in interface StyleSourcepublic Iterable<String> groups()
StyleSourcegroups in interface StyleSourcepublic Map<String,String> styles(String group)
StyleSourcestyles in interface StyleSourceCopyright © 2017. All rights reserved.