A B C D E F G H I L M N P R S T U V W X Y

A

addEdge(Edge) - Method in class de.neodot.babapplet.GraphModel
Adds a Edge to this Graph.
addEdgeMarkerListener(PathFinderListener) - Method in class de.neodot.babapplet.PathFinderModel
Adds a listener to the list that is notified each time a
addGraphModelListener(GraphModelListener) - Method in class de.neodot.babapplet.GraphModel
Adds a listener to the list that is notified eah time a change to the data model occurs.
addNode(Node) - Method in class de.neodot.babapplet.GraphModel
Adds a Node to this Graph.
addNodeSelectionListener(NodeSelectionListener) - Method in class de.neodot.babapplet.NodeSelectionModel
Adds a listener to the list that is notified each time a change to the data model occurs.

B

BabApplet - Class in de.neodot.babapplet
The BabApplet displays a GraphModel and shows the shortest path between two Nodes.
BabApplet() - Constructor for class de.neodot.babapplet.BabApplet
Create a BabApplet.

C

calcAction - Variable in class de.neodot.babapplet.BabApplet
Action for calculating the route.
calculate(Node, Node) - Method in class de.neodot.babapplet.Dijkstra
Calculates the shortest path from one Node to another.
calculateMarkedEdges(Node, Node) - Method in class de.neodot.babapplet.PathFinder
Calculates the shortest path using the PathFinderModel.
calculatePath(Node, Node) - Method in class de.neodot.babapplet.PathFinderModel
Calculate the shortest path.
compareTo(NamedObject) - Method in class de.neodot.babapplet.NamedObject
createControlPanel() - Method in class de.neodot.babapplet.BabApplet
Create the Control Panel.
createTextPanel() - Method in class de.neodot.babapplet.BabApplet
Creates a text area, where the path will be shown.

D

de.neodot.babapplet - package de.neodot.babapplet
 
DEFAULT_EDGE_COLOR - Static variable in class de.neodot.babapplet.GraphView
The default edge color.
DEFAULT_HIGHLIGHTED_EDGE_COLOR - Static variable in class de.neodot.babapplet.GraphView
The default highlighted edge color.
DEFAULT_NODE_COLOR - Static variable in class de.neodot.babapplet.GraphView
The default node color.
DEFAULT_NODE_DIAMETER - Static variable in class de.neodot.babapplet.GraphView
The default node diameter.
DEFAULT_SELECTED_NODE_COLOR - Static variable in class de.neodot.babapplet.GraphView
The default selected node color.
Dijkstra - Class in de.neodot.babapplet
Class calculates the shortest path from one Node to another within the given GraphModel.
Dijkstra(GraphModel) - Constructor for class de.neodot.babapplet.Dijkstra
Creates a new Dijkstra.
dijkstra - Variable in class de.neodot.babapplet.PathFinderModel
The used algorithm class.
distanceComparator - Variable in class de.neodot.babapplet.Dijkstra
A redefined Comparator for prioQueue.

E

Edge - Class in de.neodot.babapplet
An Edge connects two Nodes.
Edge(String, String, Node, Node, double) - Constructor for class de.neodot.babapplet.Edge
Create an Edge.
Edge(String, String, Node, Node) - Constructor for class de.neodot.babapplet.Edge
Create an Edge with a default weight calculated from the node distance.
edgeAdded(GraphModelEvent) - Method in interface de.neodot.babapplet.GraphModelListener
An Edge was added.
edgeAdded(GraphModelEvent) - Method in class de.neodot.babapplet.GraphView
An Edge was added.
edgeAdded(GraphModelEvent) - Method in class de.neodot.babapplet.NodeSelector
An edge was added.
edgeColor - Variable in class de.neodot.babapplet.GraphView
The edge color.
edgeList - Variable in class de.neodot.babapplet.Dijkstra
The shortest path's edges.
edgeRemoved(GraphModelEvent) - Method in interface de.neodot.babapplet.GraphModelListener
An Edge was removed.
edgeRemoved(GraphModelEvent) - Method in class de.neodot.babapplet.GraphView
An Edge was removed.
edgeRemoved(GraphModelEvent) - Method in class de.neodot.babapplet.NodeSelector
An edge was removed.
edges - Variable in class de.neodot.babapplet.GraphModel
The Edges of this Graph.
endNode - Variable in class de.neodot.babapplet.PathView
The currently selected end Node.
extractPath(Node, Node) - Method in class de.neodot.babapplet.Dijkstra
Builds the shortest Path.

