Package | Description |
---|---|
horstmann.ch08_graphed |
Modifier and Type | Class and Description |
---|---|
class |
AbstractEdge
A class that supplies convenience implementations for
a number of methods in the Edge interface type.
|
class |
LineEdge
An edge that is shaped like a straight line.
|
Modifier and Type | Field and Description |
---|---|
private java.util.ArrayList<Edge> |
Graph.edges |
Modifier and Type | Method and Description |
---|---|
Edge |
Graph.findEdge(java.awt.geom.Point2D p)
Finds an edge containing the given point.
|
abstract Edge[] |
Graph.getEdgePrototypes()
Gets the edge types of a particular graph type.
|
Edge[] |
SimpleGraph.getEdgePrototypes() |
Modifier and Type | Method and Description |
---|---|
java.util.List<Edge> |
Graph.getEdges()
Gets the edges of this graph.
|
Modifier and Type | Method and Description |
---|---|
void |
ToolBar.add(Edge e)
Adds an edge to the tool bar.
|
boolean |
Graph.connect(Edge e,
java.awt.geom.Point2D p1,
java.awt.geom.Point2D p2)
Adds an edge to the graph that joins the nodes containing
the given points.
|
void |
Graph.removeEdge(Edge e)
Removes an edge from the graph.
|