类 GraphicCollection

    • 字段详细资料

      • extent

        protected Extent extent
      • singleLegend

        protected boolean singleLegend
      • index

        protected int index
      • avoidCollision

        protected boolean avoidCollision
    • 构造器详细资料

      • GraphicCollection

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

      • getShape

        public Shape getShape​(int index)
        Get shape by index
        参数:
        index - The index
        返回:
        Shape
      • getGraphics

        public List<? extends Graphic> getGraphics()
        Get graphic list
        返回:
        Graphic list
      • setGraphics

        public void setGraphics​(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 List<Graphic> getLabelPoints()
        Get label points
        返回:
        The label points
      • setLabelPoints

        public void setLabelPoints​(List<Graphic> lps)
        Set label points
        参数:
        lps - The label 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
      • isAvoidCollision

        public boolean isAvoidCollision()
        Return avoid collision or not
        返回:
        Avoid collision or not
      • setAvoidCollision

        public void setAvoidCollision​(boolean value)
        Set avoid collision or not
        参数:
        value - Avoid collision or not
      • 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
        返回:
        Graphic 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
      • setGraphicN

        public void setGraphicN​(int idx,
                                Graphic graphic)
        Set a graphic
        参数:
        idx - The index
        graphic - The 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​(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​(List<Graphic> gs)
        Remove all
        参数:
        gs - Graphic list
      • getLegends

        public List<ColorBreak> getLegends()
        Get legend list
        返回:
        Legend list
      • selectGraphics

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

        public boolean hasNext()
        指定者:
        hasNext 在接口中 Iterator
      • addLabels

        public void addLabels()
        Add labels
      • getShapes

        public List<? extends Shape> getShapes()
        Get shapes
        返回:
        Shapes
      • addLabelsByColor

        protected void addLabelsByColor()
        Add labels
      • 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
      • getLabel

        public Graphic getLabel​(String text)
        Get a label by text
        参数:
        text - Text
        返回:
        Label
      • moveLabel

        public void moveLabel​(String text,
                              float x,
                              float y)
        Move label
        参数:
        text - Label text
        x - X
        y - Y
      • moveLabel

        public void moveLabel​(Graphic lb,
                              float x,
                              float y)
        Move label
        参数:
        lb - Label
        x - X
        y - Y
      • removeLabels

        public void removeLabels()
        Remove all labels
      • getArrowZoom

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

        public GraphicCollection xShift​(double xs)
        X coordinate shift
        参数:
        xs - X shift value
      • xShiftCopy

        public GraphicCollection xShiftCopy​(double xs)
        X coordinate shift as a new GraphicCollection object
        参数:
        xs - X shift value