Presentation Layout Providers

com.ibm.xtools.presentation.layoutProviders

This extension point is used to define layout providers for the layout service. The layout service allows for the arrangement of diagram elements according to a specific layout style.

Extensions to the service can provide additional layout behaviour. For example, a new provider could implement a specialized inheritance layout.

<!ELEMENT extension (layoutProvider)>

<!ATTLIST extension

point CDATA #REQUIRED

id    CDATA #IMPLIED

name  CDATA #IMPLIED>


<!ELEMENT layoutProvider (Priority)>

<!ATTLIST layoutProvider

class CDATA #REQUIRED>

The layout provider description tag.



<!ELEMENT Priority EMPTY>

<!ATTLIST Priority

name (Lowest|Low|Medium|High|Highest) >

The description for the priority of the layout provider.



The following is an example of an xml entry for a provider extension:
 

<extension id=

"presentationLayoutProvider"

name=

"RadialProvider"

point=

"com.ibm.xtools.presentation.layoutProviders"

>

<layoutProvider class=

"com.ibm.xtools.presentation.providers.layout.RadialProvider"

>

<Priority name=

"Lowest"

>

</Priority>

</layoutProvider>

</extension>

For API information, see the interfaces defined in the com.ibm.xtools.presentation.services.layout package.

Clients providing an extension to the layout service need to create a provider class that implements the com.ibm.xtools.presentation.services.layout.ILayoutNodesProvider interface.