1package aud.example.graph;
15 String decoration=super.getNodeDecoration(
object);
16 if ((decoration==
null || !decoration.contains(
"fillcolor=")) &&
17 ((
MyNode)
object).color!=
null){
18 decoration=(decoration==
null ?
"" : decoration+
",")+
19 "style=filled,fillcolor="+((
MyNode) object).color;
25 String decoration=super.getEdgeDecoration(
object);
26 if ((decoration==
null || !decoration.contains(
"color=")) &&
27 ((
MyEdge)
object).color!=
null) {
28 decoration=(decoration==
null ?
"" : decoration+
",")+
29 "color="+((
MyEdge) object).color;
31 if (((
MyEdge)
object).penwidth>=0.0) {
32 decoration=(decoration==
null ?
"" : decoration+
",")+
33 "penwidth="+((
MyEdge) object).penwidth;
String getNodeDecoration(GraphvizDecorable object)
get node decoration
String getEdgeDecoration(GraphvizDecorable object)
get node decoration
edge with all possible attributes that we require ;-)
graph based on aud.graph.GraphAM
node with all possible attributes that we require ;-)
Example for a simple decorator.
Interface for decorating items of Graphvizable objects.
utilities (not related to AuD lecture)
AuD lecture: Data structures, algorithms, examples.