Specifying class Diagram Options

Since the options are really a part of the generated graph you want in many cases to include them in the diagram specification. You can do that by adding javadoc @opt tags in front of a class named UMLOptions, as in the following example:
/**
 * @opt horizontal
 * @opt all
 * @hidden
 */
class UMLOptions {}

Similarly, you can also globally specify options for all the note elements. through a class named UMLNoteOptions, as in the following example:

/**
 * @hidden
 * @opt nodefontcolor "blue"
 */
class UMLNoteOptions{}

You can also change the UMLGraph operation on a per-class basis by using @opt attributes on individual classes. In this case the @opt specification temporarily overrides the particular global setting for the class being processed.

Finally, you can reset an option to its default value by prefixing it with an exclamation mark. For example:

/**
 * @opt !attributes
 * @opt !nodefontsize
 */
class MyClass {}
will disable attribute listing for MyClass, and reset the node font size to its default value (10).