Class DotGraphUmlModuleNode
source code
A specialized dot grah node used to display ModuleDocs using
UML notation. Simple module nodes look like:
.----.
+------------+
| modulename |
+------------+
Packages nodes are drawn with their modules & subpackages nested
inside:
.----.
+----------------------------------------+
| packagename |
| |
| .----. .----. .----. |
| +---------+ +---------+ +---------+ |
| | module1 | | module2 | | module3 | |
| +---------+ +---------+ +---------+ |
| |
+----------------------------------------+
|
_MODULE_LABEL = ' \n <TABLE BORDER="0" CELLBORDER="0" CELLS ...
Expects: (color, color, url, tooltip, body)
|
|
_NESTED_BODY = ' \n <TABLE BORDER="0" CELLBORDER="0" CELLPAD ...
Expects: (name, body_rows)
|
|
_NESTED_BODY_ROW = ' \n <TR><TD>\n <TABLE BORDER="0" CE ...
Expects: (cells,)
|
|
_COLOR_DIFF = 24
|
|
|
Call Graph |
- Returns:
(label, depth, width) where:
|
|
Call Graph |
Return the dot commands that should be used to render this node.
- Overrides:
DotGraphNode.to_dotfile
- (inherited documentation)
|
_MODULE_LABEL
Expects: (color, color, url, tooltip, body)
- Value:
'''
<TABLE BORDER="0" CELLBORDER="0" CELLSPACING="0" ALIGN="LEFT">
<TR><TD ALIGN="LEFT" VALIGN="BOTTOM" HEIGHT="8" WIDTH="16"
FIXEDSIZE="true" BGCOLOR="%s" BORDER="1" PORT="tab"></TD><
/TR>
<TR><TD ALIGN="LEFT" VALIGN="TOP" BGCOLOR="%s" BORDER="1" WIDTH="2
0"
PORT="body" HREF="%s" TOOLTIP="%s">%s</TD></TR>
...
|
|
_NESTED_BODY
Expects: (name, body_rows)
- Value:
'''
<TABLE BORDER="0" CELLBORDER="0" CELLPADDING="0" CELLSPACING="0">
<TR><TD ALIGN="LEFT">%s</TD></TR>
%s
</TABLE> '''
|
|
_NESTED_BODY_ROW
Expects: (cells,)
- Value:
'''
<TR><TD>
<TABLE BORDER="0" CELLBORDER="0"><TR>%s</TR></TABLE>
</TD></TR> '''
|
|