com.supermap.data
类 GeoBillboard

java.lang.Object
  继承者 com.supermap.data.Geometry
      继承者 com.supermap.data.Geometry3D
          继承者 com.supermap.data.GeoBillboard

public class GeoBillboard
extends Geometry3D

布告板类。该类用于在KML图层中通过设置图片或文字新建布告板。


构造方法摘要
GeoBillboard()
          构造一个GeoBillboard的新对象。
GeoBillboard(GeoBillboard geoBillboard)
          根据指定的参数来构造一个 GeoBillboard 的新对象。
 
方法摘要
 int add(Geometry geometry, java.lang.String tag)
          在布告板中增加子对象。
 Geometry clone()
          克隆布告板。
 void dispose()
          释放几何对象所占有的本地资源。
 Geometry get(int index)
          获取指定索引的子对象。
 int getCount()
          获取子对象的数量 。
 double getHeight()
          获取布告板的高度。
 GeoBillboardQuality getQuality()
          获取布告板的质量级别。
 java.lang.String getTag(int index)
          获取指定索引的子对象的标签。
 double getWidth()
          获取布告板的宽度。
 boolean remove(int index)
          移除指定索引的布告板子对象 。
 boolean set(int index, Geometry geometry)
          将布告板中的指定的索引处的子对象设置为指定的几何对象。
 void setHeight(double height)
          设置布告板的高度。
 void setQuality(GeoBillboardQuality quality)
          设置布告板的质量级别。
 boolean SetTag(int index, java.lang.String tag)
          设置指定索引的子对象的标签。
 void setWidth(double width)
          设置布告板的宽度。
 
从类 com.supermap.data.Geometry3D 继承的方法
convertToGeoModel3D, convertToGeoModel3D, getBoundingBox, getGeoModel, getInnerPoint3D, getPosition, getRotationX, getRotationY, getRotationZ, getScaleX, getScaleY, getScaleZ, getStyle, getStyle3D, getVolume, hitTest, mirror, offset, resize, rotate, setPosition, setRotationX, setRotationY, setRotationZ, setScaleX, setScaleY, setScaleZ, setStyle, setStyle3D
 
从类 com.supermap.data.Geometry 继承的方法
addCustomGeometryCreatedListener, fromXML, getBounds, getID, getInnerPoint, getType, getVariantID, isEmpty, offset, removeCustomGeometryCreatedListener, setEmpty, setID, toXML
 
从类 java.lang.Object 继承的方法
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

构造方法详细信息

GeoBillboard

public GeoBillboard()
构造一个GeoBillboard的新对象。


GeoBillboard

public GeoBillboard(GeoBillboard geoBillboard)
根据指定的参数来构造一个 GeoBillboard 的新对象。

参数:
geoBillboard - 指定的布告板。
方法详细信息

clone

public Geometry clone()
克隆布告板。

覆盖:
java.lang.Object 中的 clone

dispose

public void dispose()
释放几何对象所占有的本地资源。

覆盖:
Geometry 中的 dispose

getWidth

public double getWidth()
获取布告板的宽度。

返回:
布告板的宽度。

setWidth

public void setWidth(double width)
设置布告板的宽度。

参数:
width - 指定的宽度。

getHeight

public double getHeight()
获取布告板的高度。

返回:
布告板的高度。

setHeight

public void setHeight(double height)
设置布告板的高度。

参数:
height - 指定的高度。

getQuality

public GeoBillboardQuality getQuality()
获取布告板的质量级别。

返回:
布告板的质量级别。

setQuality

public void setQuality(GeoBillboardQuality quality)
设置布告板的质量级别。

参数:
quality - 指定的质量级别。

getCount

public int getCount()
获取子对象的数量 。

返回:
子对象的数量 。

add

public int add(Geometry geometry,
               java.lang.String tag)
在布告板中增加子对象。

参数:
geometry - 添加到布告板的子对象,目前支持GeoPicture3D和GeoText3D类型。
tag - 子对象的标签。
返回:
子对象的索引值。

remove

public boolean remove(int index)
移除指定索引的布告板子对象 。

参数:
index - 指定的索引。
返回:
true表示移除成功,false表示移除失败。

get

public Geometry get(int index)
获取指定索引的子对象。

参数:
index - 指定的索引。
返回:
子对象。

set

public boolean set(int index,
                   Geometry geometry)
将布告板中的指定的索引处的子对象设置为指定的几何对象。

参数:
index - 指定的索引。
geometry - 指定的几何对象。
返回:
true表示设置成功,false表示设置失败。

getTag

public java.lang.String getTag(int index)
获取指定索引的子对象的标签。

参数:
index - 指定的索引。
返回:
子对象的标签。

SetTag

public boolean SetTag(int index,
                      java.lang.String tag)
设置指定索引的子对象的标签。

参数:
index - 指定的索引。
tag - 指定的子对象的标签。
返回:
true表示设置成功,false表示设置失败。