de.cau.cs.kieler.kiml
Class LayoutServices.Registry

java.lang.Object
  extended by de.cau.cs.kieler.kiml.LayoutServices.Registry
Enclosing class:
LayoutServices

public final class LayoutServices.Registry
extends Object

Class used to register the layout services.

Rating red

Method Summary
 void addCategory(String id, String name)
          Registers the given category.
 void addDiagramType(String id, String name)
          Registers the given diagram type.
 void addLayoutListener(ILayoutListener listener)
          Adds the given layout listener to the list of registered listeners.
 void addLayoutOption(LayoutOptionData optionData)
          Registers the given layout option.
 void addLayoutProvider(LayoutProviderData providerData)
          Registers the given layout provider.
 void addLayoutType(String id, String name)
          Registers the given layout type.
 void addOption(String id, String optionId, Object value)
          Adds the given option as default for an object identifier.
 void removeLayoutListener(ILayoutListener listener)
          Removes the given layout listener from the list of registered listeners.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

addLayoutListener

public void addLayoutListener(ILayoutListener listener)
Adds the given layout listener to the list of registered listeners.

Parameters:
listener - layout listener to register

removeLayoutListener

public void removeLayoutListener(ILayoutListener listener)
Removes the given layout listener from the list of registered listeners.

Parameters:
listener - layout listener to remove

addLayoutProvider

public void addLayoutProvider(LayoutProviderData providerData)
Registers the given layout provider. If there is already a registered provider data instance with the same identifier, it is overwritten.

Parameters:
providerData - data instance of the layout provider to register

addLayoutOption

public void addLayoutOption(LayoutOptionData optionData)
Registers the given layout option. If there is already a registered option data instance with the same identifier, it is overwritten.

Parameters:
optionData - data instance of the layout option to register

addLayoutType

public void addLayoutType(String id,
                          String name)
Registers the given layout type.

Parameters:
id - identifier of the type
name - user friendly name of the type

addCategory

public void addCategory(String id,
                        String name)
Registers the given category.

Parameters:
id - identifier of the category
name - user friendly name of the category

addDiagramType

public void addDiagramType(String id,
                           String name)
Registers the given diagram type.

Parameters:
id - identifier of the diagram type
name - user friendly name of the diagram type

addOption

public void addOption(String id,
                      String optionId,
                      Object value)
Adds the given option as default for an object identifier.

Parameters:
id - identifier of the object to register
optionId - identifier of a layout option
value - value for the layout option