OrthogonalDrawing
Class Node

java.lang.Object
  extended by OrthogonalDrawing.Node

public class Node
extends java.lang.Object


Field Summary
private  int index
           
private  java.util.ArrayList<Node> neighbour
           
private  java.util.ArrayList<Node> temp
           
private  int xPoint
           
private  int yPoint
           
 
Constructor Summary
Node(int x, int y)
           
Node(int x, int y, Graph g)
           
 
Method Summary
 void AddNeighbour(Node node)
           
private  float calculateSlope(Node a)
           
 int GetDegree()
           
 int GetIndex()
           
 java.util.ArrayList<Node> GetNeighbour()
           
 Node GetNeighbour(int index)
           
 int GetXPoint()
           
 int GetYPoint()
           
 void RemoveNeighbour()
           
 void RemoveNeighbour(int index)
           
 void RemoveNeighbour(Node node)
           
 void SetIndex(int i)
           
 void SetXPoint(int x)
           
 void SetYPoint(int y)
           
 void sortNeighbors()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

xPoint

private int xPoint

yPoint

private int yPoint

index

private int index

neighbour

private java.util.ArrayList<Node> neighbour

temp

private java.util.ArrayList<Node> temp
Constructor Detail

Node

public Node(int x,
            int y)

Node

public Node(int x,
            int y,
            Graph g)
Method Detail

GetXPoint

public int GetXPoint()

GetYPoint

public int GetYPoint()

SetXPoint

public void SetXPoint(int x)

SetYPoint

public void SetYPoint(int y)

SetIndex

public void SetIndex(int i)

GetDegree

public int GetDegree()

GetIndex

public int GetIndex()

AddNeighbour

public void AddNeighbour(Node node)

RemoveNeighbour

public void RemoveNeighbour(Node node)

RemoveNeighbour

public void RemoveNeighbour(int index)

RemoveNeighbour

public void RemoveNeighbour()

GetNeighbour

public Node GetNeighbour(int index)

GetNeighbour

public java.util.ArrayList<Node> GetNeighbour()

sortNeighbors

public void sortNeighbors()

calculateSlope

private float calculateSlope(Node a)