org.nlogo.api
Class ShapeList

java.lang.Object
  extended by org.nlogo.api.ShapeList

public class ShapeList
extends Object


Field Summary
static String DEFAULT_SHAPE_NAME
           
 
Constructor Summary
ShapeList()
           
 
Method Summary
 Shape add(Shape newShape)
           
 void addAll(Collection<Shape> collection)
           
 boolean exists(String name)
           
 Set<String> getNames()
           
 List<Shape> getShapes()
           
static boolean isDefaultShapeName(String name)
           
 Shape removeShape(Shape shapeToRemove)
           
 void replaceShapes(Collection<Shape> newShapes)
           
 Shape shape(String name)
           
static List<Shape> sortShapes(List<Shape> unsortedShapes)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_SHAPE_NAME

public static final String DEFAULT_SHAPE_NAME
See Also:
Constant Field Values
Constructor Detail

ShapeList

public ShapeList()
Method Detail

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)