StyleResolverpublic class StyleResolver extends Object
AttributedStyle.| Constructor | Description |
|---|---|
StyleResolver(Function<String,String> source) |
| Modifier and Type | Method | Description |
|---|---|---|
AttributedStyle |
resolve(String spec) |
Resolve the given style specification.
|
AttributedStyle |
resolve(String spec,
String defaultSpec) |
Resolve the given style specification.
|
public AttributedStyle resolve(String spec)
If for some reason the specification is invalid, then AttributedStyle.DEFAULT will be used.
spec - the specificationpublic AttributedStyle resolve(String spec, String defaultSpec)
If this resolves to AttributedStyle.DEFAULT then given default specification is used if non-null.
spec - the specificationdefaultSpec - the default specifiactionCopyright © 2020. All rights reserved.