Constructor and Description |
---|
FormattedSection(String text)
Creates a formatted section.
|
FormattedSection(String text,
Number fontScale)
Creates a formatted section.
|
FormattedSection(String text,
Number fontScale,
String[] fontStack)
Creates a formatted section.
|
FormattedSection(String text,
String[] fontStack)
Creates a formatted section.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
Number |
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, Number fontScale, String[] fontStack)
text
- displayed stringfontScale
- scale of the font, setting to null will fall back to style's default settingsfontStack
- main and fallback fonts that are a part of the style,
setting null will fall back to style's default settingspublic FormattedSection(String text, Number fontScale)
text
- displayed stringfontScale
- scale of the font, setting to null will fall back to style's default settingspublic FormattedSection(String text)
text
- displayed stringpublic String getText()
public Number getFontScale()
public String[] getFontStack()
© 2015–2018 Mapbox. All rights reserved.