OrthogonalDrawing
Class Node
java.lang.Object
OrthogonalDrawing.Node
public class Node
- extends java.lang.Object
Constructor Summary |
Node(int x,
int y)
|
Node(int x,
int y,
Graph g)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
Node
public Node(int x,
int y)
Node
public Node(int x,
int y,
Graph g)
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)