Using the Layout Macros
The layout macros are used to compute the diagram presentation each time it is refreshed, for example, to compute a horizontal or a vertical representation of a diagram.
A layout macro is written in JAVA using the diagram plug-in method.
*A diagram plug-in macro must be implemented in a HOPEX Macro repository object. It defines a number of functions which are called in response to events occurring in the diagram.
*For more details on the diagram plug-in method, see the “Writing a diagram plug-in” chapter in the HOPEX Studio guide.
Those macros are linked to a DiagTabDefinition through DiagTabType objects.
To associate a layout macro with a DiagTabType:
1. Open the Characteristics property page of the DiagTabType that interests you.
2. In the Layout Macro, select the macro you want to associate to the DiagTabType.