From 8382e02a16c8c0c2f4ce0d547ca72a41c00cccd4 Mon Sep 17 00:00:00 2001 From: rfm Date: Mon, 4 Nov 2024 22:13:28 +0000 Subject: [PATCH] Add css classes for nodes in the diagrams as follows: figure_super if the element is the superclass of the ne being documented figure_class if the element is for a non-root class figure_root if the element is for a root class figure_protocol if the element is for a protocol --- Tools/AGSHtml.m | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/Tools/AGSHtml.m b/Tools/AGSHtml.m index 2b192808f..f3294c697 100644 --- a/Tools/AGSHtml.m +++ b/Tools/AGSHtml.m @@ -2744,27 +2744,28 @@ - (void) outputUnit: (GSXMLNode*)node to: (NSMutableString*)buf @" fontsize=24 width=0.5 shape=rectangle style=filled]\n"]; if (sNam) { + [dot appendFormat: @" %@ [class=figure_super", sNam]; if (url) { - [dot appendFormat: @" %@ [URL=\"%@\"]\n", sNam, url]; - } - else - { - [dot appendFormat: @" %@\n", sNam]; + [dot appendFormat: @" URL=\"%@\"", url]; } + [dot appendString: @"]\n"]; + [dot appendFormat: @" %@ [class=figure_class fontcolor=\"green\"]\n", + cNam]; } else { sNam = cNam; // This is a root class ... + [dot appendFormat: @" %@ [class=figure_root fontcolor=\"green\"]\n", + cNam]; } - [dot appendFormat: @" %@ [fontcolor=\"green\"]\n", cNam]; if (protocols) { e = [protocols keyEnumerator]; while ((p = [e nextObject]) != nil) { - [dot appendFormat: - @" p_%@ [label=\"%@\" URL=\"%@\" shape=hexagon]\n", + [dot appendFormat: @" p_%@ [class=figure_protocol" + @" label=\"%@\" URL=\"%@\" shape=hexagon]\n", p, p, [protocols objectForKey: p]]; } }