public class StyleResolver extends Object
AttributedStyle.| Constructor and Description |
|---|
StyleResolver(StyleSource source,
String group) |
| Modifier and Type | Method and Description |
|---|---|
String |
getGroup() |
StyleSource |
getSource() |
AttributedStyle |
resolve(String spec)
Resolve the given style specification.
|
AttributedStyle |
resolve(String spec,
String defaultSpec)
Resolve the given style specification.
|
public StyleResolver(StyleSource source, String group)
public StyleSource getSource()
public String getGroup()
public AttributedStyle resolve(String spec)
If for some reason the specification is invalid, then AttributedStyle.DEFAULT will be used.
public AttributedStyle resolve(String spec, @Nullable String defaultSpec)
If this resolves to AttributedStyle.DEFAULT then given default specification is used if non-null.
Copyright © 2017. All rights reserved.