F

fireEdgeAdded() - Method in class de.neodot.babapplet.GraphModel
Notify all registered listeners that an edge was added.
fireEdgeRemoved() - Method in class de.neodot.babapplet.GraphModel
Notify all registered listeners that an edge was removed.
fireNodeAdded() - Method in class de.neodot.babapplet.GraphModel
Notify all registered listeners that a node was added.
fireNodeRemoved() - Method in class de.neodot.babapplet.GraphModel
Notify all registered listeners that a node was removed.
fireNodeSelectionChanged() - Method in class de.neodot.babapplet.NodeSelectionModel
Notify all registered listeners that the selection of nodes has changed.
firePathChanged() - Method in class de.neodot.babapplet.PathFinderModel
Notify all registered listeners that the marked Edges changed.
firstSelectedBox - Variable in class de.neodot.babapplet.NodeSelector
The ComboBox for the first selected node.
firstSelectedNode - Variable in class de.neodot.babapplet.NodeSelectionModel
The first selected node.

G

getClosestNodeFor(Point) - Method in class de.neodot.babapplet.GraphView
Returns the closest Node to a given point.
getDistance(Point) - Method in class de.neodot.babapplet.Node
Returns the distance of the specified Point to this Node.
getDistance(Node, Node) - Static method in class de.neodot.babapplet.Node
Returns the distance between the two specified Nodes.
getEdgeColor() - Method in class de.neodot.babapplet.GraphView
Returns color that's used for displaying normal edges.
getEdgeForNodes(Node, Node) - Method in class de.neodot.babapplet.GraphModel
Returns the edge that contains the nodes.
getEdges() - Method in class de.neodot.babapplet.GraphModel
Returns an Iterable for the edges of this Graph.
getFirstSelectedNode() - Method in class de.neodot.babapplet.NodeSelectionModel
Returns the first selected node.
getGraphModel() - Method in class de.neodot.babapplet.Dijkstra
Returns the GraphModel that is used by this Dijkstra.
getGraphModel() - Method in class de.neodot.babapplet.GraphView
Returns the GraphModel displayed by this GraphView.
getGraphModel() - Method in class de.neodot.babapplet.PathFinderModel
Returns the used GraphModel.
getHighlightedEdgeColor() - Method in class de.neodot.babapplet.GraphView
Returns color that's used for displaying highlighted edges.
getId() - Method in class de.neodot.babapplet.NamedObject
Returns the id of this NamedObject.
getMarkedEdges() - Method in class de.neodot.babapplet.Dijkstra
Returns the list of edges of the shortest path.
getMarkedEdges() - Method in class de.neodot.babapplet.PathFinderModel
Returns a Collection of Edges that are part of shortest path.
getN1() - Method in class de.neodot.babapplet.Edge
Returns the first node of this Edge.
getN2() - Method in class de.neodot.babapplet.Edge
Returns the second node of this Edge.
getName() - Method in class de.neodot.babapplet.NamedObject
Returns the name of this NamedObject.
getNeighbourNodes(Node) - Method in class de.neodot.babapplet.GraphModel
Returns all neigbours of a node.
getNodeColor() - Method in class de.neodot.babapplet.GraphView
Returns the node color.
getNodeDiameter() - Method in class de.neodot.babapplet.GraphView
Returns the diameter used for displaying nodes.
getNodes() - Method in class de.neodot.babapplet.GraphModel
Returns an Iterable for the nodes of this Graph.
getNodeSelectionModel() - Method in class de.neodot.babapplet.GraphView
Returns the NodeSelectionModel displayed and controlled by this GraphView.
getNodesList() - Method in class de.neodot.babapplet.Dijkstra
Returns the list of nodes of the shortest path.
getNodesList() - Method in class de.neodot.babapplet.PathFinderModel
Returns the list of nodes that are part of shortest path.
getOtherNode(Node) - Method in class de.neodot.babapplet.Edge
Returns the other Node.
getPathFinderModel() - Method in class de.neodot.babapplet.GraphView
Returns the used PathFinderModel.
getPathFinderModel() - Method in class de.neodot.babapplet.PathFinder
Returns the used PathFinderModel.
getPathFinderModel() - Method in class de.neodot.babapplet.PathView
Returns the used PathFinderModel.
getSecondSelectedNode() - Method in class de.neodot.babapplet.NodeSelectionModel
Returns the second selected node.
getSelectedNodeColor() - Method in class de.neodot.babapplet.GraphView
Returns the selected node color.
getToolTipText(MouseEvent) - Method in class de.neodot.babapplet.GraphView
getWeight() - Method in class de.neodot.babapplet.Edge
Returns the weight of this Edge.
getX() - Method in class de.neodot.babapplet.Node
Returns the X-Coordinate of this Node.
getY() - Method in class de.neodot.babapplet.Node
Returns the Y-Coordinate of this Node.
graphModel - Variable in class de.neodot.babapplet.BabApplet
The GraphModel used by the GraphViews.
graphModel - Variable in class de.neodot.babapplet.Dijkstra
The used GraphModel.
GraphModel - Class in de.neodot.babapplet
The Model of a Graph.
GraphModel() - Constructor for class de.neodot.babapplet.GraphModel
Create a new GraphModel.
graphModel - Variable in class de.neodot.babapplet.GraphView
The Model of this GraphView.
graphModel - Variable in class de.neodot.babapplet.NodeSelector
The GraphModel to select nodes from.
graphModel - Variable in class de.neodot.babapplet.PathFinderModel
The used GraphModel.
GraphModelEvent - Class in de.neodot.babapplet
A GraphModelEvent is fired if a GraphModel changes.
GraphModelEvent(GraphModel) - Constructor for class de.neodot.babapplet.GraphModelEvent
Constructs a GraphModelEvent.
GraphModelListener - Interface in de.neodot.babapplet
EventListener interface for changes on a GraphModel.
graphView - Variable in class de.neodot.babapplet.BabApplet
The GraphView.
GraphView - Class in de.neodot.babapplet
Displays a Graph with Nodes and Edges.
GraphView() - Constructor for class de.neodot.babapplet.GraphView
Create a GraphView.
GraphView.GraphMouseListener - Class in de.neodot.babapplet
MouseListener for listening on mouse clicks to select nodes.
GraphView.GraphMouseListener() - Constructor for class de.neodot.babapplet.GraphView.GraphMouseListener
 

