Class StyleRegistrar<T>
- java.lang.Object
-
- repast.simphony.visualization.engine.StyleRegistrar<T>
-
- Direct Known Subclasses:
StyleRegistrar2D
,StyleRegistrar3D
,StyleRegistrarOGL2D
public abstract class StyleRegistrar<T> extends Object
Creates a style from a style classname.- Author:
- Nick Collier
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
StyleRegistrar.Registrar<T>
Inteface for a closure that registers the created style on the display.
-
Constructor Summary
Constructors Constructor Description StyleRegistrar()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected 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)
-
-
-
Method Detail
-
registerStyles
public void registerStyles(StyleRegistrar.Registrar<T> registrar, DisplayDescriptor descriptor) throws ClassNotFoundException, InstantiationException, IllegalAccessException
-
getOrderedAgentCollection
protected Collection<String> getOrderedAgentCollection(DisplayDescriptor descriptor)
-
createdEditedStyle
protected abstract T createdEditedStyle(String editedStyleName)
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
-
-