![]() |
AuD
Lecture 'Algorithmen und Datenstrukturen' (code examples)
|
plain simple node More...
Public Member Functions | |
SimpleNode | create () |
Create new node instance. More... | |
String | getLabel () |
get text description More... | |
void | setLabel (String label) |
set label (default label if label==null ) More... | |
void | setPosition (double x, double y) |
helper for drawing the graph (if supported) More... | |
double[] | getPosition () |
helper for drawing the graph: return {x,y} as array or null More... | |
![]() | |
abstract AbstractNode | create () |
Create new node instance. More... | |
AbstractGraph<? extends AbstractNode,? extends AbstractEdge > | graph () |
get graph More... | |
int | index () |
get index, i.e., unique integer id within graph More... | |
String | getLabel () |
get text description More... | |
void | setLabel (String label) |
set label (if supported) More... | |
void | setPosition (double x, double y) |
helper for drawing the graph (if supported) More... | |
double[] | getPosition () |
helper for drawing the graph: return {x,y} as array or null More... | |
GraphvizDecorator | getDecorator () |
get decoration or null More... | |
String | toString () |
int | compareTo (AbstractNode other) |
boolean | equals (Object other) |
GraphvizDecorator | getDecorator () |
get decoration or null More... | |
plain simple node
Definition at line 4 of file SimpleNode.java.
SimpleNode aud.graph.SimpleNode.create | ( | ) |
Create new node instance.
Must initialize any attributes introduced in subclasses of AbstractNode
.
Reimplemented from aud.graph.AbstractNode.
Reimplemented in aud.example.graph.MyNode.
Definition at line 9 of file SimpleNode.java.
String aud.graph.SimpleNode.getLabel | ( | ) |
get text description
Reimplemented from aud.graph.AbstractNode.
Definition at line 12 of file SimpleNode.java.
Referenced by aud.example.graph.MyNode.toString().
double[] aud.graph.SimpleNode.getPosition | ( | ) |
helper for drawing the graph: return {x,y} as array or null
Reimplemented from aud.graph.AbstractNode.
Definition at line 22 of file SimpleNode.java.
void aud.graph.SimpleNode.setLabel | ( | String | label | ) |
set label (default label if label==null
)
Reimplemented from aud.graph.AbstractNode.
Definition at line 16 of file SimpleNode.java.
Referenced by aud.example.graph.MaxFlowExample.createGraph(), aud.example.graph.GraphP88.GraphP88(), and aud.util.GraphDemo.main().
void aud.graph.SimpleNode.setPosition | ( | double | x, |
double | y | ||
) |
helper for drawing the graph (if supported)
Reimplemented from aud.graph.AbstractNode.
Definition at line 18 of file SimpleNode.java.
Referenced by aud.example.graph.MaxFlowExample.createGraph(), and aud.example.graph.GraphP88.GraphP88().