![]() |
AuD
Lecture 'Algorithmen und Datenstrukturen' (code examples)
|
Interface for simple decorator with preset properties. More...
Public Member Functions | |
abstract void | highlightNode (GraphvizDecorable object) |
Set highlighted node. More... | |
abstract void | highlightEdge (GraphvizDecorable object) |
Set highlighted edge. More... | |
abstract void | markNode (GraphvizDecorable object) |
abstract void | unmarkNode (GraphvizDecorable object) |
unmark node object More... | |
abstract void | unmarkAllNodes () |
unmark all nodes More... | |
abstract void | markEdge (GraphvizDecorable object) |
abstract void | unmarkEdge (GraphvizDecorable object) |
unmark edge object More... | |
abstract void | unmarkAllEdges () |
unmark all edges More... | |
String | getGraphLabel () |
get label More... | |
void | setGraphLabel (String text) |
set label More... | |
void | clear () |
Clear all decorations. 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 | 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... | |
Protected Attributes | |
String | all_nodes_style = "shape=circle" |
String | all_edges_style = null |
String | global_style = null |
String | graph_style = "fontsize=24" |
String | graph_label = null |
String | hilit_node_style = "style=filled,fillcolor=yellow,penwidth=2" |
String | hilit_edge_style = "color=red,penwidth=2" |
String | marked_node_style = "style=filled,fillcolor=lightgray,penwidth=1.5" |
String | marked_edge_style = "color=blue,penwidth=1.5" |
Interface for simple decorator with preset properties.
Defines styles and allows for
marking sets of nodes/edges (e.g., markNode
)
highlighting one particular node/edge (e.g., highlightNode
)
Definition at line 20 of file CommonGraphvizDecorator.java.
void aud.util.CommonGraphvizDecorator.clear | ( | ) |
Clear all decorations.
Calls unmarkAllNodes
and unmarkAllEdges
and unsets highlighting, unsets label.
Definition at line 67 of file CommonGraphvizDecorator.java.
References aud.util.CommonGraphvizDecorator.highlightEdge(), aud.util.CommonGraphvizDecorator.highlightNode(), aud.util.CommonGraphvizDecorator.setGraphLabel(), aud.util.CommonGraphvizDecorator.unmarkAllEdges(), and aud.util.CommonGraphvizDecorator.unmarkAllNodes().
Referenced by aud.example.BinaryTreeTraversal.traverse(), and aud.example.expr.ExpressionTreeTraversal.traverse().
String aud.util.CommonGraphvizDecorator.getAllEdgesDecoration | ( | ) |
get standard decoration for all edges (list head)
Reimplemented from aud.util.GraphvizDecorator.
Definition at line 85 of file CommonGraphvizDecorator.java.
References aud.util.CommonGraphvizDecorator.all_edges_style.
String aud.util.CommonGraphvizDecorator.getAllNodesDecoration | ( | ) |
get standard decoration for all nodes (list head)
Reimplemented from aud.util.GraphvizDecorator.
Definition at line 83 of file CommonGraphvizDecorator.java.
References aud.util.CommonGraphvizDecorator.all_nodes_style.
String aud.util.CommonGraphvizDecorator.getGlobalStyle | ( | ) |
get global style (returns same for all nodes/edges)
Reimplemented from aud.util.GraphvizDecorator.
Definition at line 87 of file CommonGraphvizDecorator.java.
References aud.util.CommonGraphvizDecorator.global_style.
String aud.util.CommonGraphvizDecorator.getGraphDecoration | ( | GraphvizDecorable | object | ) |
get graph decoration (returns same for all nodes/edges)
Reimplemented from aud.util.GraphvizDecorator.
Definition at line 75 of file CommonGraphvizDecorator.java.
References aud.util.CommonGraphvizDecorator.graph_label, and aud.util.CommonGraphvizDecorator.graph_style.
String aud.util.CommonGraphvizDecorator.getGraphLabel | ( | ) |
get label
Definition at line 59 of file CommonGraphvizDecorator.java.
References aud.util.CommonGraphvizDecorator.graph_label.
Referenced by aud.example.expr.ExpressionTreeTraversal.output(), and aud.example.BinaryTreeTraversal.output().
|
abstract |
Set highlighted edge.
Reimplemented in aud.util.SimpleDecorator.
Referenced by aud.util.CommonGraphvizDecorator.clear().
|
abstract |
Set highlighted node.
There is exactly one or no such node.
object | node or null (no highlight) |
Reimplemented in aud.util.SimpleDecorator.
Referenced by aud.util.CommonGraphvizDecorator.clear().
|
abstract |
Reimplemented in aud.util.SimpleDecorator.
|
abstract |
Reimplemented in aud.util.SimpleDecorator.
void aud.util.CommonGraphvizDecorator.setGraphLabel | ( | String | text | ) |
set label
Definition at line 61 of file CommonGraphvizDecorator.java.
References aud.util.CommonGraphvizDecorator.graph_label.
Referenced by aud.util.CommonGraphvizDecorator.clear(), aud.example.expr.ExpressionTreeTraversal.output(), aud.example.BinaryTreeTraversal.output(), aud.example.BinaryTreeTraversal.traverse(), and aud.example.expr.ExpressionTreeTraversal.traverse().
|
abstract |
unmark all edges
Reimplemented in aud.util.SimpleDecorator.
Referenced by aud.util.CommonGraphvizDecorator.clear().
|
abstract |
unmark all nodes
Reimplemented in aud.util.SimpleDecorator.
Referenced by aud.util.CommonGraphvizDecorator.clear().
|
abstract |
unmark edge object
Reimplemented in aud.util.SimpleDecorator.
|
abstract |
unmark node object
Reimplemented in aud.util.SimpleDecorator.
|
protected |
Definition at line 23 of file CommonGraphvizDecorator.java.
Referenced by aud.util.CommonGraphvizDecorator.getAllEdgesDecoration().
|
protected |
Definition at line 22 of file CommonGraphvizDecorator.java.
Referenced by aud.util.CommonGraphvizDecorator.getAllNodesDecoration().
|
protected |
Definition at line 24 of file CommonGraphvizDecorator.java.
Referenced by aud.util.CommonGraphvizDecorator.getGlobalStyle().
|
protected |
Definition at line 26 of file CommonGraphvizDecorator.java.
Referenced by aud.util.CommonGraphvizDecorator.getGraphDecoration(), aud.util.CommonGraphvizDecorator.getGraphLabel(), and aud.util.CommonGraphvizDecorator.setGraphLabel().
|
protected |
Definition at line 25 of file CommonGraphvizDecorator.java.
Referenced by aud.util.CommonGraphvizDecorator.getGraphDecoration().
|
protected |
Definition at line 29 of file CommonGraphvizDecorator.java.
Referenced by aud.util.SimpleDecorator.getEdgeDecoration().
|
protected |
Definition at line 28 of file CommonGraphvizDecorator.java.
Referenced by aud.util.SimpleDecorator.getNodeDecoration().
|
protected |
Definition at line 32 of file CommonGraphvizDecorator.java.
Referenced by aud.util.SimpleDecorator.getEdgeDecoration().
|
protected |
Definition at line 31 of file CommonGraphvizDecorator.java.
Referenced by aud.util.SimpleDecorator.getNodeDecoration().