class documentation

class DotPrinter(Printer): (source)

View In Hierarchy

Undocumented

Method __init__ Undocumented
Method emit_edge Create an edge from one node to another to display relationships.
Method emit_node Create a new node.
Method generate Generate and save the final outputfile.
Constant DEFAULT_COLOR Undocumented
Instance Variable charset Undocumented
Method _build_label_for_node Undocumented
Method _close_graph Emit the lines needed to properly close the graph.
Method _open_graph Emit the header lines.

Inherited from Printer:

Method emit Undocumented
Instance Variable layout Undocumented
Instance Variable lines Undocumented
Instance Variable title Undocumented
Instance Variable use_automatic_namespace Undocumented
Static Method _get_method_arguments Undocumented
Method _dec_indent Decrement indentation.
Method _inc_indent Increment indentation.
Instance Variable _indent Undocumented
def __init__(self, title: str, layout: Layout|None = None, use_automatic_namespace: bool|None = None): (source)
def emit_edge(self, from_node: str, to_node: str, type_: EdgeType, label: str|None = None): (source)

Create an edge from one node to another to display relationships.

def emit_node(self, name: str, type_: NodeType, properties: NodeProperties|None = None): (source)

Create a new node. Nodes can be classes, packages, participants etc.

def generate(self, outputfile: str): (source)

Generate and save the final outputfile.

DEFAULT_COLOR: str = (source)

Undocumented

Value
'black'

Undocumented

def _build_label_for_node(self, properties: NodeProperties) -> str: (source)

Undocumented

def _close_graph(self): (source)

Emit the lines needed to properly close the graph.

def _open_graph(self): (source)

Emit the header lines.