com.supermap.data

Class PointMs

  • java.lang.Object
    • com.supermap.data.PointMs


  • public class PointMs
    extends java.lang.Object
    The PointMs class.

    A PointMs object is a collection of PointM objects. The PointMs class is used to manage all the vertices on a GeoLineM or a part of a GeoLineM object.

    • Constructor Summary

      Constructors 
      Constructor and Description
      PointMs()
      Constructs a new PointMs object.
      PointMs(PointM[] pointMs)
      Creates a new PointMsobject according to the specified arguments.
      PointMs(PointMs pointMs)
      Constructs a new object identical to the given PointMs object.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      int add(PointM ptM)
      Adds the specified PointM object to the end of this PointMs object.
      int addRange(PointM[] pointMs)
      Adds the specified multiple PointM objects to the end of this PointMs object.
      void clear()
      Clears all the Point2D objects in this Point2Ds bject.
      PointMs clone()
      Returns a copy of the current PointMs object.
      int getCount()
      Returns the count of PointM objects in this PointMs object.
      PointM getItem(int index)
      Returns the PointM object with the specified index from this PointMs object.
      boolean insert(int index, PointM ptM)
      Adds the specified PointM object to the specified index in this PointMs object.
      int insertRange(int index, PointM[] pointMs)
      Adds the specified multiple PointM object to this PointMs object starting from the specified index.
      boolean remove(int index)
      Removes the PointM object with the specified index from this PointMs object.
      int removeRange(int index, int count)
      Removes the specified count of PointM objects starting from the specified index.
      void setItem(int index, PointM ptM)
      Sets the PointM object at the specified index in this PointMs object.
      PointM[] toArray()
      Converts this PointMs object to an array of the PointM objects.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • PointMs

        public PointMs()
        Constructs a new PointMs object.
      • PointMs

        public PointMs(PointM[] pointMs)
        Creates a new PointMsobject according to the specified arguments.
        Parameters:
        pointMs - The specified PointM array.
      • PointMs

        public PointMs(PointMs pointMs)
        Constructs a new object identical to the given PointMs object.
        Parameters:
        pointMs - The specified PointMs object.
    • Method Detail

      • getCount

        public int getCount()
        Returns the count of PointM objects in this PointMs object.
        Returns:
        the count of PointM objects in this PointMs object.
      • getItem

        public PointM getItem(int index)
        Returns the PointM object with the specified index from this PointMs object.
        Parameters:
        index - The specified index.
        Returns:
        the PointM object with the specified index in this PointMs object.
      • setItem

        public void setItem(int index,
                            PointM ptM)
        Sets the PointM object at the specified index in this PointMs object.
        Parameters:
        index - The specified index.
        ptM - the PointM object with the specified index in this PointMs object.
      • add

        public int add(PointM ptM)
        Adds the specified PointM object to the end of this PointMs object.
        Parameters:
        ptM - The PointM object to be added to.
        Returns:
        The index of the added Point2D object.
      • addRange

        public int addRange(PointM[] pointMs)
        Adds the specified multiple PointM objects to the end of this PointMs object.
        Parameters:
        pointMs - The PointM object array to be added to this PointM object.
        Returns:
        the count of added PointM objects.
      • insert

        public boolean insert(int index,
                              PointM ptM)
        Adds the specified PointM object to the specified index in this PointMs object.
        Parameters:
        index - The index to which the JoinItem object will be added.
        ptM - The point object to be added.
        Returns:
        true if successful; otherwise, false.
      • insertRange

        public int insertRange(int index,
                               PointM[] pointMs)
        Adds the specified multiple PointM object to this PointMs object starting from the specified index.
        Parameters:
        index - The specified index from which to add the Point2D objects.
        pointMs - The route point object array to be added.
        Returns:
        the count of added PointM objects.
      • remove

        public boolean remove(int index)
        Removes the PointM object with the specified index from this PointMs object.
        Parameters:
        index - The index of the PointM object to be removed.
        Returns:
        returns true if successful; otherwise false.
      • removeRange

        public int removeRange(int index,
                               int count)
        Removes the specified count of PointM objects starting from the specified index.
        Parameters:
        index - The index from which to remove the PointM object.
        count - The count of the PointM objects to be removed.
        Returns:
        The count of the PointM objects to be removed.
      • clear

        public void clear()
        Clears all the Point2D objects in this Point2Ds bject.
      • toArray

        public PointM[] toArray()
        Converts this PointMs object to an array of the PointM objects.
        Returns:
        the array of the PointM objects.
      • clone

        public PointMs clone()
        Returns a copy of the current PointMs object.
        Overrides:
        clone in class java.lang.Object
        Returns:
        The new PointMs object generated from the clone operation.