org.nlogo.api
Class ShapeList
java.lang.Object
org.nlogo.api.ShapeList
public class ShapeList
- extends Object
DEFAULT_SHAPE_NAME
public static final String DEFAULT_SHAPE_NAME
- See Also:
- Constant Field Values
ShapeList
public ShapeList()
isDefaultShapeName
public static boolean isDefaultShapeName(String name)
shape
public Shape shape(String name)
getShapes
public List<Shape> getShapes()
sortShapes
public static final List<Shape> sortShapes(List<Shape> unsortedShapes)
getNames
public Set<String> getNames()
exists
public boolean exists(String name)
replaceShapes
public void replaceShapes(Collection<Shape> newShapes)
add
public Shape add(Shape newShape)
addAll
public void addAll(Collection<Shape> collection)
removeShape
public Shape removeShape(Shape shapeToRemove)