MeiCam SDK For Android  3.14.0
List of all members
com.meicam.sdk.NvsCaptionSpan Class Reference

captions span. More...

Inheritance diagram for com.meicam.sdk.NvsCaptionSpan:
com.meicam.sdk.NvsBodyOpacitySpan com.meicam.sdk.NvsColorSpan com.meicam.sdk.NvsFontFamilySpan com.meicam.sdk.NvsFontSizeRatioSpan com.meicam.sdk.NvsItalicSpan com.meicam.sdk.NvsNormalTextSpan com.meicam.sdk.NvsOpacitySpan com.meicam.sdk.NvsOutlineColorSpan com.meicam.sdk.NvsOutlineOpacitySpan com.meicam.sdk.NvsOutlineWidthSpan com.meicam.sdk.NvsRendererIdSpan com.meicam.sdk.NvsShadowOpacitySpan com.meicam.sdk.NvsUnderlineSpan com.meicam.sdk.NvsWeightSpan

Span type

static final String SPAN_TYPE_COLOR = "color"
 The color to set, defalut 1,1,1, type is float. More...
 
static final String SPAN_TYPE_FONT_SIZE_RATIO = "fontSizeRatio"
 The size ratio to set, defalut 1f, type is Float. More...
 
static final String SPAN_TYPE_FONT_FAMILY = "fontFamily"
 The font for the text, defalut is "", type is String. More...
 
static final String SPAN_TYPE_WEIGHT = "weight"
 Control the size of the font, range [100,900], type is Integer. More...
 
static final String SPAN_TYPE_ITALIC = "italic"
 Whether to use italics for characters within span, type is Boolean. More...
 
static final String SPAN_TYPE_UNDERLINE = "underline"
 Whether to underline characters within span, type is Boolean. More...
 
static final String SPAN_TYPE_OPACITY = "opacity"
 Set transparency,default 1, type is Float. More...
 
static final String SPAN_TYPE_BODY_OPACITY = "bodyOpacity"
 Set text body transparency,default 1, type is Float. More...
 
static final String SPAN_TYPE_OUTLINE_OPACITY = "outlineOpacity"
 Set text outline transparency,default 1, type is Float. More...
 
static final String SPAN_TYPE_SHADOW_OPACITY = "shadowOpacity"
 Set text shadow transparency,default 1, type is Float. More...
 
static final String SPAN_TYPE_RENDER_ID = "rendererId"
 There is a complexRender element inside, type is String. More...
 
static final String SPAN_TYPE_OUTLINE_COLOR = "outlineColor"
 The color to set outline, defalut (1,1,1,1), type is NvsColor. More...
 
static final String SPAN_TYPE_OUTLINE_WIDTH = "outlineWidth"
 Control the size of the outline, default 0. More...
 
static final String SPAN_TYPE_NORMAL_TEXT = "normalText"
 Normal text control the size of the outline, default 0. More...
 
 NvsCaptionSpan ()
 
 NvsCaptionSpan (String type, int start, int end)
 
String getType ()
 
int getStart ()
 
void setStart (int start)
 
int getEnd ()
 
void setEnd (int end)
 
String toString ()
 

Detailed Description

captions span.

Sets the text style at the specified position in the caption. The settable properties include: color, sizeRatio, fontFamily, etc. Set the value, check the parameter type. If the parameter type is incorrect, will inoperative.

Warning
In the NvsCaption class, all public APIs are used in the UI thread! ! !

Constructor & Destructor Documentation

◆ NvsCaptionSpan() [1/2]

com.meicam.sdk.NvsCaptionSpan.NvsCaptionSpan ( )
inline

◆ NvsCaptionSpan() [2/2]

com.meicam.sdk.NvsCaptionSpan.NvsCaptionSpan ( String  type,
int  start,
int  end 
)
inline

Member Function Documentation

◆ getEnd()

int com.meicam.sdk.NvsCaptionSpan.getEnd ( )
inline

