com.supermap.web.clustering
public class CellClusterStyle
继承 CellClusterStyle Inheritance Style Inheritance flash.events.EventDispatcher

聚散显示单元风格类.

该类是聚散显示中聚合点显示风格的一种。以一种圆角、中心显示聚合点数的四方形显示聚合点。默认样式如下图:



公共属性
  属性 定义方
    backgroundAlpha : Number
获取或设置 CellClusterStyle 背景透明度,0 表示完全透明,1 表示不透明。
CellClusterStyle
    backgroundColor : Number
获取或设置 CellClusterStyle 背景颜色,默认为绿色。
CellClusterStyle
    borderAlpha : Number
获取或设置 CellClusterStyle 的边界透明度,0 表示完全透明,1 表示不透明。
CellClusterStyle
    borderColor : Number
获取或设置 CellClusterStyle 的边界颜色,默认为黑色。
CellClusterStyle
    borderThickness : Number
获取或设置 CellClusterStyle 边界宽度,单位:像素。
CellClusterStyle
    cornerRadius : Number
获取或设置 CellClusterStyle 的圆角半径,单位:像素。
CellClusterStyle
    isSizeWithWeightFactor : Boolean
获取或设置 CellClusterStyle 的大小是否随聚合点的权重大小改变。
CellClusterStyle
    paddingBottom : Number
获取或设置 CellClusterStyle 的下边距。
CellClusterStyle
    paddingLeft : Number
获取或设置 CellClusterStyle 的左边距。
CellClusterStyle
    paddingRight : Number
获取或设置 CellClusterStyle 的右边距。
CellClusterStyle
    paddingTop : Number
获取或设置 CellClusterStyle 的上边距。
CellClusterStyle
    size : Number
获取或设置 CellClusterStyle 的大小。
CellClusterStyle
    textFormat : TextFormat
获取或设置 CellClusterStyle 的文本格式。
CellClusterStyle
公共方法
  方法 定义方
   
初始化 CellClusterStyle 类的新实例。
CellClusterStyle
   
clear(sprite:Sprite):void
[Override] 清除显示列表构造块 Sprite.graphics 中装载的所有矢量元素。
CellClusterStyle
  Inherited
克隆 Style 对象。
Style
   
destroy(sprite:Sprite):void
[Override] 销毁显示列表构造块 Sprite。
CellClusterStyle
   
draw(sprite:Sprite, geometry:Geometry, attributes:Object, map:Map):void
[Override] 绘制要素。
CellClusterStyle
   
initialize(sprite:Sprite, geometry:Geometry, attributes:Object, map:Map):void
[Override] 初始化 style。
CellClusterStyle
受保护的方法
  方法 定义方
  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
属性详细信息
backgroundAlpha 属性
backgroundAlpha:Number

获取或设置 CellClusterStyle 背景透明度,0 表示完全透明,1 表示不透明。

默认值为: 1.


Implementation
    public function get backgroundAlpha():Number
    public function set backgroundAlpha(value:Number):void
backgroundColor 属性  
backgroundColor:Number

获取或设置 CellClusterStyle 背景颜色,默认为绿色。

默认值为: 7786752.


Implementation
    public function get backgroundColor():Number
    public function set backgroundColor(value:Number):void
borderAlpha 属性  
borderAlpha:Number

获取或设置 CellClusterStyle 的边界透明度,0 表示完全透明,1 表示不透明。

默认值为: 1.


Implementation
    public function get borderAlpha():Number
    public function set borderAlpha(value:Number):void
borderColor 属性  
borderColor:Number

获取或设置 CellClusterStyle 的边界颜色,默认为黑色。

默认值为: 0.


Implementation
    public function get borderColor():Number
    public function set borderColor(value:Number):void
borderThickness 属性  
borderThickness:Number

获取或设置 CellClusterStyle 边界宽度,单位:像素。

默认值为: 1.


Implementation
    public function get borderThickness():Number
    public function set borderThickness(value:Number):void
cornerRadius 属性  
cornerRadius:Number

获取或设置 CellClusterStyle 的圆角半径,单位:像素。

默认值为: 5.


Implementation
    public function get cornerRadius():Number
    public function set cornerRadius(value:Number):void
isSizeWithWeightFactor 属性  
isSizeWithWeightFactor:Boolean

获取或设置 CellClusterStyle 的大小是否随聚合点的权重大小改变。

默认值为: true.


Implementation
    public function get isSizeWithWeightFactor():Boolean
    public function set isSizeWithWeightFactor(value:Boolean):void
paddingBottom 属性  
paddingBottom:Number

获取或设置 CellClusterStyle 的下边距。


Implementation
    public function get paddingBottom():Number
    public function set paddingBottom(value:Number):void
paddingLeft 属性  
paddingLeft:Number

获取或设置 CellClusterStyle 的左边距。


Implementation
    public function get paddingLeft():Number
    public function set paddingLeft(value:Number):void
paddingRight 属性  
paddingRight:Number

获取或设置 CellClusterStyle 的右边距。


Implementation
    public function get paddingRight():Number
    public function set paddingRight(value:Number):void
paddingTop 属性  
paddingTop:Number

获取或设置 CellClusterStyle 的上边距。


Implementation
    public function get paddingTop():Number
    public function set paddingTop(value:Number):void
size 属性  
size:Number

获取或设置 CellClusterStyle 的大小。


Implementation
    public function get size():Number
    public function set size(value:Number):void
textFormat 属性  
textFormat:TextFormat

获取或设置 CellClusterStyle 的文本格式。


Implementation
    public function get textFormat():TextFormat
    public function set textFormat(value:TextFormat):void
构造函数详细信息
CellClusterStyle () 构造函数
public function CellClusterStyle()

初始化 CellClusterStyle 类的新实例。

方法详细描述
clear () 方法
override public function clear(sprite:Sprite):void

清除显示列表构造块 Sprite.graphics 中装载的所有矢量元素。

参数

sprite:Sprite

destroy () 方法  
override public function destroy(sprite:Sprite):void

销毁显示列表构造块 Sprite。

参数

sprite:Sprite

draw () 方法  
override public function draw(sprite:Sprite, geometry:Geometry, attributes:Object, map:Map):void

绘制要素。

参数

sprite:Sprite
 
geometry:Geometry
 
attributes:Object
 
map:Map

initialize () 方法  
override public function initialize(sprite:Sprite, geometry:Geometry, attributes:Object, map:Map):void

初始化 style。

参数

sprite:Sprite
 
geometry:Geometry
 
attributes:Object
 
map:Map