org.nlogo.agent
Class ShapeList
java.lang.Object
org.nlogo.agent.ShapeList
public class ShapeList
- extends Object
DEFAULT_SHAPE_NAME
public static final String DEFAULT_SHAPE_NAME
- See Also:
- Constant Field Values
ShapeList
public ShapeList(Shape defaultShape)
ShapeList
public ShapeList(List list)
shape
public Shape shape(String name)
isDefaultShape
public boolean isDefaultShape(String name)
getShapes
public List getShapes()
sortShapes
public static final List sortShapes(List unsortedShapes)
getNames
public Set getNames()
exists
public boolean exists(String name)
clearShapes
public void clearShapes()
addNewShape
public Shape addNewShape(Shape newShape)
addNewShapes
public void addNewShapes(Collection collection)
removeShape
public Shape removeShape(Shape shapeToRemove)