Class NESTGraphVisualizerFactory
java.lang.Object
de.uni_trier.wi2.procake.data.object.nest.utils.impl.NESTGraphVisualizerFactory
- All Implemented Interfaces:
Factory
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Bind an implementation to the factory.static NESTGraphVisualizerImpl
The first visualizer in the list is always the default modifier.static NESTGraphVisualizerImpl
getVisualizer
(NESTGraphObject graph, Class clazz) Returns a visualizer that is attached to the given NESTGraphObject and has the given identifier.void
reset()
This method has to be implemented by every factory in order to allow a proper restart of ProCAKE.boolean
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
-
Constructor Details
-
NESTGraphVisualizerFactory
public NESTGraphVisualizerFactory()
-
-
Method Details
-
getDefaultVisualizer
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
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:Factory
This 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
Description copied from interface:Factory
Bind an implementation to the factory. -
unbind
Description copied from interface:Factory
Unbinds an implementation from the factory.
-