class documentation

class PlantUmlPrinter(Printer): (source)

View In Hierarchy

Printer for PlantUML diagrams.

Method emit_edge Create an edge from one node to another to display relationships.
Method emit_node Create a new node.
Constant ARROWS Undocumented
Constant DEFAULT_COLOR Undocumented
Constant NODES Undocumented
Method _close_graph Emit the lines needed to properly close the graph.
Method _open_graph Emit the header lines.

Inherited from Printer:

Method __init__ Undocumented
Method emit Undocumented
Method generate Generate and save the final outputfile.
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 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.

DEFAULT_COLOR: str = (source)

Undocumented

Value
'black'

Undocumented

Value
{NodeType.CLASS: 'class',
 NodeType.INTERFACE: 'class',
 NodeType.PACKAGE: 'package'}
def _close_graph(self): (source)

Emit the lines needed to properly close the graph.

def _open_graph(self): (source)

Emit the header lines.