Package com.mta.tehreer.layout.style
Class TypefaceSpan
java.lang.Object
android.text.style.CharacterStyle
android.text.style.MetricAffectingSpan
com.mta.tehreer.layout.style.TypefaceSpan
- All Implemented Interfaces:
UpdateAppearance
,UpdateLayout
The
ConcreteTypefaceSpan
class represents a span for specifying particular typeface.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns this span's typeface.void
updateDrawState
(TextPaint textPaint) void
updateMeasureState
(TextPaint textPaint) Methods inherited from class android.text.style.MetricAffectingSpan
getUnderlying
Methods inherited from class android.text.style.CharacterStyle
wrap
-
Constructor Details
-
TypefaceSpan
Constructs a concrete typeface span object.- Parameters:
typeface
- The typeface object.
-
-
Method Details
-
getTypeface
Returns this span's typeface.- Returns:
- The typeface of this span.
-
updateMeasureState
- Specified by:
updateMeasureState
in classMetricAffectingSpan
-
updateDrawState
- Specified by:
updateDrawState
in classCharacterStyle
-