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
Modifier and TypeClassDescriptionstatic interface
Inteface for a closure that registers the created style on the display. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected abstract T
createdEditedStyle
(String editedStyleName) Creates an edited style object.protected Collection<String>
getOrderedAgentCollection
(DisplayDescriptor descriptor) void
registerStyles
(StyleRegistrar.Registrar<T> registrar, DisplayDescriptor descriptor) protected void
registerStyles
(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
-