com.supermap.data
类 SymbolLineBase
- java.lang.Object
-
- com.supermap.data.InternalHandle
-
- com.supermap.data.InternalHandleDisposable
-
- com.supermap.data.SymbolLineBase
-
- 所有已实现的接口:
- IDisposable
public class SymbolLineBase extends com.supermap.data.InternalHandleDisposable
构成线符号对象的基础对象类。
-
-
构造器概要
构造器 构造器和说明 SymbolLineBase()
构造一个新的 SymbolLineBase 对象。
-
方法概要
所有方法 实例方法 具体方法 限定符和类型 方法和说明 void
dispose()
释放 SymbolLineBase 占用的资源。LineCapType
getCapType()
获取pen端头类型int
getCode()
返回子线中的字符 ASCII 码。LineDashType
getDashType()
获取pen点划类型int
getEndLength()
获取渐变线终点竖直长度Color
getFixedColor()
获取固定颜色int
getFixedWidth()
获取固定线宽String
getFontName()
获取字体名称int
getHorizonOffset()
获取水平偏移量boolean
getIsColorFixed()
获取是否固定颜色boolean
getIsStartWithSolid()
获取是否实部开始绘制boolean
getIsWidthFixed()
获取是否固定线宽LineJoinType
getJoinType()
获取pen转角类型double
getRotation()
获取旋转角度int[]
getSolidPattern()
获取实部虚部的长度数组 例如:[2,2,3,3]既是2实部、2虚部、3实部、3虚部SymbolLineBaseType
getType()
获取基线风格类型int
getVerticalLength()
获取竖直长度int
getVerticalOffset()
获取竖直偏移void
setCapType(LineCapType value)
设置pen端头类型void
setCode(int asciiCode)
设置子线中的字符 ASCII 码。void
setDashType(LineDashType value)
设置pen点划类型void
setEndLength(int verticalLength)
设置渐变线终点竖直长度void
setFixedColor(Color fixedColor)
设置固定颜色void
setFixedWidth(int fixedWidth)
设置固定线宽void
setFontName(String fontName)
设置字体名称void
setHorizonOffset(int horizonOffset)
设置水平偏移量void
setIsColorFixed(boolean isColorFixed)
设置是否固定颜色void
setIsStartWithSolid(boolean isStartWithSolid)
设置是否实部开始绘制void
setIsWidthFixed(boolean isWidthFixed)
设置是否固定线宽void
setJoinType(LineJoinType joinType)
设置pen转角类型void
setRotation(double rotation)
设置旋转角度void
setSolidPattern(int[] solidPattern)
设置实部虚部的长度数组 例如:[2,2,3,3]既是2实部、2虚部、3实部、3虚部void
setType(SymbolLineBaseType symbolLineBaseType)
设置基线风格类型void
setVerticalLength(int verticalLength)
设置竖直长度void
setVerticalOffset(int verticalOffset)
设置竖直偏移
-
-
-
方法详细资料
-
getCapType
public LineCapType getCapType()
获取pen端头类型- 返回:
- 端头类型
- 抛出:
IllegalStateException
- 当前对象已被释放
-
setCapType
public void setCapType(LineCapType value)
设置pen端头类型- 参数:
value
- 端头类型- 抛出:
IllegalStateException
- 当前对象已被释放IllegalArgumentException
- 参数不合法
-
getDashType
public LineDashType getDashType()
获取pen点划类型- 返回:
- 点划类型
- 抛出:
IllegalStateException
- 当前对象已被释放
-
setDashType
public void setDashType(LineDashType value)
设置pen点划类型- 参数:
value
- 点划类型- 抛出:
IllegalStateException
- 当前对象已被释放IllegalArgumentException
- 参数不合法
-
getFixedColor
public Color getFixedColor()
获取固定颜色- 返回:
- 固定颜色
- 抛出:
IllegalStateException
- 当前对象已被释放
-
setFixedColor
public void setFixedColor(Color fixedColor)
设置固定颜色- 参数:
fixedColor
- 固定颜色- 抛出:
IllegalStateException
- 当前对象已被释放IllegalArgumentException
- 参数不合法
-
getFixedWidth
public int getFixedWidth()
获取固定线宽- 返回:
- 固定线宽
- 抛出:
IllegalStateException
- 当前对象已被释放
-
setFixedWidth
public void setFixedWidth(int fixedWidth)
设置固定线宽- 参数:
fixedWidth
- 固定线宽- 抛出:
IllegalStateException
- 当前对象已被释放
-
getFontName
public String getFontName()
获取字体名称- 返回:
- 字体名称
- 抛出:
IllegalStateException
- 当前对象已被释放
-
setFontName
public void setFontName(String fontName)
设置字体名称- 参数:
fontName
- 字体名称- 抛出:
IllegalStateException
- 当前对象已被释放
-
getHorizonOffset
public int getHorizonOffset()
获取水平偏移量- 返回:
- 水平偏移量
- 抛出:
IllegalStateException
- 当前对象已被释放
-
setHorizonOffset
public void setHorizonOffset(int horizonOffset)
设置水平偏移量- 参数:
horizonOffset
- 水平偏移量- 抛出:
IllegalStateException
- 当前对象已被释放
-
getIsColorFixed
public boolean getIsColorFixed()
获取是否固定颜色- 返回:
- 是否固定颜色
- 抛出:
IllegalStateException
- 当前对象已被释放
-
setIsColorFixed
public void setIsColorFixed(boolean isColorFixed)
设置是否固定颜色- 参数:
isColorFixed
- 是否固定颜色- 抛出:
IllegalStateException
- 当前对象已被释放
-
getIsStartWithSolid
public boolean getIsStartWithSolid()
获取是否实部开始绘制- 返回:
- 是否实部开始绘制
- 抛出:
IllegalStateException
- 当前对象已被释放
-
setIsStartWithSolid
public void setIsStartWithSolid(boolean isStartWithSolid)
设置是否实部开始绘制- 参数:
isStartWithSolid
- 是否实部开始绘制- 抛出:
IllegalStateException
- 当前对象已被释放
-
getIsWidthFixed
public boolean getIsWidthFixed()
获取是否固定线宽- 返回:
- 是否固定线宽
- 抛出:
IllegalStateException
- 当前对象已被释放
-
setIsWidthFixed
public void setIsWidthFixed(boolean isWidthFixed)
设置是否固定线宽- 参数:
isWidthFixed
- 是否固定线宽- 抛出:
IllegalStateException
- 当前对象已被释放
-
getJoinType
public LineJoinType getJoinType()
获取pen转角类型- 返回:
- 转角类型
- 抛出:
IllegalStateException
- 当前对象已被释放
-
setJoinType
public void setJoinType(LineJoinType joinType)
设置pen转角类型- 参数:
joinType
- 转角类型- 抛出:
IllegalStateException
- 当前对象已被释放IllegalArgumentException
- 参数不合法
-
getRotation
public double getRotation()
获取旋转角度- 返回:
- 旋转角度
- 抛出:
IllegalStateException
- 当前对象已被释放
-
setRotation
public void setRotation(double rotation)
设置旋转角度- 参数:
rotation
- 旋转角度- 抛出:
IllegalStateException
- 当前对象已被释放
-
getSolidPattern
public int[] getSolidPattern()
获取实部虚部的长度数组 例如:[2,2,3,3]既是2实部、2虚部、3实部、3虚部- 返回:
- 实部虚部的长度数组
- 抛出:
IllegalStateException
- 当前对象已被释放
-
setSolidPattern
public void setSolidPattern(int[] solidPattern)
设置实部虚部的长度数组 例如:[2,2,3,3]既是2实部、2虚部、3实部、3虚部- 参数:
solidPattern
- 实部虚部的长度数组- 抛出:
IllegalStateException
- 当前对象已被释放
-
getType
public SymbolLineBaseType getType()
获取基线风格类型- 返回:
- 基线风格类型
- 抛出:
IllegalStateException
- 当前对象已被释放
-
setType
public void setType(SymbolLineBaseType symbolLineBaseType)
设置基线风格类型- 参数:
symbolLineBaseType
- 基线风格类型- 抛出:
IllegalStateException
- 当前对象已被释放IllegalArgumentException
- 参数不合法
-
getVerticalLength
public int getVerticalLength()
获取竖直长度- 返回:
- 竖直长度
- 抛出:
IllegalStateException
- 当前对象已被释放
-
setVerticalLength
public void setVerticalLength(int verticalLength)
设置竖直长度- 参数:
verticalLength
- 竖直长度- 抛出:
IllegalStateException
- 当前对象已被释放
-
getVerticalOffset
public int getVerticalOffset()
获取竖直偏移- 返回:
- 竖直偏移
- 抛出:
IllegalStateException
- 当前对象已被释放
-
setVerticalOffset
public void setVerticalOffset(int verticalOffset)
设置竖直偏移- 参数:
verticalOffset
- 竖直偏移- 抛出:
IllegalStateException
- 当前对象已被释放
-
getCode
public int getCode()
返回子线中的字符 ASCII 码。只在类型为字符相关的子线类型时才有效。 返回子线中的点符号id。只在类型为自定义符号的子线类型时才有效。- 返回:
- 返回子线中的字符 ASCII 码。 返回子线中的点符号id。
- 抛出:
IllegalStateException
- 当前对象已被释放
-
setCode
public void setCode(int asciiCode)
设置子线中的字符 ASCII 码。只在类型为字符相关的子线类型时才有效。 设置子线中的点符号id。只在类型为自定义符号的子线类型时才有效。- 参数:
asciiCode
- 子线中的字符 ASCII 码。 子线中的点符号id。- 抛出:
IllegalStateException
- 当前对象已被释放
-
dispose
public void dispose()
释放 SymbolLineBase 占用的资源。
-
getEndLength
public int getEndLength()
获取渐变线终点竖直长度- 返回:
- 渐变线终点竖直长度
- 抛出:
IllegalStateException
- 当前对象已被释放
-
setEndLength
public void setEndLength(int verticalLength)
设置渐变线终点竖直长度- 参数:
verticalLength
- 渐变线终点竖直长度- 抛出:
IllegalStateException
- 当前对象已被释放
-
-
Copyright © 2021–2024 SuperMap. All rights reserved.