H

handleNode(Node) - Method in class de.neodot.babapplet.Dijkstra
Checks each neighbour node for shorter distance than already found.
highlightedEdgeColor - Variable in class de.neodot.babapplet.GraphView
The highlighted edge color.

I

id - Variable in class de.neodot.babapplet.NamedObject
The ID of this NamedObject.
init() - Method in class de.neodot.babapplet.BabApplet
init(Node) - Method in class de.neodot.babapplet.Dijkstra
Initializes the data structures and sets the distance from start to start node = 0.
isFirstSelectedNode(Node) - Method in class de.neodot.babapplet.NodeSelectionModel
Returns whether a node is the first selected node.
isSecondSelectedNode(Node) - Method in class de.neodot.babapplet.NodeSelectionModel
Returns whether a node is the second selected node.
itemStateChanged(ItemEvent) - Method in class de.neodot.babapplet.NodeSelector
The selection state of a node has changed.

L

listenerList - Variable in class de.neodot.babapplet.GraphModel
The EventListenerList.
listenerList - Variable in class de.neodot.babapplet.NodeSelectionModel
The EventListenerList.
listenerList - Variable in class de.neodot.babapplet.PathFinderModel
The EventListenerList.

M

markedEdges - Variable in class de.neodot.babapplet.PathFinderModel
The Collection of Edges that are part of shortest path.
minDistances - Variable in class de.neodot.babapplet.Dijkstra
Each node has a shortest distance from start node.
mouseClicked(MouseEvent) - Method in class de.neodot.babapplet.GraphView.GraphMouseListener

