public class ServerTextStyle
extends java.lang.Object
implements java.io.Serializable
文本对象的风格。
限定符和类型 | 字段和说明 |
---|---|
TextAlignment |
align
注记文本的对齐方式,默认为TextAlignment.BASELINECENTER。
|
ServerColor |
backColor
注记文本的背景色。
|
java.lang.Boolean |
backOpaque
注记背景是否透明。
|
java.lang.Boolean |
bold
注记对象是否为粗体字。
|
double |
fontHeight
文本字体的高度,默认值为10,单位与sizeFixed有关。
|
java.lang.String |
fontName
文本字体的名称。
|
double |
fontScale
文本字体的缩放比例。
|
int |
fontWeight
文本字体的磅数,表示粗体的具体数值。
|
double |
fontWidth
文本字体的宽度。
|
ServerColor |
foreColor
文本的前景色。
|
java.lang.Boolean |
italic
文本是否采用斜体,默认为false,表示不采用斜体。
|
double |
italicAngle
字体倾斜角度,正负度之间,以度为单位,精确到0.1度。
|
int |
opaqueRate
注记文字的不透明度,只对三维字体有效。
|
java.lang.Boolean |
outline
是否以轮廓的方式来显示文本的背景,默认为false
|
double |
rotation
文本旋转的角度。
|
java.lang.Boolean |
shadow
文本是否有阴影,默认为false
|
java.lang.Boolean |
sizeFixed
文本大小是否固定,默认为true
|
java.lang.Boolean |
strikeout
文本字体是否加删除线,默认为false
|
java.lang.Boolean |
underline
文本字体是否加下划线,默认为false
|
构造器和说明 |
---|
ServerTextStyle()
构造函数。
|
public TextAlignment align
注记文本的对齐方式,默认为TextAlignment.BASELINECENTER。
public ServerColor backColor
注记文本的背景色。默认值为蓝色。
public java.lang.Boolean backOpaque
注记背景是否透明。默认为false,即透明。
public java.lang.Boolean bold
注记对象是否为粗体字。默认为false,表示非粗体。
public double fontHeight
文本字体的高度,默认值为10,单位与sizeFixed有关。
public java.lang.String fontName
文本字体的名称。
public double fontScale
文本字体的缩放比例。
public int fontWeight
文本字体的磅数,表示粗体的具体数值。
取值范围为从0-900之间的整百数,如400表示正常显示,700表示为粗体,可参见微软 MSDN 帮助中关于 LOGFONT 类的介绍。 默认值为400。
public double fontWidth
文本字体的宽度。
public ServerColor foreColor
文本的前景色。
public java.lang.Boolean italic
文本是否采用斜体,默认为false,表示不采用斜体。
public double italicAngle
字体倾斜角度,正负度之间,以度为单位,精确到0.1度。
public int opaqueRate
注记文字的不透明度,只对三维字体有效。
public java.lang.Boolean outline
是否以轮廓的方式来显示文本的背景,默认为false
public double rotation
文本旋转的角度。
public java.lang.Boolean shadow
文本是否有阴影,默认为false
public java.lang.Boolean sizeFixed
文本大小是否固定,默认为true
public java.lang.Boolean strikeout
文本字体是否加删除线,默认为false
public java.lang.Boolean underline
文本字体是否加下划线,默认为false