Documentation of 'math.geom2d.ShapeSet2D' Java class
ShapeSet2D
math.geom2d

Interface ShapeSet2D<T extends Shape2D>

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method and Description
      void add(int index, T shape)
      Inserts the specified shape at the specified position in this set (optional operation).
      boolean add(T shape)
      Appends the specified shape to the end of this set (optional operation).
      void clear()
      Removes all the shapes stored in this set.
      boolean contains(T shape)
      Returns true if this set contains the shape.
      T get(int index)
      Returns the shape at a given position.
      int indexOf(T shape)
      Returns the index of the shape in this set.
      T remove(int index)
      Removes the shape at the specified position in this set (optional operation).
      boolean remove(T shape)
      Removes the first occurrence of the specified element from this list, if it is present.
      int size()
      Returns the number of shapes stored in this set.
      • Methods inherited from interface java.lang.Iterable

        forEach, iterator, spliterator
    • Method Detail

      • add

        boolean add(T shape)
        Appends the specified shape to the end of this set (optional operation).
      • add

        void add(int index,
                 T shape)
        Inserts the specified shape at the specified position in this set (optional operation).
      • get

        T get(int index)
        Returns the shape at a given position.
        Parameters:
        index - the position of the shape
        Returns:
        the shape at the given position
      • remove

        boolean remove(T shape)
        Removes the first occurrence of the specified element from this list, if it is present. If the list does not contain the element, it is unchanged. Returns true if this list contained the specified element (or equivalently, if this list changed as a result of the call).
      • remove

        T remove(int index)
        Removes the shape at the specified position in this set (optional operation).
      • contains

        boolean contains(T shape)
        Returns true if this set contains the shape.
      • indexOf

        int indexOf(T shape)
        Returns the index of the shape in this set.
      • size

        int size()
        Returns the number of shapes stored in this set.
      • clear

        void clear()
        Removes all the shapes stored in this set.

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.