com.herewhite.sdk.domain.MemberState class 参考

  • Android

更新时间不可用

详细描述

适用版本:Whiteboard Android SDK 2.16.134。

MemberState 类,用于设置互动白板实时房间的白板工具状态。

父类:WhiteObject;继承接口详见父类。

属性与 JSON 字段

Java 非公开字段通过对应 getter/setter 访问;可选包装类型未设置时通常不写入 JSON。初值包含字段声明及无参构造中的直接赋值;其他构造参数以签名为准。

字段声明源码初值说明
currentApplianceNameString currentApplianceName未显式赋值

白板工具名称,详见 Appliance。

shapeTypeShapeType shapeType未显式赋值

图形工具的类型。

strokeColorint[] strokeColor未显式赋值

线条颜色,为 RGB 格式,例如,[0, 0, 255] 表示蓝色。

strokeWidthDouble strokeWidth未显式赋值

线条粗细。

textSizeDouble textSize未显式赋值

字体大小。Chrome 浏览器对于小于 12 的字体会自动调整为 12。

textColorint[] textColor未显式赋值

文本颜色,为 RGB 格式,例如,[0, 0, 255] 表示蓝色。

textCanSelectTextBoolean textCanSelectText未显式赋值

文本是否可直接选择

dottedLineBoolean dottedLine未显式赋值

新铅笔是否画虚线

pencilEraserSizeInteger pencilEraserSize未显式赋值

铅笔橡皮的尺寸,取值 1~3

strokeTypeStrokeType strokeType未显式赋值

模型属性;通过对应 getter/setter 访问。

strokeOpacityDouble strokeOpacity未显式赋值

线条透明度。

fillOpacityDouble fillOpacity未显式赋值

图形填充透明度。

fillColorint[] fillColor未显式赋值

图形填充颜色,为 RGB 格式,例如,[0, 0, 255] 表示蓝色。

表格内容超出当前宽度,可横向滚动查看更多列。
公开成员签名
MemberState ()
StringgetCurrentApplianceName ()
voidsetCurrentApplianceName (String currentApplianceName)
voidsetCurrentApplianceName (String currentApplianceName, ShapeType shapeType)
ShapeTypegetShapeType ()
voidsetShapeType (ShapeType shapeType)
int[]getStrokeColor ()
voidsetStrokeColor (int[] strokeColor)
int[]getTextColor ()
voidsetTextColor (int[] textColor)
doublegetStrokeWidth ()
voidsetStrokeWidth (double strokeWidth)
doublegetTextSize ()
voidsetTextSize (double textSize)
BooleangetTextCanSelectText ()
voidsetTextCanSelectText (Boolean textCanSelectText)
BooleangetDottedLine ()
voidsetDottedLine (Boolean dottedLine)
IntegergetPencilEraserSize ()
voidsetPencilEraserSize (Integer pencilEraserSize)
StrokeTypegetStrokeType ()
voidsetStrokeType (StrokeType strokeType)
DoublegetStrokeOpacity ()
voidsetStrokeOpacity (Double strokeOpacity)
DoublegetFillOpacity ()
voidsetFillOpacity (Double fillOpacity)
int[]getFillColor ()
voidsetFillColor (int[] fillColor)
表格内容超出当前宽度,可横向滚动查看更多列。

变量说明

currentApplianceName

Text
String currentApplianceName

源码初值:未显式赋值

白板工具名称,详见 Appliance。

shapeType

Text
ShapeType shapeType

源码初值:未显式赋值

图形工具的类型。

strokeColor

Text
int[] strokeColor

源码初值:未显式赋值

线条颜色,为 RGB 格式,例如,[0, 0, 255] 表示蓝色。

strokeWidth

Text
Double strokeWidth

源码初值:未显式赋值

线条粗细。

textSize

Text
Double textSize

源码初值:未显式赋值

字体大小。Chrome 浏览器对于小于 12 的字体会自动调整为 12。

textColor

Text
int[] textColor

源码初值:未显式赋值

文本颜色,为 RGB 格式,例如,[0, 0, 255] 表示蓝色。

textCanSelectText

Text
Boolean textCanSelectText

源码初值:未显式赋值

文本是否可直接选择

dottedLine

Text
Boolean dottedLine

源码初值:未显式赋值

新铅笔是否画虚线

pencilEraserSize

Text
Integer pencilEraserSize

源码初值:未显式赋值

铅笔橡皮的尺寸,取值 1~3

strokeType

Text
StrokeType strokeType

源码初值:未显式赋值

模型属性;通过对应 getter/setter 访问。

strokeOpacity

Text
Double strokeOpacity

源码初值:未显式赋值

线条透明度。

fillOpacity

Text
Double fillOpacity

源码初值:未显式赋值

图形填充透明度。

fillColor

Text
int[] fillColor

源码初值:未显式赋值

图形填充颜色,为 RGB 格式,例如,[0, 0, 255] 表示蓝色。

函数说明

MemberState()

MemberState()

MemberState:com.herewhite.sdk.domain.MemberState 的公开成员。参数和返回类型见下方签名。

getCurrentApplianceName()

String getCurrentApplianceName()

获取互动白板实时房间内当前使用的白板工具名称。

返回值

互动白板实时房间内当前使用的白板工具名称。

setCurrentApplianceName()

void setCurrentApplianceName(String currentApplianceName)

设置互动白板实时房间内使用的白板工具。

参数
参数名描述
currentApplianceName

白板工具名称,详见 Appliance。

表格内容超出当前宽度,可横向滚动查看更多列。

setCurrentApplianceName()

