actualNode
private Node actualNode
countSelectedVertexes
private int countSelectedVertexes
isDijkstraExec
private boolean isDijkstraExec
missingVertexes
private int missingVertexes
nodesError
private ArrayList nodesError
normalStroke
(package private) static final BasicStroke normalStroke
reduntantVertexes
private int reduntantVertexes
startSelection
private Node startSelection
wideStroke
(package private) static final BasicStroke wideStroke
clickedOnNode
private Node clickedOnNode(int x,
int y)
countErrors
public void countErrors()
To store the different Errors
drawCosts
private void drawCosts(Graphics g)
Method drawCosts.
drawEdge
public void drawEdge(Graphics g,
Vertex v,
FontMetrics fm)
drawNode
public void drawNode(Graphics g,
Node n,
FontMetrics fm)
drawTempLine
private void drawTempLine(Node node,
Graphics g)
execDijkstra
public void execDijkstra()
Method execDijkstra.
getCountSelectedVertexes
public int getCountSelectedVertexes()
getMissingVertexes
public int getMissingVertexes()
getNodesError
public ArrayList getNodesError()
getReduntantVertexes
public int getReduntantVertexes()
isDijkstraExec
public boolean isDijkstraExec()
Returns the isDijkstraExec.
isLock
public boolean isLock()
Returns the lock.
mouseClicked
public void mouseClicked(MouseEvent e)
mouseDragged
public void mouseDragged(MouseEvent e)
mouseEntered
public void mouseEntered(MouseEvent e)
mouseExited
public void mouseExited(MouseEvent e)
mouseMoved
public void mouseMoved(MouseEvent e)
mousePressed
public void mousePressed(MouseEvent e)
Method mousePressed.
mouseReleased
public void mouseReleased(MouseEvent e)
paint
public void paint(Graphics g)
setCountSelectedVertexes
public void setCountSelectedVertexes(int i)
setGraph
public void setGraph(Graph graph)
Method setGraph.
setIsDijkstraExec
public void setIsDijkstraExec(boolean isDijkstraExec)
Sets the isDijkstraExec.
isDijkstraExec
- The isDijkstraExec to set
setLock
public void setLock(boolean lock)
Sets the lock.
setNodesError
public void setNodesError(ArrayList list)
setSolutionValues
protected void setSolutionValues(ShortestPathTree spt)
Function use:
The use of this function is to add the computize solution
to the graph. So, we can compare user input, which the
real score. First, we compare the distance values and
than we compare the settings of the edges.