| 包 | com.supermap.web.clustering |
| 类 | public class CellClusterStyle |
| 继承 | CellClusterStyle Style 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 | ||
![]() |
克隆 Style 对象。
|
Style | |
|
destroy(sprite:Sprite):void
[Override] 销毁显示列表构造块 Sprite。
|
CellClusterStyle | ||
|
[Override] 绘制要素。
|
CellClusterStyle | ||
|
[Override] 初始化 style。
|
CellClusterStyle | ||
| backgroundAlpha | 属性 |
backgroundAlpha:Number
获取或设置 CellClusterStyle 背景透明度,0 表示完全透明,1 表示不透明。
默认值为: 1.
public function get backgroundAlpha():Number public function set backgroundAlpha(value:Number):void| backgroundColor | 属性 |
backgroundColor:Number
获取或设置 CellClusterStyle 背景颜色,默认为绿色。
默认值为: 7786752.
public function get backgroundColor():Number public function set backgroundColor(value:Number):void| borderAlpha | 属性 |
borderAlpha:Number
获取或设置 CellClusterStyle 的边界透明度,0 表示完全透明,1 表示不透明。
默认值为: 1.
public function get borderAlpha():Number public function set borderAlpha(value:Number):void| borderColor | 属性 |
borderColor:Number
获取或设置 CellClusterStyle 的边界颜色,默认为黑色。
默认值为: 0.
public function get borderColor():Number public function set borderColor(value:Number):void| borderThickness | 属性 |
borderThickness:Number
获取或设置 CellClusterStyle 边界宽度,单位:像素。
默认值为: 1.
public function get borderThickness():Number public function set borderThickness(value:Number):void| cornerRadius | 属性 |
cornerRadius:Number
获取或设置 CellClusterStyle 的圆角半径,单位:像素。
默认值为: 5.
public function get cornerRadius():Number public function set cornerRadius(value:Number):void| isSizeWithWeightFactor | 属性 |
isSizeWithWeightFactor:Boolean
获取或设置 CellClusterStyle 的大小是否随聚合点的权重大小改变。
默认值为: true.
public function get isSizeWithWeightFactor():Boolean public function set isSizeWithWeightFactor(value:Boolean):void| paddingBottom | 属性 |
paddingBottom:Number
获取或设置 CellClusterStyle 的下边距。
public function get paddingBottom():Number public function set paddingBottom(value:Number):void| paddingLeft | 属性 |
paddingLeft:Number
获取或设置 CellClusterStyle 的左边距。
public function get paddingLeft():Number public function set paddingLeft(value:Number):void| paddingRight | 属性 |
paddingRight:Number
获取或设置 CellClusterStyle 的右边距。
public function get paddingRight():Number public function set paddingRight(value:Number):void| paddingTop | 属性 |
paddingTop:Number
获取或设置 CellClusterStyle 的上边距。
public function get paddingTop():Number public function set paddingTop(value:Number):void| size | 属性 |
size:Number
获取或设置 CellClusterStyle 的大小。
public function get size():Number public function set size(value:Number):void| textFormat | 属性 |
textFormat:TextFormat
获取或设置 CellClusterStyle 的文本格式。
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 |