com.supermap.data
类 SymbolLine
- java.lang.Object
-
- com.supermap.data.InternalHandle
-
- com.supermap.data.InternalHandleDisposable
-
- com.supermap.data.Symbol
-
- com.supermap.data.SymbolLine
-
- 所有已实现的接口:
- IDisposable
public class SymbolLine extends Symbol
线状符号类。目前SymbolLine类仅在Windows平台下提供。
该类继承自符号基类,即
Symbol类。
-
-
构造器概要
构造器 构造器和说明 SymbolLine()构造一个新的SymbolLine对象SymbolLine(SymbolLine symbolLine)构造一个新的SymbolLine对象
-
方法概要
所有方法 实例方法 具体方法 限定符和类型 方法和说明 intadd(SymbolLineBase lineBase)添加线基booleanbringForward(int index)移动指定索引的线基向上booleanbringToFront(int index)移动指定索引的线基到顶部voiddispose()释放该对象所占用的资源。booleandraw(BufferedImage image, Geometry geometry)将线符号对象在指定 Bitmap 位图的给定位置上绘制出来。booleandraw(BufferedImage image, Point2Ds points, GeoStyle style)将线符号对象在指定位图的给定位置上绘制出来。booleandraw(Graphics graphics, Geometry geometry)将线符号对象在指定设备的给定位置上绘制出来。booleandraw(Graphics graphics, Point2Ds points, GeoStyle style)将线符号对象在指定设备的给定位置上绘制出来。SymbolLineBaseget(int index)获取对应索引的线基intgetCount()获取线基个数SymbolLineDecorationgetDecoration(DecorationPositionType position)获取拓展修饰符BufferedImagegetThumbnail()获取线符号图像SymbolTypegetType()返回线符号对象。booleaninsert(int index, SymbolLineBase lineBase)插入线基到指定索引booleanremove(int index)移除指定索引的线基booleansendBackward(int index)移动指定索引的线基向下booleansendToBack(int index)移动指定索引的线基到底部voidset(int index, SymbolLineBase lineBase)设置线基到指定索引voidsetDecoration(DecorationPositionType position, SymbolLineDecoration decoration)设置扩展修饰符voidsetThumbnail(BufferedImage image)设置线符号图像-
从类继承的方法 com.supermap.data.Symbol
compare, createInstance, equal, getID, getLibrary, getName, setID, setName, toString
-
-
-
-
构造器详细资料
-
SymbolLine
public SymbolLine()
构造一个新的SymbolLine对象
-
SymbolLine
public SymbolLine(SymbolLine symbolLine)
构造一个新的SymbolLine对象- 参数:
symbolLine- 用于拷贝的SymbolLine对象
-
-
方法详细资料
-
draw
public boolean draw(Graphics graphics, Geometry geometry)
将线符号对象在指定设备的给定位置上绘制出来。绘制将采用屏幕坐标。- 指定者:
draw在类中Symbol- 参数:
graphics- 绘制设备geometry- 绘制对象- 返回:
- 是否绘制成功
- 抛出:
IllegalStateException- 当前对象已被释放IllegalArgumentException- 参数异常
-
draw
public boolean draw(BufferedImage image, Geometry geometry)
将线符号对象在指定 Bitmap 位图的给定位置上绘制出来。绘制将采用屏幕坐标。- 指定者:
draw在类中Symbol- 参数:
image- 指定位图geometry- 绘制对象- 返回:
- 是否绘制成功
- 抛出:
IllegalStateException- 当前对象已被释放IllegalArgumentException- 参数异常
-
draw
public boolean draw(Graphics graphics, Point2Ds points, GeoStyle style)
将线符号对象在指定设备的给定位置上绘制出来。绘制将采用屏幕坐标。- 指定者:
draw在类中Symbol- 参数:
graphics- 指定设备points- 指定坐标style- 指定风格- 返回:
- 是否绘制成功
- 抛出:
IllegalStateException- 当前对象已被释放IllegalArgumentException- 参数异常
-
draw
public boolean draw(BufferedImage image, Point2Ds points, GeoStyle style)
将线符号对象在指定位图的给定位置上绘制出来。绘制将采用屏幕坐标。- 指定者:
draw在类中Symbol- 参数:
image- 指定位图points- 指定坐标style- 指定风格- 返回:
- 是否绘制成功
- 抛出:
IllegalStateException- 当前对象已被释放IllegalArgumentException- 参数异常
-
dispose
public void dispose()
释放该对象所占用的资源。当调用该方法之后,此对象不再可用。
-
getCount
public int getCount()
获取线基个数- 返回:
- 线基个数
- 抛出:
IllegalStateException- 当前对象已被释放
-
get
public SymbolLineBase get(int index)
获取对应索引的线基- 参数:
index- 线基索引- 返回:
- 线基
- 抛出:
IllegalStateException- 当前对象已被释放
-
set
public void set(int index, SymbolLineBase lineBase)设置线基到指定索引- 参数:
index- 索引lineBase- 线基- 抛出:
IllegalStateException- 当前对象已被释放IndexOutOfBoundsException- 索引超出范围IllegalArgumentException- 参数不合法
-
add
public int add(SymbolLineBase lineBase)
添加线基- 参数:
lineBase- 线基- 返回:
- 索引
- 抛出:
IllegalStateException- 当前对象已被释放IllegalArgumentException- 参数不合法
-
bringForward
public boolean bringForward(int index)
移动指定索引的线基向上- 参数:
index- 索引- 返回:
- 是否成功
- 抛出:
IllegalStateException- 当前对象已被释放IndexOutOfBoundsException- 索引超出范围
-
bringToFront
public boolean bringToFront(int index)
移动指定索引的线基到顶部- 参数:
index- 索引- 返回:
- 是否成功
- 抛出:
IllegalStateException- 当前对象已被释放IndexOutOfBoundsException- 索引超出范围
-
insert
public boolean insert(int index, SymbolLineBase lineBase)插入线基到指定索引- 参数:
index- 索引lineBase- 线基- 返回:
- 是否成功
- 抛出:
IllegalStateException- 当前对象已被释放IndexOutOfBoundsException- 索引超出范围IllegalArgumentException- 参数不合法
-
remove
public boolean remove(int index)
移除指定索引的线基- 参数:
index- 索引- 返回:
- 是否成功
- 抛出:
IllegalStateException- 当前对象已被释放IndexOutOfBoundsException- 索引超出范围
-
sendBackward
public boolean sendBackward(int index)
移动指定索引的线基向下- 参数:
index- 索引- 返回:
- 是否成功
- 抛出:
IllegalStateException- 当前对象已被释放IndexOutOfBoundsException- 索引超出范围
-
sendToBack
public boolean sendToBack(int index)
移动指定索引的线基到底部- 参数:
index- 索引- 返回:
- 是否成功
- 抛出:
IllegalStateException- 当前对象已被释放IndexOutOfBoundsException- 索引超出范围
-
getDecoration
public SymbolLineDecoration getDecoration(DecorationPositionType position)
获取拓展修饰符- 参数:
position- 修饰符类型- 返回:
- 扩展修饰符
- 抛出:
IllegalStateException- 当前对象已被释放
-
setDecoration
public void setDecoration(DecorationPositionType position, SymbolLineDecoration decoration)
设置扩展修饰符- 参数:
position- 修饰符类型decoration- 扩展修饰符- 抛出:
IllegalStateException- 当前对象已被释放IllegalArgumentException- 参数不合法
-
getType
public SymbolType getType()
返回线符号对象。- 指定者:
getType在类中Symbol- 返回:
- 线符号对象。
- 抛出:
IllegalStateException- 当前对象已被释放
-
getThumbnail
public BufferedImage getThumbnail()
获取线符号图像- 返回:
- 图像
- 抛出:
IllegalStateException- 当前对象已被释放
-
setThumbnail
public void setThumbnail(BufferedImage image)
设置线符号图像- 参数:
image- 图像- 抛出:
IllegalStateException- 当前对象已被释放
-
-
Copyright © 2021–2025 SuperMap. All rights reserved.