Class TextEmphasisSpan
- java.lang.Object
-
- com.google.android.exoplayer2.text.span.TextEmphasisSpan
-
- All Implemented Interfaces:
LanguageFeatureSpan
public final class TextEmphasisSpan extends Object implements LanguageFeatureSpan
A styling span for text emphasis marks.These are pronunciation aids such as Japanese boutens which can be rendered using the text-emphasis CSS property.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceTextEmphasisSpan.MarkFillThe possible mark fills that can be used.static interfaceTextEmphasisSpan.MarkShapeThe possible mark shapes that can be used.
-
Field Summary
Fields Modifier and Type Field Description static intMARK_FILL_FILLEDstatic intMARK_FILL_OPENstatic intMARK_FILL_UNKNOWNstatic intMARK_SHAPE_CIRCLEstatic intMARK_SHAPE_DOTstatic intMARK_SHAPE_NONEstatic intMARK_SHAPE_SESAMEintmarkFillThe mark fill for the text emphasis mark.intmarkShapeThe mark shape used for text emphasis.intpositionThe position of the text emphasis relative to the base text.
-
Constructor Summary
Constructors Constructor Description TextEmphasisSpan(int shape, int fill, int position)
-
-
-
Field Detail
-
MARK_SHAPE_NONE
public static final int MARK_SHAPE_NONE
- See Also:
- Constant Field Values
-
MARK_SHAPE_CIRCLE
public static final int MARK_SHAPE_CIRCLE
- See Also:
- Constant Field Values
-
MARK_SHAPE_DOT
public static final int MARK_SHAPE_DOT
- See Also:
- Constant Field Values
-
MARK_SHAPE_SESAME
public static final int MARK_SHAPE_SESAME
- See Also:
- Constant Field Values
-
MARK_FILL_UNKNOWN
public static final int MARK_FILL_UNKNOWN
- See Also:
- Constant Field Values
-
MARK_FILL_FILLED
public static final int MARK_FILL_FILLED
- See Also:
- Constant Field Values
-
MARK_FILL_OPEN
public static final int MARK_FILL_OPEN
- See Also:
- Constant Field Values
-
markShape
@MarkShape public int markShape
The mark shape used for text emphasis.
-
markFill
@MarkShape public int markFill
The mark fill for the text emphasis mark.
-
position
@Position public final int position
The position of the text emphasis relative to the base text.
-
-
Constructor Detail
-
TextEmphasisSpan
public TextEmphasisSpan(@MarkShape int shape, @MarkFill int fill, @Position int position)
-
-