|
|||||||||
上一个类 下一个类 | 框架 无框架 | ||||||||
摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 |
java.lang.Object com.supermap.data.Geometry com.supermap.data.GeoNorthArrow
public class GeoNorthArrow
指北针几何对象类。
指北针几何类。该类的对象是地图布局中的指北针对象。
构造方法摘要 | |
---|---|
GeoNorthArrow()
构造一个新的 GeoNorthArrow 对象。 |
|
GeoNorthArrow(GeoNorthArrow geoNorthArrow)
根据给定的 GeoNorthArrow 对象构造一个与其完全相同的新对象。 |
|
GeoNorthArrow(int geoMapID,
NorthArrowStyleType styleType,
Rectangle2D bounds)
根据指定的参数来构造一个 GeoNorthArrow 的新对象。 |
|
GeoNorthArrow(int geoMapID,
java.lang.String imageFile,
Rectangle2D bounds)
根据指定的参数来构造一个 GeoNorthArrow 的新对象。 |
|
GeoNorthArrow(NorthArrowStyleType styleType,
Rectangle2D bounds,
double rotation)
根据指定的参数来构造一个 GeoNorthArrow 的新对象。 |
|
GeoNorthArrow(java.lang.String imageFile,
Rectangle2D bounds,
double rotation)
根据指定的参数来构造一个 GeoNorthArrow 的新对象。 |
方法摘要 | |
---|---|
GeoNorthArrow |
clone()
返回当前 GeoNorthArrow 对象的一个拷贝。 |
void |
dispose()
释放该对象所占用的资源。 |
boolean |
fromXML(java.lang.String xml)
此类不支持该接口。 |
int |
getBindingGeoMapID()
返回指北针几何对象所关联的地图几何对象的 ID。 |
double |
getHeight()
返回指北针几何对象的高度。 |
java.lang.String |
getImageFile()
返回图片文件类型的指北针几何对象的图片全路径。 |
double |
getRotation()
返回指北针几何对象的旋转角度。 |
NorthArrowStyleType |
getStyleType()
返回指北针几何对象的样式。 |
double |
getWidth()
返回指北针几何对象的宽度。 |
boolean |
isEmpty()
此类不支持该接口。 |
Geometry |
mirror(Point2D startPoint,
Point2D endPoint)
此类不支持该接口。 |
void |
setBindingGeoMapID(int index)
设置指北针几何对象所关联的地图几何对象的 ID。 |
void |
setEmpty()
此类不支持该接口。 |
boolean |
setGeoReference(Rectangle2D bounds)
设置指北针几何对象的范围。 |
void |
setHeight(double value)
设置指北针几何对象高度。 |
void |
setImageFile(java.lang.String value)
设置图片文件类型的指北针几何对象的图片全路径。 |
void |
setRotation(double value)
设置指北针几何对象的旋转角度。 |
void |
setStyleType(NorthArrowStyleType northArrowStyleType)
设置指北针几何对象的样式。 |
void |
setWidth(double value)
设置指北针几何对象宽度。 |
java.lang.String |
toXML()
此类不支持该接口。 |
从类 com.supermap.data.Geometry 继承的方法 |
---|
addCustomGeometryCreatedListener, getBounds, getID, getInnerPoint, getStyle, getType, getVariantID, hitTest, offset, removeCustomGeometryCreatedListener, resize, rotate, setID, setStyle |
从类 java.lang.Object 继承的方法 |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
构造方法详细信息 |
---|
public GeoNorthArrow()
public GeoNorthArrow(GeoNorthArrow geoNorthArrow)
geoNorthArrow
- 给定的 GeoNorthArrow 对象。public GeoNorthArrow(NorthArrowStyleType styleType, Rectangle2D bounds, double rotation)
styleType
- 指北针几何对象的样式。bounds
- 指北针几何对象的范围。rotation
- 指北针几何对象的旋转角度,单位:度。旋转的基点是指北针几何对象的中心点。public GeoNorthArrow(java.lang.String imageFile, Rectangle2D bounds, double rotation)
imageFile
- 图片文件类型的指北针几何对象的图片全路径。bounds
- 指北针几何对象的范围。rotation
- 指北针几何对象的旋转角度,单位:度。旋转的基点是指北针几何对象的中心点。public GeoNorthArrow(int geoMapID, NorthArrowStyleType styleType, Rectangle2D bounds)
geoMapID
- 指定的指北针几何对象所服务的地图几何对象的ID。styleType
- 指北针几何对象的样式。bounds
- 指北针几何对象的范围。public GeoNorthArrow(int geoMapID, java.lang.String imageFile, Rectangle2D bounds)
geoMapID
- 指定的指北针几何对象所服务的地图几何对象的 ID。imageFile
- 图片文件类型的指北针几何对象的图片全路径。bounds
- 指北针几何对象的范围。方法详细信息 |
---|
public NorthArrowStyleType getStyleType()
NorthArrowStyleType
类。
NorthArrowStyleType
EIGHTDIRECTION
。public void setStyleType(NorthArrowStyleType northArrowStyleType)
NorthArrowStyleType
类。
northArrowStyleType
- 指北针几何对象的样式。NorthArrowStyleType
public int getBindingGeoMapID()
public void setBindingGeoMapID(int index)
index
- 指北针几何对象所关联的地图几何对象的 ID。public double getRotation()
指北针几何对象通过数据引擎存储后返回的旋转角度,精度为 0.1 度;通过构造函数直接构造的指北针几何对象,返回的旋转角度精度不变。
public void setRotation(double value)
value
- 指北针几何对象的旋转角度。单位:度。public double getWidth()
public void setWidth(double value)
value
- 指北针几何对象宽度。单位:0.1毫米。public double getHeight()
public void setHeight(double value)
value
- 指北针几何对象高度。单位:0.1毫米。public java.lang.String getImageFile()
public void setImageFile(java.lang.String value)
value
- 图片文件类型的指北针几何对象的图片全路径。public boolean setGeoReference(Rectangle2D bounds)
bounds
- 指定的指北针几何对象的范围。
public void dispose()
Geometry
中的 dispose
public GeoNorthArrow clone()
java.lang.Object
中的 clone
public boolean fromXML(java.lang.String xml)
Geometry
中的 fromXML
xml
- XML 格式的字符串。
Geometry.offset(double, double)
public java.lang.String toXML()
Geometry
中的 toXML
Geometry.offset(double, double)
public void setEmpty()
Geometry
中的 setEmpty
public boolean isEmpty()
Geometry
中的 isEmpty
Geometry.offset(double, double)
public Geometry mirror(Point2D startPoint, Point2D endPoint)
Geometry
中的 mirror
startPoint
- 线段的起点。endPoint
- 线段的终点。
Geometry.offset(double,double)
|
|||||||||
上一个类 下一个类 | 框架 无框架 | ||||||||
摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 |