Class StyleRegistrar<T>
java.lang.Object
repast.simphony.visualization.engine.StyleRegistrar<T>
- Direct Known Subclasses:
StyleRegistrar2D,StyleRegistrar3D,StyleRegistrarOGL2D
Creates a style from a style classname.
- Author:
- Nick Collier
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceInteface for a closure that registers the created style on the display. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract TcreatedEditedStyle(String editedStyleName) Creates an edited style object.protected Collection<String>getOrderedAgentCollection(DisplayDescriptor descriptor) voidregisterStyles(StyleRegistrar.Registrar<T> registrar, DisplayDescriptor descriptor) protected voidregisterStyles(StyleRegistrar.Registrar<T> registrar, DisplayDescriptor descriptor, Collection<String> agentNames)
-
Constructor Details
-
StyleRegistrar
public StyleRegistrar()
-
-
Method Details
-
registerStyles
public void registerStyles(StyleRegistrar.Registrar<T> registrar, DisplayDescriptor descriptor) throws ClassNotFoundException, InstantiationException, IllegalAccessException -
getOrderedAgentCollection
-
createdEditedStyle
Creates an edited style object.- Parameters:
editedStyleName- the name of the style- Returns:
- the created edited style.s
-
registerStyles
protected void registerStyles(StyleRegistrar.Registrar<T> registrar, DisplayDescriptor descriptor, Collection<String> agentNames) throws ClassNotFoundException, InstantiationException, IllegalAccessException
-