类 GraphicCollection

  • 所有已实现的接口:
    java.util.Iterator
    直接已知子类:
    GraphicCollection3D

    public class GraphicCollection
    extends Graphic
    implements java.util.Iterator
    作者:
    Yaqiang Wang
    • 字段详细资料

      • singleLegend

        protected boolean singleLegend
    • 构造器详细资料

      • GraphicCollection

        public GraphicCollection()
        Constructor
    • 方法详细资料

      • getGraphics

        public java.util.List<Graphic> getGraphics()
        Get graphic list
        覆盖:
        getGraphics 在类中 Graphic
        返回:
        Graphic list
      • setGraphics

        public void setGraphics​(java.util.List<Graphic> value)
        Set graphic list
        参数:
        value - Graphic list
      • setExtent

        public void setExtent​(Extent value)
        Set extent
        覆盖:
        setExtent 在类中 Graphic
        参数:
        value - Extent
      • isSingleLegend

        public boolean isSingleLegend()
        Get is single legend or not
        覆盖:
        isSingleLegend 在类中 Graphic
        返回:
        Boolean
      • setSingleLegend

        public void setSingleLegend​(boolean value)
        Set is single legend or not
        参数:
        value - Boolean
      • getLabelSet

        public LabelSet getLabelSet()
        Get label set
        返回:
        Label set
      • setLabelSet

        public void setLabelSet​(LabelSet ls)
        Set label set
        参数:
        ls - Label set
      • getLabelPoints

        public java.util.List<Graphic> getLabelPoints()
        Get label points
        返回:
        The lable points
      • setLabelPoints

        public void setLabelPoints​(java.util.List<Graphic> lps)
        Set label points
        参数:
        lps - The lable points
      • getLegendScheme

        public LegendScheme getLegendScheme()
        Get legend scheme
        返回:
        Legend scheme
      • setLegendScheme

        public void setLegendScheme​(LegendScheme value)
        Set legend scheme
        参数:
        value - Legend scheme
      • getLegendBreak

        public ColorBreak getLegendBreak()
        Get legend break
        返回:
        Legend break
      • setLegendBreak

        public void setLegendBreak​(ColorBreak value)
        Set legend break
        参数:
        value - Legend break
      • is3D

        public boolean is3D()
        Get is 3D or not
        返回:
        Boolean
      • isCollection

        public boolean isCollection()
        Get if is GraphicCollection
        覆盖:
        isCollection 在类中 Graphic
        返回:
        Boolean
      • updateExtent

        public void updateExtent()
        Update extent
      • add

        public boolean add​(Graphic aGraphic)
        Add a graphic
        参数:
        aGraphic - The graphic
        返回:
        Boolean
      • add

        public void add​(int index,
                        Graphic aGraphic)
        Inset a graphic
        参数:
        index - Index
        aGraphic - The graphic
      • get

        public Graphic get​(int idx)
        Get a graphic by index
        参数:
        idx - Index
        返回:
        Graphic
      • indexOf

        public int indexOf​(Graphic g)
        Index of
        参数:
        g - Graphic
        返回:
        Index
      • contains

        public boolean contains​(Graphic g)
        Contains or not
        参数:
        g - Graphic
        返回:
        Boolean
      • size

        public int size()
        Get graphic list size
        返回:
        Gaphic list size
      • isEmpty

        public boolean isEmpty()
        Get is empty or not
        返回:
        Boolean
      • getNumGraphics

        public int getNumGraphics()
        Get graphics number
        覆盖:
        getNumGraphics 在类中 Graphic
        返回:
        1
      • getGraphicN

        public Graphic getGraphicN​(int idx)
        Get Graphic by index
        覆盖:
        getGraphicN 在类中 Graphic
        参数:
        idx - Index
        返回:
        Graphic
      • remove

        public boolean remove​(Graphic aGraphic)
        Remove a graphic
        参数:
        aGraphic - The graphic
        返回:
        Boolean
      • remove

        public Graphic remove​(int index)
        Remove a graphic by index
        参数:
        index - The index
        返回:
        The removed graphic
      • clear

        public void clear()
        Clear graphics
      • addAll

        public void addAll​(java.util.List<Graphic> gs)
        Add all
        参数:
        gs - Graphic list
      • join

        public void join​(Graphic graphic)
        Join this graphics with other graphics
        参数:
        graphic - Other graphics
      • removeAll

        public void removeAll​(java.util.List<Graphic> gs)
        Remove all
        参数:
        gs - Graphic list
      • selectGraphics

        public GraphicCollection selectGraphics​(Extent aExtent)
        Select graphics by an extent
        参数:
        aExtent - The extent
        返回:
        Selected graphics
      • hasNext

        public boolean hasNext()
        指定者:
        hasNext 在接口中 java.util.Iterator
      • next

        public java.lang.Object next()
        指定者:
        next 在接口中 java.util.Iterator
      • addLabels

        public void addLabels()
        Add labels
      • getShapes

        public java.util.List<Shape> getShapes()
        Get shapes
        返回:
        Shapes
      • getShapeType

        public ShapeTypes getShapeType()
        Get shape type
        返回:
        Shape type
      • addLabel

        public void addLabel​(Graphic aLP)
        Add label point
        参数:
        aLP - Label point
      • addLabelsContourDynamic

        public void addLabelsContourDynamic​(Extent sExtent)
        Add labels of contour layer dynamicly
        参数:
        sExtent - View extent of MapView
      • getArrowZoom

        public float getArrowZoom()
        Get arrow zoom
        返回:
        Arrow zoom
      • clip

        public GraphicCollection clip​(java.util.List<PolygonShape> clipPolys)
        Clip
        参数:
        clipPolys - Clipping polygons
        返回:
        Clipped graphics