AuD
Lecture 'Algorithmen und Datenstrukturen' (code examples)
aud.util.GraphvizDecorator Class Reference

Decorator for items of Graphvizable objects. More...

+ Inheritance diagram for aud.util.GraphvizDecorator:

Public Member Functions

String getNodeDecoration (GraphvizDecorable object)
 get node decoration More...
 
String getEdgeDecoration (GraphvizDecorable object)
 get node decoration More...
 
String getGraphDecoration (GraphvizDecorable object)
 get graph decoration (returns same for all nodes/edges) More...
 
String getAllNodesDecoration ()
 get standard decoration for all nodes (list head) More...
 
String getAllEdgesDecoration ()
 get standard decoration for all edges (list head) More...
 
String getGlobalStyle ()
 get global style (returns same for all nodes/edges) More...
 
String getFullNodeDecoration (GraphvizDecorable object)
 concatenates getAllNodesDecoration and getNodeDecoration More...
 
String getFullEdgeDecoration (GraphvizDecorable object)
 concatenates getAllEdgesDecoration and getEdgeDecoration More...
 

Detailed Description

Decorator for items of Graphvizable objects.

Definition at line 5 of file GraphvizDecorator.java.

Member Function Documentation

◆ getAllEdgesDecoration()

String aud.util.GraphvizDecorator.getAllEdgesDecoration ( )

get standard decoration for all edges (list head)

Reimplemented in aud.util.CommonGraphvizDecorator.

Definition at line 21 of file GraphvizDecorator.java.

21{ return null; }

Referenced by aud.util.GraphvizDecorator.getFullEdgeDecoration().

+ Here is the caller graph for this function:

◆ getAllNodesDecoration()

String aud.util.GraphvizDecorator.getAllNodesDecoration ( )

get standard decoration for all nodes (list head)

Reimplemented in aud.util.CommonGraphvizDecorator.

Definition at line 19 of file GraphvizDecorator.java.

19{ return "shape=circle"; }

Referenced by aud.util.GraphvizDecorator.getFullNodeDecoration().

+ Here is the caller graph for this function:

◆ getEdgeDecoration()

String aud.util.GraphvizDecorator.getEdgeDecoration ( GraphvizDecorable  object)

get node decoration

Reimplemented in aud.util.SimpleDecorator.

Definition at line 11 of file GraphvizDecorator.java.

11 {
12 return null;
13 }

Referenced by aud.util.GraphvizDecorator.getFullEdgeDecoration().

+ Here is the caller graph for this function:

◆ getFullEdgeDecoration()

String aud.util.GraphvizDecorator.getFullEdgeDecoration ( GraphvizDecorable  object)

concatenates getAllEdgesDecoration and getEdgeDecoration

Definition at line 33 of file GraphvizDecorator.java.

33 {
34 String head=getAllEdgesDecoration();
35 String text=head!=null ? head+"," : "";
36 String tail=getEdgeDecoration(object);
37 return tail!=null ? text+tail : text;
38 }
String getAllEdgesDecoration()
get standard decoration for all edges (list head)
String getEdgeDecoration(GraphvizDecorable object)
get node decoration

References aud.util.GraphvizDecorator.getAllEdgesDecoration(), and aud.util.GraphvizDecorator.getEdgeDecoration().

+ Here is the call graph for this function:

◆ getFullNodeDecoration()

String aud.util.GraphvizDecorator.getFullNodeDecoration ( GraphvizDecorable  object)

concatenates getAllNodesDecoration and getNodeDecoration

Definition at line 26 of file GraphvizDecorator.java.

26 {
27 String head=getAllNodesDecoration();
28 String text=head!=null ? head : "";
29 String tail=getNodeDecoration(object);
30 return tail!=null ? text+","+tail : text;
31 }
String getAllNodesDecoration()
get standard decoration for all nodes (list head)
String getNodeDecoration(GraphvizDecorable object)
get node decoration

References aud.util.GraphvizDecorator.getAllNodesDecoration(), and aud.util.GraphvizDecorator.getNodeDecoration().

+ Here is the call graph for this function:

◆ getGlobalStyle()

String aud.util.GraphvizDecorator.getGlobalStyle ( )

get global style (returns same for all nodes/edges)

Reimplemented in aud.util.CommonGraphvizDecorator.

Definition at line 23 of file GraphvizDecorator.java.

23{ return null; }

Referenced by aud.BinaryTree< T >.toDot().

+ Here is the caller graph for this function:

◆ getGraphDecoration()

String aud.util.GraphvizDecorator.getGraphDecoration ( GraphvizDecorable  object)

get graph decoration (returns same for all nodes/edges)

Reimplemented in aud.util.CommonGraphvizDecorator.

Definition at line 15 of file GraphvizDecorator.java.

15 {
16 return null;
17 }

Referenced by aud.BinaryTree< T >.toDot().

+ Here is the caller graph for this function:

◆ getNodeDecoration()

String aud.util.GraphvizDecorator.getNodeDecoration ( GraphvizDecorable  object)

get node decoration

Reimplemented in aud.util.SimpleDecorator.

Definition at line 7 of file GraphvizDecorator.java.

7 {
8 return null;
9 }

Referenced by aud.util.GraphvizDecorator.getFullNodeDecoration().

+ Here is the caller graph for this function:

The documentation for this class was generated from the following file: