| 包 | com.supermap.web.themes |
| 类 | public class Theme |
| 继承 | Theme Object |
| 子类 | RawTheme |
用户若需自定义主题风格,需要继承该类。
例如用户自定义主题风格类 public class CustomTheme extends Theme,主题风格使用方法为:Map.theme = new CustomTheme();
| 属性 | 定义方 | ||
|---|---|---|---|
| alpha : Number = 1
点或线的透明度。1 表示不透明。取值范围:0~1。
|
Theme | ||
| fillAlpha : Number = 0.4
填充透明度。取值范围:0~1。
|
Theme | ||
| fillColor : uint = 0x4272d7
填充色。
|
Theme | ||
| hlFillColor : uint = 0x33ff66
客户端地物编辑时,面要素的高亮颜色。
|
Theme | ||
| hlLineColor : uint = 0x0046d2
客户端地物编辑时,弧段的高亮颜色。
|
Theme | ||
| hlPointColor : uint = 0xc2c2c2
客户端地物编辑时,结点的高亮颜色。
|
Theme | ||
| lineColor : uint = 0x5082e5
线颜色。
|
Theme | ||
| pointColor : uint = 0x4272d7
点颜色。
|
Theme | ||
| size : Number = 12
点大小。单位:像素。
|
Theme | ||
| weight : Number = 2
线宽。单位:像素。
|
Theme | ||
| 方法 | 定义方 | ||
|---|---|---|---|
|
Theme()
初始化 Theme 的新实例。
|
Theme | ||
| alpha | 属性 |
public var alpha:Number = 1
点或线的透明度。1 表示不透明。取值范围:0~1。
| fillAlpha | 属性 |
public var fillAlpha:Number = 0.4
填充透明度。取值范围:0~1。
| fillColor | 属性 |
public var fillColor:uint = 0x4272d7
填充色。
| hlFillColor | 属性 |
public var hlFillColor:uint = 0x33ff66
客户端地物编辑时,面要素的高亮颜色。
| hlLineColor | 属性 |
public var hlLineColor:uint = 0x0046d2
客户端地物编辑时,弧段的高亮颜色。
| hlPointColor | 属性 |
public var hlPointColor:uint = 0xc2c2c2
客户端地物编辑时,结点的高亮颜色。
| lineColor | 属性 |
public var lineColor:uint = 0x5082e5
线颜色。
| pointColor | 属性 |
public var pointColor:uint = 0x4272d7
点颜色。
| size | 属性 |
public var size:Number = 12
点大小。单位:像素。
| weight | 属性 |
public var weight:Number = 2
线宽。单位:像素。
| Theme | () | 构造函数 |
public function Theme()
初始化 Theme 的新实例。