Changing Font Size in Notes in UMLGraph

411 Views Asked by At

How it is possible to modify the default font size of UML notes in class diagram?

/**
 * @opt attributes  
 * @note How to modify font size of this text? 
 */

I tried with all documented fontsize options from the documentation site, but none of them modifies the note text font size.

/**
 * @hidden
....
 * @opt nodefontclasssize 22
 * @opt nodefontsize 14
 * @opt nodefonttagsize 14
 * @opt nodefontpackagesize 14
 * @opt edgefontsize 14 
.... 
 */
 class UMLOptions{}

I'm using UMLGraph-5.6

1

There are 1 best solutions below

1
On BEST ANSWER

Add options to a comment on a class named UMLNoteOptions. See the following example and result.

/**
 * @hidden
 * @opt nodefontsize 18
 */
class UMLNoteOptions{}

/**
 * @opt attributes
 * @note How to modify font size of this text?
 */
class Foo {}

UMLGraph result