com.supermap.mapping
类 LayerSettingVector

java.lang.Object
  继承者 com.supermap.mapping.LayerSetting
      继承者 com.supermap.mapping.LayerSettingVector

public class LayerSettingVector
extends LayerSetting

矢量图层设置类。

该类主要用来设置矢量图层的显示风格。矢量图层用单一的符号或风格绘制所有的要素。当你只想可视化地显示你的空间数据,只关心空间数据中各要素在什么位置,而不关心各要素在数量或性质上的不同时,可以用普通图层来显示要素数据。


构造方法摘要
LayerSettingVector()
          默认构造函数,构造一个新的 LayerSettingVector 对象。
LayerSettingVector(LayerSettingVector layerSettingVector)
          拷贝构造函数,根据给定的 LayerSettingVector 对象构造一个与其完全相同的新对象。
 
方法摘要
 GeoStyle getStyle()
          返回矢量图层的风格。
 LayerSettingType getType()
          返回此图层的类型。
 void setStyle(GeoStyle style)
          设置矢量图层的风格。
 
从类 java.lang.Object 继承的方法
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

构造方法详细信息

LayerSettingVector

public LayerSettingVector()
默认构造函数,构造一个新的 LayerSettingVector 对象。


LayerSettingVector

public LayerSettingVector(LayerSettingVector layerSettingVector)
拷贝构造函数,根据给定的 LayerSettingVector 对象构造一个与其完全相同的新对象。

参数:
layerSettingVector - 用于初始化 LayerSettingVector 新实例的对象。
方法详细信息

getStyle

public GeoStyle getStyle()
返回矢量图层的风格。

返回:
矢量图层的风格。
默认值:
默认值为 {FillBackColor=Color [A=255, R=255, G=255, B=255],FillForeColor=Color [A=255, R=189, G=235, B=255],FillGradientAngle=0,FillGradientMode=None,FillGradientOffsetRatioX=0,FillGradientOffsetRatioY=0,FillOpaqueRate=100,FillSymbolID=0,LineColor=Color [A=255, R=0, G=0, B=0],LineSymbolID=0,LineWidth=1,MarkerAngle=0,MarkerSize={Width=28,Height=-1},MarkerSymbolID=0}。

setStyle

public void setStyle(GeoStyle style)
设置矢量图层的风格。

参数:
style - 矢量图层的风格。
示例:
请参见 Layer 的示例。

getType

public LayerSettingType getType()
返回此图层的类型。

指定者:
LayerSetting 中的 getType
返回:
图层的类型。