Package icyllis.modernui.text.style
Class CharacterStyle
java.lang.Object
icyllis.modernui.text.style.CharacterStyle
- All Implemented Interfaces:
Cloneable
- Direct Known Subclasses:
BackgroundColorSpan
,ClickableSpan
,ForegroundColorSpan
,MetricAffectingSpan
,StrikethroughSpan
,UnderlineSpan
The classes that affect character-level text formatting extend this
class.
Most extend its subclass
Most extend its subclass
MetricAffectingSpan
, but simple
ones may just implement UpdateAppearance
.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
A givenCharacterStyle
can only be applied to a single region of a givenSpanned
.abstract void
updateDrawState
(TextPaint paint) static CharacterStyle
wrap
(CharacterStyle cs) A givenCharacterStyle
can only be applied to a single region of a givenSpanned
.
-
Constructor Details
-
CharacterStyle
public CharacterStyle()
-
-
Method Details
-
updateDrawState
-
wrap
A givenCharacterStyle
can only be applied to a single region of a givenSpanned
.
If you need to attach the sameCharacterStyle
to multiple regions, you can use this method to wrap it with a new object that will have the same effect but be a distinct object so that it can also be attached without conflict. -
clone
A givenCharacterStyle
can only be applied to a single region of a givenSpanned
.
If you need to attach the sameCharacterStyle
to multiple regions, you can use this method to clone a new object that will have the same effect but be a distinct object so that it can also be attached without conflict.
-