com.supermap.mobjects.situation

类 PlotSymbols

  • java.lang.Object
    • com.supermap.data.InternalHandle
      • com.supermap.data.InternalHandleDisposable
        • com.supermap.mobjects.situation.PlotSymbols
  • 所有已实现的接口:
    IDisposable


    public class PlotSymbols
    extends com.supermap.data.InternalHandleDisposable
    标号集合类。该类对一个子图层对象中的所有标号进行管理。

    该类中提供了标号的添加、删除以及移动等的方法。

    • 方法概要

      所有方法 实例方法 具体方法 
      限定符和类型 方法和说明
      PlotSymbol add(Geometry geometry)
      添加一个标号对象到此标号集合中。
      PlotSymbol add(int geomID, boolean bAddToHead)
      添加一个标号对象到此标号集合中。
      void add(PlotSymbol plotSymbol, boolean bAddToHead)
      添加一个标号对象到此标号集合中。
      PlotSymbol add(String geomUuid, boolean bAddToHead)
      添加一个标号对象到此标号集合中。
      void clear()
      清空此标号集合。
      void dispose()
      释放对象。
      PlotSymbol get(int index)
      返回此标号集合中指定索引位置的标号对象。
      int getCount()
      返回此标号集合中标号对象的总数。
      int[] getIDs()
      返回图层中所有标号的id集合。
      int[] getIDsWithLineRelation() 
      ChildPlotLayer getParent()
      返回此标号集合所在的子图层对象。
      int indexOf(int gemoID)
      返回标号对象在此标号集合中的索引。
      int indexOf(PlotSymbol plotSymbol)
      返回标号对象在此标号集合中的索引。
      int indexOf(String gemoUuid)
      返回标号对象在此标号集合中的索引。
      PlotSymbol insert(int index, int geomID)
      添加一个标号对象到此标号集合中。
      void insert(int index, PlotSymbol plotSymbol)
      添加一个标号对象到此标号集合中。
      PlotSymbol insert(int index, String geomUuid)
      添加一个标号对象到此标号集合中。
      boolean moveDown(int index)
      将此标号集合中指定索引的标号往下移动一层。
      boolean moveTo(int srcIndex, int desIndex)
      将此标绘集合中指定索引的对象移往目标索引位置。
      boolean moveToBottom(int index)
      将此标号集合中指定索引的标号移动到最底层。
      boolean moveToTop(int index)
      将此标号集合中指定索引的标号移动到最顶层。
      boolean moveUp(int index)
      将此标号集合中指定索引的标号向上移动一层。
      void remove(int index)
      移除此标号集合中指定索引位置的标号对象。
      • 从类继承的方法 com.supermap.data.InternalHandleDisposable

        makeSureNativeObjectLive
    • 方法详细资料

      • getIDs

        public int[] getIDs()
        返回图层中所有标号的id集合。
        返回:
        图层中所有标号id的集合。
      • getIDsWithLineRelation

        public int[] getIDsWithLineRelation()
      • getCount

        public int getCount()
        返回此标号集合中标号对象的总数。
        返回:
        此标号集合中标号对象的总数。
        默认值:
        默认值为 0,即标号集合中没有标号对象。
      • get

        public PlotSymbol get(int index)
        返回此标号集合中指定索引位置的标号对象。
        参数:
        index - 要返回的标号的索引位置。
        返回:
        此标号集合中指定索引位置的标号对象。
      • clear

        public void clear()
        清空此标号集合。
      • remove

        public void remove(int index)
        移除此标号集合中指定索引位置的标号对象。
        参数:
        index - 要移除的标号的索引位置。
      • add

        public PlotSymbol add(Geometry geometry)
        添加一个标号对象到此标号集合中。
        参数:
        geom - 添加的标号所关联的GeoGraphicObject或者GeoGraphicCompound对象。
        返回:
        新添加的标号对象。
      • add

        public void add(PlotSymbol plotSymbol,
                        boolean bAddToHead)
        添加一个标号对象到此标号集合中。
        参数:
        plotSymbol - 添加的标号。
        bAddToHead - 指定新创建标号是否放在标号集合的最上面一层。当设置为 false 时,则将此新创建标号放在最底层。
      • add

        public PlotSymbol add(int geomID,
                              boolean bAddToHead)
        添加一个标号对象到此标号集合中。
        参数:
        geomID - 添加的标号所关联的GeoGraphicObject或者GeoGraphicCompound对象的id。
        bAddToHead - 指定新创建标号是否放在标号集合的最上面一层。当设置为 false 时,则将此新创建标号放在最底层。
        返回:
        新添加的标号对象。
      • add

        public PlotSymbol add(String geomUuid,
                              boolean bAddToHead)
        添加一个标号对象到此标号集合中。
        参数:
        geomUuid - 添加的标号所关联的GeoGraphicObject或者GeoGraphicCompound对象的uuid。
        bAddToHead - 指定新创建标号是否放在标号集合的最上面一层。当设置为 false 时,则将此新创建标号放在最底层。
        返回:
        新添加的标号对象。
      • insert

        public void insert(int index,
                           PlotSymbol plotSymbol)
        添加一个标号对象到此标号集合中。
        参数:
        index - 指定要添加标号对象的索引位置
        plotSymbol - 添加的标号。
      • insert

        public PlotSymbol insert(int index,
                                 int geomID)
        添加一个标号对象到此标号集合中。
        参数:
        index - 指定要添加标号对象的索引位置
        geomID - 添加的标号所关联的GeoGraphicObject或者GeoGraphicCompound对象的id。
        返回:
        新添加的标号对象。
      • insert

        public PlotSymbol insert(int index,
                                 String geomUuid)
        添加一个标号对象到此标号集合中。
        参数:
        index - 指定要添加标号对象的索引位置
        geomUuid - 添加的标号所关联的GeoGraphicObject或者GeoGraphicCompound对象的uuid。
        返回:
        新添加的标号对象。
      • indexOf

        public int indexOf(PlotSymbol plotSymbol)
        返回标号对象在此标号集合中的索引。
        参数:
        plotSymbol - 要查找的标号对象。
        返回:
        找到指定标号则返回标号索引,否则返回-1。
      • indexOf

        public int indexOf(int gemoID)
        返回标号对象在此标号集合中的索引。
        参数:
        gemoID - 要查找的标号所关联的GeoGraphicObject或者GeoGraphicCompound对象的id。
        返回:
        找到指定标号则返回标号索引,否则返回-1。
      • indexOf

        public int indexOf(String gemoUuid)
        返回标号对象在此标号集合中的索引。
        参数:
        gemoUuid - 要查找的标号所关联的GeoGraphicObject或者GeoGraphicCompound对象的uuid。
        返回:
        找到指定标号则返回标号索引,否则返回-1。
      • moveTo

        public boolean moveTo(int srcIndex,
                              int desIndex)
        将此标绘集合中指定索引的对象移往目标索引位置。
        参数:
        srcIndex - 要移动的对象的索引。
        desIndex - 目标索引。
        返回:
        移动成功返回 true,否则返回 false。
      • moveDown

        public boolean moveDown(int index)
        将此标号集合中指定索引的标号往下移动一层。
        参数:
        index - 要移动的标号的索引。
        返回:
        移动成功返回 true,否则返回 false。
      • moveUp

        public boolean moveUp(int index)
        将此标号集合中指定索引的标号向上移动一层。
        参数:
        index - 要移动的标号的索引。
        返回:
        移动成功返回 true,否则返回 false。
      • moveToBottom

        public boolean moveToBottom(int index)
        将此标号集合中指定索引的标号移动到最底层。
        参数:
        index - 要移动的标号的索引。
        返回:
        移动成功返回 true,否则返回 false。
      • moveToTop

        public boolean moveToTop(int index)
        将此标号集合中指定索引的标号移动到最顶层。
        参数:
        index - 要移动的标号的索引。
        返回:
        移动成功返回 true,否则返回 false。
      • getParent

        public ChildPlotLayer getParent()
        返回此标号集合所在的子图层对象。
        返回:
        此标号集合所在的子图层对象。
      • dispose

        public void dispose()
        释放对象。

Copyright © 2021–2024 SuperMap. All rights reserved.