Class NESTGraphVisualizerImpl<T extends NESTGraphObject>
- java.lang.Object
-
- de.uni_trier.wi2.procake.utils.composition.FactoryObjectImplementation
-
- de.uni_trier.wi2.procake.data.object.nest.utils.impl.NESTGraphVisualizerImpl<T>
-
- All Implemented Interfaces:
NESTGraphVisualizer
public class NESTGraphVisualizerImpl<T extends NESTGraphObject> extends FactoryObjectImplementation implements NESTGraphVisualizer
-
-
Field Summary
Fields Modifier and Type Field Description protected Tgraphprotected Map<Parameter,Predicate<? super NESTGraphItemObject>>parameterToGraphItemTypeMapping
-
Constructor Summary
Constructors Constructor Description NESTGraphVisualizerImpl()NESTGraphVisualizerImpl(T graph)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected StringgenerateString()List<Parameter>getParameters()ObjectgetVisualization()The main method to return a visualization, e.g.voidpostInit()Called after all factories are initialized withFactoryObjectImplementation.preInit(AbstractParameter[])and bind to the factory.voidpreInit(AbstractParameter[] parameter)Called directly after creating the implementation.voidvisualize()The main method to show a visualization of any kind.-
Methods inherited from class de.uni_trier.wi2.procake.utils.composition.FactoryObjectImplementation
getParameter, initParametersBasedOn
-
-
-
-
Field Detail
-
parameterToGraphItemTypeMapping
protected Map<Parameter,Predicate<? super NESTGraphItemObject>> parameterToGraphItemTypeMapping
-
graph
protected T extends NESTGraphObject graph
-
-
Constructor Detail
-
NESTGraphVisualizerImpl
public NESTGraphVisualizerImpl()
-
NESTGraphVisualizerImpl
public NESTGraphVisualizerImpl(T graph)
-
-
Method Detail
-
preInit
public void preInit(AbstractParameter[] parameter)
Description copied from class:FactoryObjectImplementationCalled directly after creating the implementation.- Specified by:
preInitin classFactoryObjectImplementation- Parameters:
parameter- The parameters to initialize the implementation.
-
postInit
public void postInit()
Description copied from class:FactoryObjectImplementationCalled after all factories are initialized withFactoryObjectImplementation.preInit(AbstractParameter[])and bind to the factory.- Specified by:
postInitin classFactoryObjectImplementation
-
getParameters
public List<Parameter> getParameters()
- Specified by:
getParametersin classFactoryObjectImplementation- Returns:
- Returns a list of available parameters in the implementation. This method can be called
without initialization and is never
null.
-
visualize
public void visualize()
Description copied from interface:NESTGraphVisualizerThe main method to show a visualization of any kind.- Specified by:
visualizein interfaceNESTGraphVisualizer
-
getVisualization
public Object getVisualization()
Description copied from interface:NESTGraphVisualizerThe main method to return a visualization, e.g. a string or an xml.- Specified by:
getVisualizationin interfaceNESTGraphVisualizer- Returns:
- the visualization in the export format
-
generateString
protected String generateString()
-
-