包 | com.supermap.web.symbol.grid |
类 | public class GridItem |
继承 | GridItem ![]() ![]() |
属性 | 定义方 | ||
---|---|---|---|
alpha : Number
方格透明度 默认为1
|
GridItem | ||
attributes : Object
获取方格项对应的属性绑定对象
|
GridItem | ||
borderAlpha : Number
方格边框透明度 默认为1
|
GridItem | ||
borderColor : uint
方格边框颜色 默认为0x0000FF
|
GridItem | ||
borderWeight : Number
方格边框宽度 默认为1
|
GridItem | ||
color : uint
方格默认颜色 默认为0xFF0000
|
GridItem | ||
isBorder : Boolean
方格是否显示边框 默认为false
|
GridItem |
方法 | 定义方 | ||
---|---|---|---|
GridItem(size:Number = 10, color:uint = 0xFF0000, alpha:Number = 1, attributes:Object = null, isBorder:Boolean = false, borderColor:uint = 0x0000FF, borderAlpha:Number = 1, borderWeight:Number = 1)
构造函数
|
GridItem | ||
![]() |
clear(sprite:Sprite):void
清除显示列表构造块 Sprite.graphics 中装载的所有矢量元素。
|
Style | |
![]() |
克隆 Style 对象。
|
Style | |
![]() |
destroy(sprite:Sprite):void
销毁显示列表构造块 Sprite。
|
Style | |
![]() |
绘制要素。
|
Style | |
![]() |
初始化 style。
|
Style |
alpha | 属性 |
alpha:Number
方格透明度 默认为1
public function get alpha():Number
public function set alpha(value:Number):void
attributes | 属性 |
attributes:Object
获取方格项对应的属性绑定对象
public function get attributes():Object
public function set attributes(value:Object):void
borderAlpha | 属性 |
borderAlpha:Number
方格边框透明度 默认为1
public function get borderAlpha():Number
public function set borderAlpha(value:Number):void
borderColor | 属性 |
borderColor:uint
方格边框颜色 默认为0x0000FF
public function get borderColor():uint
public function set borderColor(value:uint):void
borderWeight | 属性 |
borderWeight:Number
方格边框宽度 默认为1
public function get borderWeight():Number
public function set borderWeight(value:Number):void
color | 属性 |
color:uint
方格默认颜色 默认为0xFF0000
public function get color():uint
public function set color(value:uint):void
isBorder | 属性 |
isBorder:Boolean
方格是否显示边框 默认为false
public function get isBorder():Boolean
public function set isBorder(value:Boolean):void
GridItem | () | 构造函数 |
public function GridItem(size:Number = 10, color:uint = 0xFF0000, alpha:Number = 1, attributes:Object = null, isBorder:Boolean = false, borderColor:uint = 0x0000FF, borderAlpha:Number = 1, borderWeight:Number = 1)
构造函数
参数size:Number (default = 10 ) — 方格项默认大小 默认为10 |
|
color:uint (default = 0xFF0000 ) — 方格默认颜色 默认为0xFF0000 |
|
alpha:Number (default = 1 ) — 方格透明度 默认为1 |
|
attributes:Object (default = null ) — 方格属性绑定信息 默认为Null |
|
isBorder:Boolean (default = false ) — 方格是否显示边框 默认为false |
|
borderColor:uint (default = 0x0000FF ) — 方格边框颜色 默认为0x0000FF |
|
borderAlpha:Number (default = 1 ) — 方格边框透明度 默认为1 |
|
borderWeight:Number (default = 1 ) — 方格边框宽度 默认为1 |