com.supermap.web.core.styles
public class LineStyle
继承 LineStyle Inheritance Style Inheritance flash.events.EventDispatcher
子类 PredefinedLineStyle

线要素风格类.

对线要素进行风格设置的父类。系统提供了一种预定义线要素风格 PredefinedLineStyle 类(继承于 LineStyle)。用户也可以继承 LineStyle 类,自定义线要素风格。



公共属性
  属性 定义方
    alpha : Number
获取或设置线要素的透明度,默认为 1.
LineStyle
    color : uint
获取或设置线要素颜色。默认为蓝色。
LineStyle
    weight : Number
获取或设置线要素宽度。默认为 2,单位:像素。
LineStyle
公共方法
  方法 定义方
   
初始化 LineStyle 类的新实例。
LineStyle
  Inherited
clear(sprite:Sprite):void
清除显示列表构造块 Sprite.graphics 中装载的所有矢量元素。
Style
  Inherited
克隆 Style 对象。
Style
  Inherited
destroy(sprite:Sprite):void
销毁显示列表构造块 Sprite。
Style
  Inherited
draw(sprite:Sprite, geometry:Geometry, attributes:Object, map:Map):void
绘制要素。
Style
  Inherited
initialize(sprite:Sprite, geometry:Geometry, attributes:Object, map:Map):void
初始化 style。
Style
受保护的方法
  方法 定义方
  Inherited
派发 Event.CHANGE 事件。
Style
  Inherited
removeAllChildren(sprite:Sprite):void
清除 Sprite 中的所有子项。
Style
  Inherited
toScreenX(map:Map, mapX:Number):Number
将地图上某一点的 X 坐标转换为屏幕坐标。
Style
  Inherited
toScreenY(map:Map, mapY:Number):Number
将地图上某一点的 Y 坐标转换为屏幕坐标。
Style
属性详细信息
alpha 属性
alpha:Number

获取或设置线要素的透明度,默认为 1.

取值范围为0-1,0表示完全透明,1表示不透明。

默认值为: 1.


Implementation
    public function get alpha():Number
    public function set alpha(value:Number):void
color 属性  
color:uint

获取或设置线要素颜色。默认为蓝色。

默认值为: 0xFF0000.


Implementation
    public function get color():uint
    public function set color(value:uint):void
weight 属性  
weight:Number

获取或设置线要素宽度。默认为 2,单位:像素。

默认值为: 1.


Implementation
    public function get weight():Number
    public function set weight(value:Number):void
构造函数详细信息
LineStyle () 构造函数
public function LineStyle()

初始化 LineStyle 类的新实例。