N

n1 - Variable in class de.neodot.babapplet.Edge
One end of this Edge.
n2 - Variable in class de.neodot.babapplet.Edge
Second end of this Edge.
name - Variable in class de.neodot.babapplet.NamedObject
The name of this NamedObject.
NamedObject - Class in de.neodot.babapplet
A NamedObject is an element of a Model that has a unique ID and a name.
NamedObject(String, String) - Constructor for class de.neodot.babapplet.NamedObject
Create a NamedObject.
Node - Class in de.neodot.babapplet
An immutable point representing a node in the net.
Node(String, String, int, int) - Constructor for class de.neodot.babapplet.Node
Create a Node.
nodeAdded(GraphModelEvent) - Method in interface de.neodot.babapplet.GraphModelListener
A new Node was added.
nodeAdded(GraphModelEvent) - Method in class de.neodot.babapplet.GraphView
A new Node was added.
nodeAdded(GraphModelEvent) - Method in class de.neodot.babapplet.NodeSelector
A node was added to GraphModel
nodeColor - Variable in class de.neodot.babapplet.GraphView
The node color.
nodeDiameter - Variable in class de.neodot.babapplet.GraphView
The node diameter.
nodeRemoved(GraphModelEvent) - Method in interface de.neodot.babapplet.GraphModelListener
A Node was removed.
nodeRemoved(GraphModelEvent) - Method in class de.neodot.babapplet.GraphView
A Node was removed.
nodeRemoved(GraphModelEvent) - Method in class de.neodot.babapplet.NodeSelector
A node was removed.
nodes - Variable in class de.neodot.babapplet.GraphModel
The Nodes of this Graph.
nodeSelectionChanged(NodeSelectionEvent) - Method in class de.neodot.babapplet.BabApplet
The selection of nodes in a NodeSelectionModel has changed.
nodeSelectionChanged(NodeSelectionEvent) - Method in class de.neodot.babapplet.GraphView
The selection of nodes in a NodeSelectionModel has changed.
nodeSelectionChanged(NodeSelectionEvent) - Method in interface de.neodot.babapplet.NodeSelectionListener
The selection of nodes in a NodeSelectionModel has changed.
nodeSelectionChanged(NodeSelectionEvent) - Method in class de.neodot.babapplet.NodeSelector
The selection of nodes in a NodeSelectionModel has changed.
nodeSelectionChanged(NodeSelectionEvent) - Method in class de.neodot.babapplet.PathFinder
Resets the PathFinderModel and Dijkstra if node selection has changed.
nodeSelectionChanged(NodeSelectionEvent) - Method in class de.neodot.babapplet.PathView
Changes the Nodes that are used to sort the displayed text.
NodeSelectionEvent - Class in de.neodot.babapplet
A NodeSelectionEvent is fired if a NodeSelectionModel changes.
NodeSelectionEvent(NodeSelectionModel) - Constructor for class de.neodot.babapplet.NodeSelectionEvent
Constructs a NodeSelectionEvent.
NodeSelectionListener - Interface in de.neodot.babapplet
EventListener interface for changes on a NodeSelectionModel.
nodeSelectionModel - Variable in class de.neodot.babapplet.GraphView
The NodeSelectionModel of this GraphView.
NodeSelectionModel - Class in de.neodot.babapplet
The NodeSelectionModel is a model for the selection of nodes in a GraphModel.
NodeSelectionModel() - Constructor for class de.neodot.babapplet.NodeSelectionModel
Create a NodeSelectionModel.
nodeSelectionModel - Variable in class de.neodot.babapplet.NodeSelector
The NodeSelectionModel to use for selection and update.
nodeSelectionModel - Variable in class de.neodot.babapplet.PathView
 