void setCurrentApplianceName(String currentApplianceName, ShapeType shapeType)

设置互动白板实时房间内使用的白板工具。

参数
参数名描述
currentApplianceName

白板工具名称,详见 Appliance。

shapeType

图形工具,默认值为 Triangle,详见 ShapeType。

表格内容超出当前宽度,可横向滚动查看更多列。

getShapeType()

ShapeType getShapeType()

获取图形工具的类型。

自从

2.12.26

返回值

图形工具的类型。详见 ShapeType。

setShapeType()

void setShapeType(ShapeType shapeType)

设置图形工具的类型。

自从

2.12.26

参数
参数名描述
shapeType

图形工具的类型。详见 ShapeType。

表格内容超出当前宽度,可横向滚动查看更多列。

getStrokeColor()

int[] getStrokeColor()

获取用户设置的线条颜色。

返回值

线条颜色,为 RGB 格式,例如,[0, 0, 255] 表示蓝色。

setStrokeColor()

void setStrokeColor(int[] strokeColor)

设置线条颜色。

参数
参数名描述
strokeColor

线条颜色,为 RGB 格式,例如,[0, 0, 255] 表示蓝色。

表格内容超出当前宽度,可横向滚动查看更多列。

getTextColor()

int[] getTextColor()

获取文本工具中文字的颜色。

返回值

文本颜色的数组。

setTextColor()

void setTextColor(int[] textColor)

设置文本工具中文字的颜色。

参数
参数名描述
textColor

文本颜色的数组。

表格内容超出当前宽度,可横向滚动查看更多列。

getStrokeWidth()

double getStrokeWidth()

获取用户设置的线条粗细。

返回值

线条粗细。

setStrokeWidth()

void setStrokeWidth(double strokeWidth)

设置线条粗细。

参数
参数名描述
strokeWidth

线条粗细。

表格内容超出当前宽度,可横向滚动查看更多列。

getTextSize()

double getTextSize()

获取用户设置的字体大小。

返回值

字体大小。

setTextSize()

void setTextSize(double textSize)

设置字体大小。

参数
参数名描述
textSize

字体大小。Chrome 浏览器对于小于 12 的字体会自动调整为 12。

表格内容超出当前宽度,可横向滚动查看更多列。

getTextCanSelectText()

Boolean getTextCanSelectText()

获取文本是否可直接选择并编辑。

返回值

是否开启文本可选择并编辑。

setTextCanSelectText()

void setTextCanSelectText(Boolean textCanSelectText)

设置文字是否可以直接选择并编辑。

参数
参数名描述
textCanSelectText

文字是否可否直接选择并编辑:

  • true:文字可直接选择并编辑。
  • false:文字不可直接选择并编辑。
表格内容超出当前宽度,可横向滚动查看更多列。

getDottedLine()

Boolean getDottedLine()

获取新铅笔是否画虚线。

返回值

是否画虚线。

setDottedLine()

void setDottedLine(Boolean dottedLine)

设置铅笔工具画虚线。 如需更改此配置,需要在加入房间时设置 (false)}。

参数
参数名描述
dottedLine

是否画虚线。

  • true:画虚线。
  • false:画直线。
表格内容超出当前宽度,可横向滚动查看更多列。

getPencilEraserSize()

Integer getPencilEraserSize()

获取铅笔橡皮的尺寸。

setPencilEraserSize()

void setPencilEraserSize(Integer pencilEraserSize)

设置铅笔橡皮的尺寸 如需更改此配置,需要在加入房间时设置 (false)}。

参数
参数名描述
pencilEraserSize

铅笔橡皮的尺寸,取值范围为 [1,3],值越大尺寸越大。

表格内容超出当前宽度,可横向滚动查看更多列。

getStrokeType()

StrokeType getStrokeType()

getStrokeType:com.herewhite.sdk.domain.MemberState 的公开成员。参数和返回类型见下方签名。

setStrokeType()

void setStrokeType(StrokeType strokeType)

setStrokeType:com.herewhite.sdk.domain.MemberState 的公开成员。参数和返回类型见下方签名。

getStrokeOpacity()

Double getStrokeOpacity()

获取线条透明度。

自从

2.16.100

返回值

线条透明度。取值范围为 [0.0, 1.0],0 表示完全透明,1 表示完全不透明。

setStrokeOpacity()

void setStrokeOpacity(Double strokeOpacity)

设置线条透明度。

自从

2.16.100

参数
参数名描述
strokeOpacity

线条透明度。取值范围为 [0.0, 1.0],0 表示完全透明,1 表示完全不透明。

表格内容超出当前宽度,可横向滚动查看更多列。

getFillOpacity()

Double getFillOpacity()

获取图形填充透明度。

自从

2.16.100

返回值

图形填充透明度。取值范围为 [0.0, 1.0],0 表示完全透明,1 表示完全不透明。

setFillOpacity()

void setFillOpacity(Double fillOpacity)

设置图形填充透明度。

自从

2.16.100

参数
参数名描述
fillOpacity

图形填充透明度。

表格内容超出当前宽度,可横向滚动查看更多列。

getFillColor()

int[] getFillColor()

获取图形填充颜色。

自从

2.16.100

返回值

图形填充颜色,为 RGB 格式,例如,[0, 0, 255] 表示蓝色。

setFillColor()

void setFillColor(int[] fillColor)

设置图形填充颜色。

自从

2.16.100

参数
参数名描述
fillColor

图形填充颜色,为 RGB 格式,例如,[0, 0, 255] 表示蓝色。

表格内容超出当前宽度,可横向滚动查看更多列。

这个页面有帮助吗?