Package icyllis.modernui.text.style
Class MetricAffectingSpan
java.lang.Object
icyllis.modernui.text.style.CharacterStyle
icyllis.modernui.text.style.MetricAffectingSpan
- All Implemented Interfaces:
UpdateAppearance,UpdateLayout,Cloneable
- Direct Known Subclasses:
AbsoluteSizeSpan,CodeBlockSpan,CodeSpan,HeadingSpan,LocaleSpan,RelativeSizeSpan,ReplacementSpan,StyleSpan,SubscriptSpan,SuperscriptSpan,TypefaceSpan
The classes that affect character-level text formatting in a way that
changes the metric of characters extend this class.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidupdateDrawState(TextPaint paint) abstract voidupdateMeasureState(TextPaint paint) Classes that extendMetricAffectingSpanimplement this method to update the text formatting in a way that can change the width or height of characters.Methods inherited from class icyllis.modernui.text.style.CharacterStyle
clone, wrap
-
Constructor Details
-
MetricAffectingSpan
public MetricAffectingSpan()
-
-
Method Details
-
updateDrawState
- Specified by:
updateDrawStatein classCharacterStyle
-
updateMeasureState
Classes that extendMetricAffectingSpanimplement this method to update the text formatting in a way that can change the width or height of characters.- Parameters:
paint- the paint used for measuring the text
-