|
|||||||||
上一个类 下一个类 | 框架 无框架 | ||||||||
摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 |
java.lang.Object com.supermap.data.Geometry com.supermap.data.GeoMapScale
public class GeoMapScale
地图比例尺几何对象类。
该类用于向地图布局中添加比例尺对象。
设置布局中比例尺对象需先设置比例尺(setScale()
方法)和比例尺单位(setScaleUnit()
方法),然后才能设置小节长度(setSegmentLength()
)。
构造方法摘要 | |
---|---|
GeoMapScale()
构造一个新的 GeoMapScale 对象。 |
|
GeoMapScale(GeoMapScale geoMapScale)
根据给定的 GeoMapScale 对象构造一个与其完全相同的新对象。 |
|
GeoMapScale(int geoMapID,
Point2D leftBottom,
double width,
double height)
根据指定的参数来构造一个 GeoMapScale 的新对象。 |
|
GeoMapScale(Point2D leftBottom,
double width,
double height)
根据指定的参数来构造一个 GeoMapScale 的新对象。 |
方法摘要 | |
---|---|
GeoMapScale |
clone()
返回当前 GeoMapScale 对象的一个拷贝。 |
void |
dispose()
释放该对象所占用的资源。 |
boolean |
fromXML(java.lang.String xml)
此类不支持该接口。 |
int |
getBindingGeoMapID()
返回地图比例尺几何对象所关联的地图几何对象的 ID。 |
double |
getHeight()
返回地图比例尺几何对象的高度。 |
Point2D |
getLeftBottom()
返回地图比例尺几何对象的左下角点。 |
int |
getLeftDivisionCount()
返回地图比例尺几何对象的左翼分段个数。 |
double |
getScale()
返回比例尺。 |
GeoMapScaleType |
getScaleType()
返回地图比例尺几何对象的比例尺类型。 |
Unit |
getScaleUnit()
返回地图比例尺几何对象的比例尺单位。 |
int |
getSegmentCount()
返回地图比例尺几何对象的小节个数。 |
double |
getSegmentLength()
返回地图比例尺几何对象的小节长度。 |
TextStyle |
getTextStyle()
返回地图比例尺几何对象的文本风格。 |
double |
getWidth()
返回比例尺几何对象的宽度。 |
boolean |
isEmpty()
此类不支持该接口。 |
Geometry |
mirror(Point2D startPoint,
Point2D endPoint)
此类不支持该接口。 |
void |
setBindingGeoMapID(int index)
设置地图比例尺几何对象所关联的地图几何对象的 ID。 |
void |
setEmpty()
此类不支持该接口。 |
void |
setHeight(double value)
设置地图比例尺几何对象的高度。 |
void |
setLeftDivisionCount(int value)
设置地图比例尺几何对象的左翼分段个数,最小值是2。 |
void |
setScale(double value)
设置比例尺。 |
void |
setScaleType(GeoMapScaleType geoMapScaleType)
设置地图比例尺几何对象的比例尺类型。 |
void |
setScaleUnit(Unit unit)
设置地图比例尺几何对象的比例尺单位。 |
void |
setSegmentCount(int value)
设置地图比例尺几何对象的小节个数。 |
void |
setSegmentLength(double value)
设置地图比例尺几何对象的小节长度。 |
void |
setTextStyle(TextStyle textStyle)
设置地图比例尺几何对象的文本风格。 |
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 GeoMapScale()
public GeoMapScale(GeoMapScale geoMapScale)
geoMapScale
- 给定的 GeoMapScale 对象。public GeoMapScale(Point2D leftBottom, double width, double height)
leftBottom
- 指定的左下角点。width
- 指定的宽度。单位:0.1毫米。height
- 指定的高度。单位:0.1毫米。public GeoMapScale(int geoMapID, Point2D leftBottom, double width, double height)
geoMapID
- 指定地图比例尺几何对象所服务的地图几何对象的 ID。leftBottom
- 指定的左下角点。width
- 指定的宽度。单位:0.1毫米。height
- 指定的高度。单位:0.1毫米。方法详细信息 |
---|
public int getBindingGeoMapID()
public void setBindingGeoMapID(int index)
index
- 地图比例尺几何对象所关联的地图几何对象的 ID。public GeoMapScaleType getScaleType()
RAILWAY_MID_SPLIT
。public void setScaleType(GeoMapScaleType geoMapScaleType)
geoMapScaleType
- 地图比例尺几何对象的比例尺类型。public double getScale()
public void setScale(double value)
value
- 比例尺。public int getSegmentCount()
public void setSegmentCount(int value)
value
- 地图比例尺几何对象的小节个数。public double getSegmentLength()
public void setSegmentLength(double value)
设置布局中比例尺对象需先设置比例尺(setScale()
方法)和比例尺单位(setScaleUnit()
方法),然后才能设置小节长度(setSegmentLength()
)。
value
- 地图比例尺几何对象的小节长度。单位:0.1毫米。public int getLeftDivisionCount()
public void setLeftDivisionCount(int value)
value
- 地图比例尺几何对象的左翼分段个数,最小值是2。public Unit getScaleUnit()
KILOMETER
。public void setScaleUnit(Unit unit)
unit
- 地图比例尺几何对象的比例尺单位。public TextStyle getTextStyle()
public void setTextStyle(TextStyle textStyle)
textStyle
- 地图比例尺几何对象的文本风格。public double getWidth()
public double getHeight()
public void setHeight(double value)
value
- 地图比例尺几何对象的高度。单位:0.1毫米。public Point2D getLeftBottom()
public void dispose()
Geometry
中的 dispose
public GeoMapScale 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)
|
|||||||||
上一个类 下一个类 | 框架 无框架 | ||||||||
摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 |