danger.text.span
Interface StyleSpan
- All Superinterfaces:
- CharacterSpan, MetricAffectingSpan
- All Known Implementing Classes:
- StyleSpan.Standard
public interface StyleSpan
- extends CharacterSpan, MetricAffectingSpan
When a StyleSpan is attached to text, it changes its font style.
The reason to use this instead of a FontSpan is that StyleSpan
does not claim to be a CharacterHeightAffectingSpan. If you
have a long piece of text with many style changes, it can save
a lot of time not to have to do an explicit line height calculation
for each line that is affected by a style change but not a size change.
|
Method Summary |
int |
getStyle()
The style of the font (the Font.F_* bitmask)
or 0 if this span does not change the style. |
STYLE_SPAN_TYPE
static final Class STYLE_SPAN_TYPE
getStyle
int getStyle()
- The style of the font (the Font.F_* bitmask)
or 0 if this span does not change the style.