Package | Description |
---|---|
horstmann.ch08_graphed |
Modifier and Type | Class and Description |
---|---|
class |
CircleNode
A circular node that is filled with a color.
|
class |
PointNode
An inivisible node that is used in the toolbar to draw an
edge.
|
Modifier and Type | Method and Description |
---|---|
Node |
Graph.findNode(java.awt.geom.Point2D p)
Finds a node containing the given point.
|
Node |
AbstractEdge.getEnd() |
Node |
Edge.getEnd()
Gets the ending node.
|
abstract Node[] |
Graph.getNodePrototypes()
Gets the node types of a particular graph type.
|
Node[] |
SimpleGraph.getNodePrototypes() |
Node |
AbstractEdge.getStart() |
Node |
Edge.getStart()
Gets the starting node.
|
Modifier and Type | Method and Description |
---|---|
java.util.List<Node> |
Graph.getNodes()
Gets the nodes of this graph.
|
Modifier and Type | Method and Description |
---|---|
void |
ToolBar.add(Node n)
Adds a node to the tool bar.
|
boolean |
Graph.add(Node n,
java.awt.geom.Point2D p)
Adds a node to the graph so that the top left corner of
the bounding rectangle is at the given point.
|
void |
AbstractEdge.connect(Node s,
Node e) |
void |
Edge.connect(Node aStart,
Node anEnd)
Connects this edge to two nodes.
|
void |
Graph.removeNode(Node n)
Removes a node and all edges that start or end with that node
|