Class NESTGraphVisualizerFactory

java.lang.Object
de.uni_trier.wi2.procake.data.object.nest.utils.impl.NESTGraphVisualizerFactory
All Implemented Interfaces:
Factory

public class NESTGraphVisualizerFactory extends Object implements Factory
  • Constructor Details

    • NESTGraphVisualizerFactory

      public NESTGraphVisualizerFactory()
  • Method Details

    • 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 attach
      clazz - 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.
      Specified by:
      reset in interface Factory
    • bind

      public boolean bind(Object implementation)
      Description copied from interface: Factory
      Bind an implementation to the factory.
      Specified by:
      bind in interface Factory
      Parameters:
      implementation - The object to bind.
      Returns:
      true if the factory accept the implementation, otherwise false .
    • unbind

      public boolean unbind(Object implementation)
      Description copied from interface: Factory
      Unbinds an implementation from the factory.
      Specified by:
      unbind in interface Factory
      Parameters:
      implementation - The object to unbind.
      Returns:
      true if the factory accept the implementation, otherwise false .