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 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.
 
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