◆ getStart()

int com.meicam.sdk.NvsCaptionSpan.getStart ( )
inline

◆ getType()

String com.meicam.sdk.NvsCaptionSpan.getType ( )
inline

◆ setEnd()

void com.meicam.sdk.NvsCaptionSpan.setEnd ( int  end)
inline

◆ setStart()

void com.meicam.sdk.NvsCaptionSpan.setStart ( int  start)
inline

◆ toString()

String com.meicam.sdk.NvsCaptionSpan.toString ( )
inline

Member Data Documentation

◆ SPAN_TYPE_BODY_OPACITY

final String com.meicam.sdk.NvsCaptionSpan.SPAN_TYPE_BODY_OPACITY = "bodyOpacity"
static

Set text body transparency,default 1, type is Float.

◆ SPAN_TYPE_COLOR

final String com.meicam.sdk.NvsCaptionSpan.SPAN_TYPE_COLOR = "color"
static

The color to set, defalut 1,1,1, type is float.

◆ SPAN_TYPE_FONT_FAMILY

final String com.meicam.sdk.NvsCaptionSpan.SPAN_TYPE_FONT_FAMILY = "fontFamily"
static

The font for the text, defalut is "", type is String.

◆ SPAN_TYPE_FONT_SIZE_RATIO

final String com.meicam.sdk.NvsCaptionSpan.SPAN_TYPE_FONT_SIZE_RATIO = "fontSizeRatio"
static

The size ratio to set, defalut 1f, type is Float.

◆ SPAN_TYPE_ITALIC

final String com.meicam.sdk.NvsCaptionSpan.SPAN_TYPE_ITALIC = "italic"
static

Whether to use italics for characters within span, type is Boolean.

◆ SPAN_TYPE_NORMAL_TEXT

final String com.meicam.sdk.NvsCaptionSpan.SPAN_TYPE_NORMAL_TEXT = "normalText"
static

Normal text control the size of the outline, default 0.

◆ SPAN_TYPE_OPACITY

final String com.meicam.sdk.NvsCaptionSpan.SPAN_TYPE_OPACITY = "opacity"
static

Set transparency,default 1, type is Float.

◆ SPAN_TYPE_OUTLINE_COLOR

final String com.meicam.sdk.NvsCaptionSpan.SPAN_TYPE_OUTLINE_COLOR = "outlineColor"
static

The color to set outline, defalut (1,1,1,1), type is NvsColor.

◆ SPAN_TYPE_OUTLINE_OPACITY

final String com.meicam.sdk.NvsCaptionSpan.SPAN_TYPE_OUTLINE_OPACITY = "outlineOpacity"
static

Set text outline transparency,default 1, type is Float.

◆ SPAN_TYPE_OUTLINE_WIDTH

final String com.meicam.sdk.NvsCaptionSpan.SPAN_TYPE_OUTLINE_WIDTH = "outlineWidth"
static

Control the size of the outline, default 0.

◆ SPAN_TYPE_RENDER_ID

final String com.meicam.sdk.NvsCaptionSpan.SPAN_TYPE_RENDER_ID = "rendererId"
static

There is a complexRender element inside, type is String.

◆ SPAN_TYPE_SHADOW_OPACITY

final String com.meicam.sdk.NvsCaptionSpan.SPAN_TYPE_SHADOW_OPACITY = "shadowOpacity"
static

Set text shadow transparency,default 1, type is Float.

◆ SPAN_TYPE_UNDERLINE

final String com.meicam.sdk.NvsCaptionSpan.SPAN_TYPE_UNDERLINE = "underline"
static

Whether to underline characters within span, type is Boolean.

◆ SPAN_TYPE_WEIGHT

final String com.meicam.sdk.NvsCaptionSpan.SPAN_TYPE_WEIGHT = "weight"
static

Control the size of the font, range [100,900], type is Integer.


The documentation for this class was generated from the following file: