org.nlogo.agent
Class ShapeList

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

public class ShapeList
extends Object


Field Summary
static String DEFAULT_SHAPE_NAME
           
 
Constructor Summary
ShapeList(List list)
           
ShapeList(Shape defaultShape)
           
 
Method Summary
 Shape addNewShape(Shape newShape)
           
 void addNewShapes(Collection collection)
           
 void clearShapes()
           
 boolean exists(String name)
           
 Set getNames()
           
 List getShapes()
           
 boolean isDefaultShape(String name)
           
 Shape removeShape(Shape shapeToRemove)
           
 Shape shape(String name)
           
static List sortShapes(List 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(Shape defaultShape)

ShapeList

public ShapeList(List list)
Method Detail

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)