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 | |
| +---------+ +---------+ +---------+ |
| |
+----------------------------------------+
|
|
__init__(self,
module_doc,
linker,
context,
collapsed=False,
excluded_submodules=(),
**options)
|
|
_get_html_label(self,
package)
|
|
_color(self,
package,
depth)
|
|
to_dotfile(self)
Return the dot commands that should be used to render this node.
|
:
__getitem__ ,
__setitem__
|
-
- Returns:
(label, depth, width) where:
|
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>'''
|
|