nodeSelector - Variable in class de.neodot.babapplet.BabApplet
The NodeSelector.
NodeSelector - Class in de.neodot.babapplet
A NodeSelector displays two ComboBoxes to select the first and second node of a NodeSelectionModel.
NodeSelector(GraphModel, NodeSelectionModel) - Constructor for class de.neodot.babapplet.NodeSelector
Create a NodeSelector.
nodesList - Variable in class de.neodot.babapplet.Dijkstra
The shortest path's nodes.
nodesList - Variable in class de.neodot.babapplet.PathFinderModel
The List of used Nodes on path.

P

paint(Graphics) - Method in class de.neodot.babapplet.GraphView
PathFinder - Class in de.neodot.babapplet
Calculates the shortest path between to Nodes within the given GraphModel.
PathFinder() - Constructor for class de.neodot.babapplet.PathFinder
Creates a new PathFinder.
pathFinderChanged(PathFinderEvent) - Method in class de.neodot.babapplet.GraphView
The marked edges of a PathFinderModel have changed.
pathFinderChanged(PathFinderEvent) - Method in class de.neodot.babapplet.PathFinder
Do nothing if PathFinder changed.
pathFinderChanged(PathFinderEvent) - Method in interface de.neodot.babapplet.PathFinderListener
The marked edges of a PathFinderModel have changed.
pathFinderChanged(PathFinderEvent) - Method in class de.neodot.babapplet.PathView
Displays or resets the text.
PathFinderEvent - Class in de.neodot.babapplet
A PathFinderEvent is fired if a PathFinderModel changes.
PathFinderEvent(PathFinderModel) - Constructor for class de.neodot.babapplet.PathFinderEvent
Constructs a PathFinderEvent.
PathFinderListener - Interface in de.neodot.babapplet
EventListener interface for changes on a PathFinderModel.
pathFinderModel - Variable in class de.neodot.babapplet.GraphView
The PathFinderModel of this GraphView.
pathFinderModel - Variable in class de.neodot.babapplet.PathFinder
The used PathFinderModel.
PathFinderModel - Class in de.neodot.babapplet
The PathFinderModel is a model for the marked markedEdges of GraphModel
PathFinderModel() - Constructor for class de.neodot.babapplet.PathFinderModel
Create a PathFinderModel.
pathFinderModel - Variable in class de.neodot.babapplet.PathView
The used PathFinderModel.
pathView - Variable in class de.neodot.babapplet.BabApplet
The PathView.
PathView - Class in de.neodot.babapplet
Class displays a path of edges in plain text.
PathView(PathFinderModel, NodeSelectionModel) - Constructor for class de.neodot.babapplet.PathView
Creates a PathView.
predecessors - Variable in class de.neodot.babapplet.Dijkstra
Each node has a predecessor within the shortest path.
prioQueue - Variable in class de.neodot.babapplet.Dijkstra
PriorityQueue ensures that all nodes will be handled in order of shortest distance.

R

readEdge(ResourceBundle, String, int) - Method in class de.neodot.babapplet.GraphModel
Creates an Edge from a Resource Bundle.
readModelFromBundle(ResourceBundle) - Static method in class de.neodot.babapplet.GraphModel
Create and initialize a GraphModel from a ResourceBundle.
readNode(ResourceBundle, String, int) - Method in class de.neodot.babapplet.GraphModel
Creates a Node from a Resource Bundle.
removeEdge(Edge) - Method in class de.neodot.babapplet.GraphModel
Removes an Edge from this Graph.
removeEdgeMarkerListener(PathFinderListener) - Method in class de.neodot.babapplet.PathFinderModel
Removes a listener from the list that is notified each time a change to the data model occurs.
removeGraphModelListener(GraphModelListener) - Method in class de.neodot.babapplet.GraphModel
Removes a listener from the list that is notified each time a change to the data model occurs.
removeNode(Node) - Method in class de.neodot.babapplet.GraphModel
Removes a Node from this Graph.
removeNodeSelectionListener(NodeSelectionListener) - Method in class de.neodot.babapplet.NodeSelectionModel
Removes a listener from the list that is notified each time a change to the data model occurs.
reset() - Method in class de.neodot.babapplet.Dijkstra
Resets the data structures.
resetDijkstra() - Method in class de.neodot.babapplet.PathFinderModel
Resets the used Dijkstra.
resetPath() - Method in class de.neodot.babapplet.PathFinderModel
Resets the marked Edges.

