Constructor and Description |
---|
FormattedSection(String text,
double fontScale)
Creates a formatted section.
|
FormattedSection(String text,
double fontScale,
String[] fontStack)
Creates a formatted section.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
double |
getFontScale()
Returns displayed text's font scale.
|
String[] |
getFontStack()
Returns the font stack with main and fallback fonts.
|
String |
getText()
Returns the displayed text.
|
int |
hashCode() |
public FormattedSection(String text, double fontScale, String[] fontStack)
text
- displayed stringfontScale
- scale of the font, 1.0 is defaultfontStack
- main and fallback fonts that are a part of the stylepublic FormattedSection(String text, double fontScale)
text
- displayed stringfontScale
- scale of the font, 1.0 is defaultpublic String getText()
public double getFontScale()
public String[] getFontStack()
© 2015–2018 Mapbox. All rights reserved.