Force-Directed Edge Bundling
 All Classes Functions
Edge Class Reference

This class represents an Edge of the graph. More...

Public Member Functions

 Edge (Node startNode, Node endNode)
 Creates an Edge with a start and end Node. More...
 
Node getEndNode ()
 Returns the end Node of the Edge. More...
 
void setEndNode (Node endNode)
 Sets the end Node of the Edge. More...
 
Node getStartNode ()
 Returns the start Node of the Edge. More...
 
void setStartNode (Node startNode)
 Sets the start Node of the Edge. More...
 
ArrayList< NodegetSubNodes ()
 Returns the sub-Nodes of the Edge. More...
 
ArrayList< NodegetTempSubNodes ()
 Returns the temporary sub-Nodes of the Edge. More...
 
void setTempSubNodes (ArrayList< Node > subNodes)
 Sets the temporary sub-Nodes of the Edge. More...
 
boolean isIncident (Node node)
 Returns whether the specified Node is incident to the Edge. More...
 
double dx ()
 Returns the length of the Edge in x-direction. More...
 
double dy ()
 Returns the length of the Edge in y-direction. More...
 
double compatibility (Edge other)
 Calculates the compatibility of the Edge with the specified other Edge. More...
 
double magnitude ()
 Returns the Euclidian length of the Edge. More...
 
double visibility (Edge other)
 Calculates the visibility of the specified other Edge when extending a band of sight from the Edge. More...
 
int[] subNodesXInt ()
 Returns an array with the Integer x-coordinates of the sub-Nodes of the Edge. More...
 
int[] subNodesYInt ()
 Returns an array with the Integer y-coordinates of the sub-Nodes of the Edge. More...
 
Node midPoint ()
 Returns the mid-point of the Edge. More...
 
void deleteSubNodes ()
 Deletes the sub-Nodes of the Edge.
 
void finalizeSubNodes ()
 Sets the temporary sub-Nodes as the sub-Nodes of the Edge.
 
void increaseSubNodes ()
 Increases the number of sub-Nodes.
 

Private Member Functions

double angleComp (Edge other)
 Calculates the angular compatibility of the Edge with the specified other Edge. More...
 
double posComp (Edge other)
 Calculates the positional compatibility of the Edge with the specified other Edge. More...
 
double scaleComp (Edge other)
 Calculates the scale compatibility of the Edge with the specified other Edge. More...
 
double visComp (Edge other)
 Calculates the visibility compatibility of the Edge with the specified other Edge. More...
 
Node lineIntersection (Edge other)
 Calculates the intersection of the Edge with the specified other Edge when extending the length of both Edges to infinity in both directions. More...
 

Detailed Description

This class represents an Edge of the graph.

Author
Kurt Leimer

Definition at line 9 of file Edge.java.

Constructor & Destructor Documentation

Edge.Edge ( Node  startNode,
Node  endNode 
)

Creates an Edge with a start and end Node.

Parameters
startNodeThe start Node of the Edge.
endNodeThe end Node of the Edge.

Definition at line 21 of file Edge.java.

Member Function Documentation

double Edge.angleComp ( Edge  other)
private

Calculates the angular compatibility of the Edge with the specified other Edge.

Parameters
otherThe other Edge whose angular compatibility is calculated.
Returns
the angular compatibility of the Edge with the specified other Edge.

Definition at line 221 of file Edge.java.

double Edge.compatibility ( Edge  other)

Calculates the compatibility of the Edge with the specified other Edge.

Parameters
otherThe other Edge whose compatibility is calculated.
Returns
the compatibility of the Edge with the specified other Edge.

Definition at line 117 of file Edge.java.

double Edge.dx ( )

Returns the length of the Edge in x-direction.

Returns
the length of the Edge in x-direction.

Definition at line 100 of file Edge.java.

double Edge.dy ( )

Returns the length of the Edge in y-direction.

Returns
the length of the Edge in y-direction.

