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

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

public final class LayoutDataService.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 addLayoutOption(LayoutOptionData<?> optionData)
          Registers the given layout option.
 void addLayoutProvider(LayoutAlgorithmData providerData)
          Registers the given layout provider.
 void addLayoutType(LayoutTypeData typeData)
          Registers the given layout type.
 void addOption(String id, String optionId, Object value)
          Adds the given option as default for an object identifier.
 void addSemanticConfig(String clazzName, SemanticLayoutConfig config)
          Registers the given semantic layout configuration.
 void removeOption(String id, String optionId)
          Remove the value of the given option.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

addLayoutProvider

public void addLayoutProvider(LayoutAlgorithmData 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(LayoutTypeData typeData)
Registers the given layout type. If there is already a registered layout type instance with the same identifier, it is overwritten, but its contained layouters are copied.

Parameters:
typeData - data instance of the layout type to register

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

removeOption

public void removeOption(String id,
                         String optionId)
Remove the value of the given option.

Parameters:
id - identifier of the object for which an option shall be removed
optionId - identifier of a layout option

addSemanticConfig

public void addSemanticConfig(String clazzName,
                              SemanticLayoutConfig config)
Registers the given semantic layout configuration.

Parameters:
clazzName - domain model class name for which to register the configuration
config - a semantic layout configuration