Interface ShapeSet

All Superinterfaces:
NamedObject, ShapeListener
All Known Implementing Classes:
MorphSections3DInt, SectionSet3DInt, ShapeSelectionSet, ShapeSet2DInt, ShapeSet3DInt

public interface ShapeSet
extends ShapeListener, NamedObject
Interface for all shape sets.

TODO: make this an abstract class

Since:
1.0
Version:
1.0
Author:
Andrew Reid
  • Method Details

    • addShape

      boolean addShape​(InterfaceShape shape)
      Adds a shape to this set
      Parameters:
      shape -
      Returns:
    • removeShape

      void removeShape​(InterfaceShape shape)
      Removes a shape from this set
      Parameters:
      shape -
    • moveShapeBefore

      boolean moveShapeBefore​(InterfaceShape shape, InterfaceShape target)
      Moves the order of shape to the spot before target.
      Parameters:
      shape -
      target -
      Returns:
    • getIndexOf

      int getIndexOf​(InterfaceShape shape)
      Returns the index of shape in this set.
      Parameters:
      shape -
      Returns:
    • getShapeSet

      java.util.Set<InterfaceShape> getShapeSet()
    • getSubSets

      java.util.Set<ShapeSet> getSubSets()
    • hasShape

      boolean hasShape​(InterfaceShape s)
    • hasShape

      boolean hasShape​(InterfaceShape s, boolean recurse)
    • getSize

      int getSize()
      Returns the number of shapes in this set
      Returns:
    • getLastAdded

      InterfaceShape getLastAdded()
    • getLastRemoved

      InterfaceShape getLastRemoved()
    • getLastInserted

      InterfaceShape getLastInserted()
    • getLastInsert

      int getLastInsert()
    • getLastModified

      InterfaceShape getLastModified()
    • getLastMoved

      InterfaceShape getLastMoved()
    • getUnit

      SpatialUnit getUnit()
    • setUnit

      void setUnit​(SpatialUnit unit)
    • getModel

      ShapeModel3D getModel()
    • isAncestorSet

      boolean isAncestorSet​(ShapeSet set)
      Determines whether set is an ancestor set of this set; i.e., whether this set is a subset of set.
      Parameters:
      set -
      Returns:
    • isVisible

      boolean isVisible()
    • isSelectable

      boolean isSelectable()
    • show2D

      boolean show2D()
    • show3D

      boolean show3D()
    • getMembers

      java.util.ArrayList<InterfaceShape> getMembers()
    • getFullName

      java.lang.String getFullName()