S

SCALE_FACTOR - Static variable in class de.neodot.babapplet.GraphModel
The used scale factor.
secondSelectedBox - Variable in class de.neodot.babapplet.NodeSelector
The ComboBox for the second selected node.
secondSelectedNode - Variable in class de.neodot.babapplet.NodeSelectionModel
The second selected node.
selectedNodeColor - Variable in class de.neodot.babapplet.GraphView
The selected node color.
setEdgeColor(Color) - Method in class de.neodot.babapplet.GraphView
Sets the color that's used for displaying normal edges.
setFirstSelectedNode(Node) - Method in class de.neodot.babapplet.NodeSelectionModel
Sets the first selected node.
setGraphModel(GraphModel) - Method in class de.neodot.babapplet.Dijkstra
Sets a new GraphModel for this Dijkstra.
setGraphModel(GraphModel) - Method in class de.neodot.babapplet.GraphView
Set the GraphModel that should be displayed by this GraphView.
setGraphModel(GraphModel) - Method in class de.neodot.babapplet.NodeSelector
 
setGraphModel(GraphModel) - Method in class de.neodot.babapplet.PathFinderModel
Sets the GraphModel.
setHighlightedEdgeColor(Color) - Method in class de.neodot.babapplet.GraphView
Sets the color that's used for displaying highlighted edges.
setNodeColor(Color) - Method in class de.neodot.babapplet.GraphView
Sets the node color.
setNodeDiameter(int) - Method in class de.neodot.babapplet.GraphView
Sets the diameter used for displaying nodes.
setNodeSelectionModel(NodeSelectionModel) - Method in class de.neodot.babapplet.GraphView
Set the NodeSelectionModel that should be displayed and controlled by this GraphView.
setNodeSelectionModel(NodeSelectionModel) - Method in class de.neodot.babapplet.NodeSelector
Set the NodeSelectionModel.
setPathFinderModel(PathFinderModel) - Method in class de.neodot.babapplet.GraphView
Sets the PathFinderModel to be used.
setPathFinderModel(PathFinderModel) - Method in class de.neodot.babapplet.PathFinder
Sets the PathFinderModel to be used.
setPathFinderModel(PathFinderModel) - Method in class de.neodot.babapplet.PathView
Sets the used PathFinderModel.
setSecondSelectedNode(Node) - Method in class de.neodot.babapplet.NodeSelectionModel
Sets the second selected node.
setSelectedNodeColor(Color) - Method in class de.neodot.babapplet.GraphView
Sets the selected node color.
startNode - Variable in class de.neodot.babapplet.PathView
The currently selected start Node.

T

textPane - Variable in class de.neodot.babapplet.PathView
The used JTextArea.
toString() - Method in class de.neodot.babapplet.NamedObject

U

updateDataState() - Method in class de.neodot.babapplet.NodeSelector
Updates the data state.
updateSelectionState() - Method in class de.neodot.babapplet.NodeSelector
Updates the selection state.
updateState() - Method in class de.neodot.babapplet.NodeSelector
Updates the internal states.
updateText() - Method in class de.neodot.babapplet.PathView
Updates the displayed text of path.

V

visitedNodes - Variable in class de.neodot.babapplet.Dijkstra
The already visited nodes.

W

weight - Variable in class de.neodot.babapplet.Edge
The weight of this Edge.

X

x - Variable in class de.neodot.babapplet.Node
X-Coordinate of this Node.

Y

y - Variable in class de.neodot.babapplet.Node
Y-Coordinate of this Node.

A B C D E F G H I L M N P R S T U V W X Y