Class CodeSpan
java.lang.Object
icyllis.modernui.text.style.CharacterStyle
icyllis.modernui.text.style.MetricAffectingSpan
icyllis.modernui.markflow.core.style.CodeSpan
- All Implemented Interfaces:
UpdateAppearance
,UpdateLayout
,Cloneable
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
updateDrawState
(TextPaint paint) void
updateMeasureState
(TextPaint paint) Classes that extendMetricAffectingSpan
implement 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
-
CodeSpan
-
-
Method Details
-
updateDrawState
- Overrides:
updateDrawState
in classMetricAffectingSpan
-
updateMeasureState
Description copied from class:MetricAffectingSpan
Classes that extendMetricAffectingSpan
implement this method to update the text formatting in a way that can change the width or height of characters.- Specified by:
updateMeasureState
in classMetricAffectingSpan
- Parameters:
paint
- the paint used for measuring the text
-