Definition at line 108 of file Edge.java.

Node Edge.getEndNode ( )

Returns the end Node of the Edge.

Returns
the end Node of the Edge.

Definition at line 35 of file Edge.java.

Node Edge.getStartNode ( )

Returns the start Node of the Edge.

Returns
the start Node of the Edge.

Definition at line 51 of file Edge.java.

ArrayList<Node> Edge.getSubNodes ( )

Returns the sub-Nodes of the Edge.

Returns
the sub-Nodes of the Edge.

Definition at line 67 of file Edge.java.

ArrayList<Node> Edge.getTempSubNodes ( )

Returns the temporary sub-Nodes of the Edge.

Returns
the temporary sub-Nodes of the Edge.

Definition at line 75 of file Edge.java.

boolean Edge.isIncident ( Node  node)

Returns whether the specified Node is incident to the Edge.

Parameters
nodeThe node which is checked.
Returns
true if the specified node is incident, false otherwise.

Definition at line 92 of file Edge.java.

Node Edge.lineIntersection ( Edge  other)
private

Calculates the intersection of the Edge with the specified other Edge when extending the length of both Edges to infinity in both directions.

Parameters
otherThe other Edge whose intersection is calculated.
Returns
the line-intersection of the Edge with the specified other Edge.

Definition at line 266 of file Edge.java.

double Edge.magnitude ( )

Returns the Euclidian length of the Edge.

Returns
the Euclidian length of the Edge.

Definition at line 125 of file Edge.java.

Node Edge.midPoint ( )

Returns the mid-point of the Edge.

Returns
the mid-point of the Edge.

Definition at line 174 of file Edge.java.

double Edge.posComp ( Edge  other)
private

Calculates the positional compatibility of the Edge with the specified other Edge.

Parameters
otherThe other Edge whose positional compatibility is calculated.
Returns
the positional compatibility of the Edge with the specified other Edge.

Definition at line 232 of file Edge.java.

double Edge.scaleComp ( Edge  other)
private

Calculates the scale compatibility of the Edge with the specified other Edge.

Parameters
otherThe other Edge whose scale compatibility is calculated.
Returns
the scale compatibility of the Edge with the specified other Edge.

Definition at line 244 of file Edge.java.

void Edge.setEndNode ( Node  endNode)

Sets the end Node of the Edge.

Parameters
endNodeThe new end Node of the Edge.

Definition at line 43 of file Edge.java.

void Edge.setStartNode ( Node  startNode)

Sets the start Node of the Edge.

Parameters
startNodeThe new start Node of the Edge.

Definition at line 59 of file Edge.java.

void Edge.setTempSubNodes ( ArrayList< Node subNodes)

Sets the temporary sub-Nodes of the Edge.

Parameters
subNodesThe new temporary sub-Nodes of the Edge.

Definition at line 83 of file Edge.java.

int [] Edge.subNodesXInt ( )

Returns an array with the Integer x-coordinates of the sub-Nodes of the Edge.

Returns
an array with the Integer x-coordinates of the sub-Nodes of the Edge.

Definition at line 150 of file Edge.java.

int [] Edge.subNodesYInt ( )

Returns an array with the Integer y-coordinates of the sub-Nodes of the Edge.

Returns
an array with the Integer y-coordinates of the sub-Nodes of the Edge.

Definition at line 162 of file Edge.java.

double Edge.visComp ( Edge  other)
private

Calculates the visibility compatibility of the Edge with the specified other Edge.

Parameters
otherThe other Edge whose visibility compatibility is calculated.
Returns
the visibility compatibility of the Edge with the specified other Edge.

Definition at line 256 of file Edge.java.

double Edge.visibility ( Edge  other)

Calculates the visibility of the specified other Edge when extending a band of sight from the Edge.

Parameters
otherThe other Edge whose visibility is calculated.
Returns
the visibility of the specified other Edge.

Definition at line 135 of file Edge.java.


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