Class NESTGraphVisualizerFactory
- java.lang.Object
-
- de.uni_trier.wi2.procake.data.object.nest.utils.impl.NESTGraphVisualizerFactory
-
-
Constructor Summary
Constructors Constructor Description NESTGraphVisualizerFactory()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanbind(Object implementation)Bind an implementation to the factory.static NESTGraphVisualizerImplgetDefaultVisualizer(NESTGraphObject graph)The first visualizer in the list is always the default modifier.static NESTGraphVisualizerImplgetVisualizer(NESTGraphObject graph, Class clazz)Returns a visualizer that is attached to the given NESTGraphObject and has the given identifier.voidreset()This method has to be implemented by every factory in order to allow a proper restart of ProCAKE.booleanunbind(Object implementation)Unbinds an implementation from the factory.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface de.uni_trier.wi2.procake.utils.composition.Factory
addParameter, postInit
-
-
-
-
Method Detail
-
getDefaultVisualizer
public static NESTGraphVisualizerImpl getDefaultVisualizer(NESTGraphObject graph)
The first visualizer in the list is always the default modifier.- Parameters:
graph- the NESTGraphObject to attach- Returns:
- the desired visualizer, or null, if no visualizer is registered
-
getVisualizer
public static NESTGraphVisualizerImpl getVisualizer(NESTGraphObject graph, Class clazz)
Returns a visualizer that is attached to the given NESTGraphObject and has the given identifier.- Parameters:
graph- the NESTGraphObject to attachclazz- the class of the visualizer- Returns:
- the desired modifier, or null, if the identifier doesn't match any of the loaded modifiers
-
reset
public void reset()
Description copied from interface:FactoryThis method has to be implemented by every factory in order to allow a proper restart of ProCAKE. For example, this method might reset the default factory object or other stateful variables.
-
bind
public boolean bind(Object implementation)
Description copied from interface:FactoryBind an implementation to the factory.
-
-