public class StyleResolver extends Object
AttributedStyle.| Constructor and Description |
|---|
StyleResolver(Function<String,String> source) |
| Modifier and Type | Method and 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.
public AttributedStyle resolve(String spec, String defaultSpec)
If this resolves to AttributedStyle.DEFAULT then given default specification is used if non-null.
Copyright © 2020. All rights reserved.