com.supermap.web.iServerJava2.themeServices
public class ServerTextStyle
继承 ServerTextStyle Inheritance Object

文本对象的显示风格。



公共属性
  属性 定义方
    align : int
获取或设置注记对象的对齐方式。
ServerTextStyle
    bgColor : ServerColor
获取或设置注记对象的背景色。默认值为红色。
ServerTextStyle
    bold : Boolean
获取或设置注记对象的文本是否为粗体字。false 表示不加粗。
ServerTextStyle
    color : ServerColor
获取或设置注记对象的颜色。默认值为红色。
ServerTextStyle
    fixedSize : Boolean
获取或设置是否固定文本的大小尺寸。.
ServerTextStyle
    fixedTextSize : int
获取或设置固定文本的大小尺寸。像素单位。当 fixedSize 为 true 时有效。
ServerTextStyle
    fontHeight : Number
获取或设置注记字体的高度。使用地图单位。当 fixedSize 为 false 时有效。
ServerTextStyle
    fontName : String
获取或设置注记字体的名称。默认值为"宋体"。
ServerTextStyle
    fontWeight : Number
获取或设置注记字体粗体表示的具体数值。以磅为单位。
ServerTextStyle
    fontWidth : Number
获取或设置注记字体的宽度。使用地图单位。当 fixedSize 为 false 时有效。
ServerTextStyle
    italic : Boolean
获取或设置注记字体是否采用斜体。false 表示不采用斜体。
ServerTextStyle
    outline : Boolean
获取或设置是否以轮廓的方式来显示注记的背景。false 表示不加轮廓。
ServerTextStyle
    rotation : Number
获取或设置注记旋转的角度,逆时针方向为正。
ServerTextStyle
    shadow : Boolean
获取或设置注记是否有阴影。false 表示无阴影。
ServerTextStyle
    stroke : Boolean
获取或设置注记字体是否加删除线。false 表示不加删除线。
ServerTextStyle
    transparent : Boolean
获取或设置注记背景是否透明。false 表示透明。
ServerTextStyle
    underline : Boolean
获取或设置注记字体是否加下划线。false 表示不加注。
ServerTextStyle
公共方法
  方法 定义方
   
初始化 ServerTextStyle 类的新实例。
ServerTextStyle
属性详细信息
align 属性
align:int

获取或设置注记对象的对齐方式。

默认值为: ServerTextAlignment.BASE_LINE_CENTER.


Implementation
    public function get align():int
    public function set align(value:int):void

另请参见

bgColor 属性  
bgColor:ServerColor

获取或设置注记对象的背景色。默认值为红色。

默认值为: (255,0,0).


Implementation
    public function get bgColor():ServerColor
    public function set bgColor(value:ServerColor):void
bold 属性  
bold:Boolean

获取或设置注记对象的文本是否为粗体字。false 表示不加粗。

默认值为: false.


Implementation
    public function get bold():Boolean
    public function set bold(value:Boolean):void
color 属性  
color:ServerColor

获取或设置注记对象的颜色。默认值为红色。

默认值为: (255,0,0).


Implementation
    public function get color():ServerColor
    public function set color(value:ServerColor):void
fixedSize 属性  
fixedSize:Boolean

获取或设置是否固定文本的大小尺寸。.

如果该属性值为 true,那么无论地图比例尺如何变化,文本对象的大小将按照固定的尺寸显示,而不随着比例尺的缩放而变化。

默认值为: false.


Implementation
    public function get fixedSize():Boolean
    public function set fixedSize(value:Boolean):void
fixedTextSize 属性  
fixedTextSize:int

获取或设置固定文本的大小尺寸。像素单位。当 fixedSize 为 true 时有效。

默认值为: 0.


Implementation
    public function get fixedTextSize():int
    public function set fixedTextSize(value:int):void

另请参见

fontHeight 属性  
fontHeight:Number

获取或设置注记字体的高度。使用地图单位。当 fixedSize 为 false 时有效。

默认值为: 1.


Implementation
    public function get fontHeight():Number
    public function set fontHeight(value:Number):void
fontName 属性  
fontName:String

获取或设置注记字体的名称。默认值为"宋体"。


Implementation
    public function get fontName():String
    public function set fontName(value:String):void
fontWeight 属性  
fontWeight:Number

获取或设置注记字体粗体表示的具体数值。以磅为单位。

默认值为: 100.


Implementation
    public function get fontWeight():Number
    public function set fontWeight(value:Number):void
fontWidth 属性  
fontWidth:Number

获取或设置注记字体的宽度。使用地图单位。当 fixedSize 为 false 时有效。

默认值为: 1.


Implementation
    public function get fontWidth():Number
    public function set fontWidth(value:Number):void
italic 属性  
italic:Boolean

获取或设置注记字体是否采用斜体。false 表示不采用斜体。

默认值为: false.


Implementation
    public function get italic():Boolean
    public function set italic(value:Boolean):void
outline 属性  
outline:Boolean

获取或设置是否以轮廓的方式来显示注记的背景。false 表示不加轮廓。

默认值为: false.


Implementation
    public function get outline():Boolean
    public function set outline(value:Boolean):void
rotation 属性  
rotation:Number

获取或设置注记旋转的角度,逆时针方向为正。

默认值为: 0.


Implementation
    public function get rotation():Number
    public function set rotation(value:Number):void
shadow 属性  
shadow:Boolean

获取或设置注记是否有阴影。false 表示无阴影。

默认值为: false.


Implementation
    public function get shadow():Boolean
    public function set shadow(value:Boolean):void
stroke 属性  
stroke:Boolean

获取或设置注记字体是否加删除线。false 表示不加删除线。

默认值为: false.


Implementation
    public function get stroke():Boolean
    public function set stroke(value:Boolean):void
transparent 属性  
transparent:Boolean

获取或设置注记背景是否透明。false 表示透明。

默认值为: false.


Implementation
    public function get transparent():Boolean
    public function set transparent(value:Boolean):void
underline 属性  
underline:Boolean

获取或设置注记字体是否加下划线。false 表示不加注。

默认值为: false.


Implementation
    public function get underline():Boolean
    public function set underline(value:Boolean):void
构造函数详细信息
ServerTextStyle () 构造函数
public function ServerTextStyle()

初始化 ServerTextStyle 类的新实例。