Package mgui.interfaces.shapes
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 Summary
Modifier and Type Method Description boolean
addShape(InterfaceShape shape)
Adds a shape to this setjava.lang.String
getFullName()
int
getIndexOf(InterfaceShape shape)
Returns the index ofshape
in this set.InterfaceShape
getLastAdded()
int
getLastInsert()
InterfaceShape
getLastInserted()
InterfaceShape
getLastModified()
InterfaceShape
getLastMoved()
InterfaceShape
getLastRemoved()
java.util.ArrayList<InterfaceShape>
getMembers()
ShapeModel3D
getModel()
java.util.Set<InterfaceShape>
getShapeSet()
int
getSize()
Returns the number of shapes in this setjava.util.Set<ShapeSet>
getSubSets()
SpatialUnit
getUnit()
boolean
hasShape(InterfaceShape s)
boolean
hasShape(InterfaceShape s, boolean recurse)
boolean
isAncestorSet(ShapeSet set)
Determines whetherset
is an ancestor set of this set; i.e., whether this set is a subset ofset
.boolean
isSelectable()
boolean
isVisible()
boolean
moveShapeBefore(InterfaceShape shape, InterfaceShape target)
Moves the order ofshape
to the spot beforetarget
.void
removeShape(InterfaceShape shape)
Removes a shape from this setvoid
setUnit(SpatialUnit unit)
boolean
show2D()
boolean
show3D()
Methods inherited from interface mgui.interfaces.NamedObject
getName, setName
Methods inherited from interface mgui.interfaces.shapes.util.ShapeListener
destroy, isDestroyed, shapeUpdated
-
Method Details
-
addShape
Adds a shape to this set- Parameters:
shape
-- Returns:
-
removeShape
Removes a shape from this set- Parameters:
shape
-
-
moveShapeBefore
Moves the order ofshape
to the spot beforetarget
.- Parameters:
shape
-target
-- Returns:
-
getIndexOf
Returns the index ofshape
in this set.- Parameters:
shape
-- Returns:
-
getShapeSet
java.util.Set<InterfaceShape> getShapeSet() -
getSubSets
java.util.Set<ShapeSet> getSubSets() -
hasShape
-
hasShape
-
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
-
getModel
ShapeModel3D getModel() -
isAncestorSet
Determines whetherset
is an ancestor set of this set; i.e., whether this set is a subset ofset
.- 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()
-