Home | Trees | Indices | Help |
|
---|
|
A specialized dot graph node used to display ClassDocs using UML notation. The node is rendered as a table with three cells: the top cell contains the class name; the middle cell contains a list of attributes; and the bottom cell contains a list of operations:
+-------------+ | ClassName | +-------------+ | x: int | | ... | +-------------+ | f(self, x) | | ... | +-------------+
DotGraphUmlClassNodes may be collapsed, in which case they are drawn as a simple box containing the class name:
+-------------+ | ClassName | +-------------+
Attributes with types corresponding to documented classes can optionally be converted into edges, using link\_attributes().
To Do: Add more options? - show/hide operation signature - show/hide operation signature types - show/hide operation signature return type - show/hide attribute types - use qualifiers
|
|||
|
|||
Inherited from |
|||
Attribute Linking | |||
---|---|---|---|
|
|||
|
|||
|
|||
Helper Methods | |||
|
|||
|
|||
Rendering | |||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|
|||
Helper Methods | |||
---|---|---|---|
|
|
|||
Inherited from |
|||
Attribute Linking | |||
---|---|---|---|
SIMPLE_TYPE_RE = re.compile(r'^ A regular expression that matches descriptions of simple types. |
|||
COLLECTION_TYPE_RE = re.compile(r'^ A regular expression that matches descriptions of collection types. |
|||
MAPPING_TYPE_RE = re.compile(r'^ A regular expression that matches descriptions of mapping types. |
|||
MAPPING_TO_COLLECTION_TYPE_RE = re.compile(r'^ A regular expression that matches descriptions of mapping types whose value type is a collection. |
|||
OPTIONAL_TYPE_RE = re.compile(r'^ A regular expression that matches descriptions of optional types. |
|||
Rendering | |||
_ATTRIBUTE_CELL =
args: (url, tooltip, label) |
|||
_OPERATION_CELL =
args: (url, tooltip, label) |
|||
_QUALIFIER_CELL =
args: (port, bgcolor, label) |
|||
_QUALIFIER_DIV =
|
|||
_LABEL =
Args: (rowspan, bgcolor, classname, attributes, operations, qualifiers) |
|||
_COLLAPSED_LABEL =
|
|
|||
class_doc The class represented by this node. |
|||
linker Used to look up URLs for classes. |
|||
context The context in which the node will be drawn. |
|||
bgcolor The background color of the node. |
|||
options Options used to control how the node is displayed. |
|||
collapsed If true, then draw this node as a simple box. |
|||
attributes The list of VariableDocs for attributes |
|||
operations The list of VariableDocs for operations |
|||
qualifiers List of (key_label, port) tuples. |
|||
edges List of edges used to represent this node's attributes. |
|||
same_rank List of nodes that should have the same rank as this one. |
|
|
Convert any attributes with type descriptions corresponding to documented classes to edges. The following type descriptions are currently handled:
The edges created by link\_attributes() are handled internally by DotGraphUmlClassNode; they should not be added directly to the DotGraph.
|
var into an edge, and add that edge to
self.edges. Return True iff the variable was
successfully converted to an edge (in which case, it should be
removed from the attributes list).
|
var . Return True if
successful.
|
To Do:
|
To Do:
|
|
|
COLLECTION_TYPE_REA regular expression that matches descriptions of collection types.
|
MAPPING_TYPE_REA regular expression that matches descriptions of mapping types.
|
MAPPING_TO_COLLECTION_TYPE_REA regular expression that matches descriptions of mapping types whose value type is a collection.
|
OPTIONAL_TYPE_REA regular expression that matches descriptions of optional types.
|
_ATTRIBUTE_CELLargs: (url, tooltip, label)
|
_OPERATION_CELLargs: (url, tooltip, label)
|
_QUALIFIER_CELLargs: (port, bgcolor, label)
|
_QUALIFIER_DIV
|
_LABELArgs: (rowspan, bgcolor, classname, attributes, operations, qualifiers)
|
_COLLAPSED_LABEL
|
|
edgesList of edges used to represent this node's attributes. These should not be added to the DotGraph; this node will generate their dotfile code directly. |
same_rankList of nodes that should have the same rank as this one. (Used for nodes that are created by _link_attributes). |
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Fri Jun 13 23:51:22 2008 | http://epydoc.sourceforge.net |