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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns this span's typeface.voidupdateDrawState(TextPaint textPaint) voidupdateMeasureState(TextPaint textPaint) Methods inherited from class android.text.style.MetricAffectingSpan
getUnderlyingMethods 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:
updateMeasureStatein classMetricAffectingSpan
-
updateDrawState
- Specified by:
updateDrawStatein classCharacterStyle
-