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.


Nested Class Summary
static class StyleSpan.Standard
           
 
Nested classes/interfaces inherited from interface danger.text.span.CharacterSpan
CharacterSpan.Series, CharacterSpan.Set
 
Field Summary
static Class STYLE_SPAN_TYPE
           
 
Fields inherited from interface danger.text.span.CharacterSpan
CHARACTER_SPAN_TYPE
 
Method Summary
 int getStyle()
          The style of the font (the Font.F_* bitmask) or 0 if this span does not change the style.
 

Field Detail

STYLE_SPAN_TYPE

static final Class STYLE_SPAN_TYPE
Method Detail

getStyle

int getStyle()
The style of the font (the Font.F_* bitmask) or 0 if this span does not change the style.