Force-Directed Edge Bundling
 All Classes Functions
Node Class Reference

This class represents a Node of the graph. More...

Public Member Functions

 Node (double x, double y)
 Creates a Node with the specified coordinates. More...
 
double getX ()
 Returns the x-coordinate of the Node. More...
 
int getXInt ()
 Returns the x-coordinate of the Node as an int. More...
 
double getY ()
 Returns the y-coordinate of the Node. More...
 
int getYInt ()
 Returns the y-coordinate of the Node as an int. More...
 
void setCoords (double x, double y)
 Sets the coordinates of the Node. More...
 
double distance (Node other)
 Returns the distance of the Node to the specified other Node. More...
 

Detailed Description

This class represents a Node of the graph.

Author
Kurt Leimer

Definition at line 8 of file Node.java.

Constructor & Destructor Documentation

Node.Node ( double  x,
double  y 
)

Creates a Node with the specified coordinates.

Parameters
xThe x-coordinate of the Node.
yThe y-coordinate of the Node.

Definition at line 17 of file Node.java.

Member Function Documentation

double Node.distance ( Node  other)

Returns the distance of the Node to the specified other Node.

Parameters
otherThe other Node whose distance is calculated.
Returns
the distance of the Node to the specified other Node.

Definition at line 69 of file Node.java.

double Node.getX ( )

Returns the x-coordinate of the Node.

Returns
the x-coordinate of the Node.

Definition at line 26 of file Node.java.

int Node.getXInt ( )

Returns the x-coordinate of the Node as an int.

Returns
the x-coordinate of the Node as an int.

Definition at line 34 of file Node.java.

double Node.getY ( )

Returns the y-coordinate of the Node.

Returns
the y-coordinate of the Node.

Definition at line 42 of file Node.java.

int Node.getYInt ( )

Returns the y-coordinate of the Node as an int.

Returns
the y-coordinate of the Node as an int.

Definition at line 50 of file Node.java.

void Node.setCoords ( double  x,
double  y 
)

Sets the coordinates of the Node.

Parameters
xThe new x-coordinate of the Node.
yThe new y-coordinate of the Node.

Definition at line 59 of file Node.java.


The documentation for this class was generated from the following file: