Force-Directed Edge Bundling
Main Page
Classes
Files
File List
All
Classes
Functions
Node.java
1
8
public
class
Node
{
9
10
private
double
x, y;
11
17
public
Node
(
double
x,
double
y){
18
this.x = x;
19
this.y = y;
20
}
21
26
public
double
getX
(){
27
return
x;
28
}
29
34
public
int
getXInt
(){
35
return
(
int
)Math.round(x);
36
}
37
42
public
double
getY
(){
43
return
y;
44
}
45
50
public
int
getYInt
(){
51
return
(
int
)Math.round(y);
52
}
53
59
public
void
setCoords
(
double
x,
double
y){
60
this.x = x;
61
this.y = y;
62
}
63
69
public
double
distance
(
Node
other){
70
Edge
edge =
new
Edge
(
this
, other);
71
return
edge.
magnitude
();
72
}
73
}
Users
neco
Desktop
FDEB
HomePage
src
Node.java
Generated on Sat Jun 8 2013 18:25:17 for Force-Directed Edge Bundling by
1.8.4