WikiVis Web Application
 All Classes Namespaces Files Functions Variables Pages
Public Member Functions | Package Functions | Package Attributes | List of all members
EdgePair Class Reference

Processing class - Holds two Edges which share the same nodes. More...

Inheritance diagram for EdgePair:
Sortable

Public Member Functions

 EdgePair (Edge e1, Edge e2)
 creates a new EdgePair instance
String toString ()

Package Functions

int compareTo (Sortable other)
double getTotalWeight ()
 returns the total weight of all edges
boolean isDrawable ()
 determines if the EdgePair is drawable or not
Node getNode (int node)
 returns the specified node
void draw (double minEdgeWeightThreshhold, double maxEdgeWeightThreshhold)
 draws the EdgePair
Node getFirstNode ()
Node getSecondNode ()

Package Attributes

final float MAX_LINE_WIDTH = 10
 the maximum line thickness
final color FROM_COLOR = color(30,30,30)
 the color at the end of the node with the maximum weight
final color TO_COLOR = color(220,220,220)
 the color at the end of the node with weight = 0
Edge e1
 first edge
Edge e2
 second edge

Detailed Description

Processing class - Holds two Edges which share the same nodes.

Author
Florian Zoubek zoube.nosp@m.k@bi.nosp@m.tanda.nosp@m.rt.a.nosp@m.t

Constructor & Destructor Documentation

EdgePair.EdgePair ( Edge  e1,
Edge  e2 
)

creates a new EdgePair instance

Parameters
e1the first edge
e2the second edge

Member Function Documentation

int EdgePair.compareTo ( Sortable  other)
package
void EdgePair.draw ( double  minEdgeWeightThreshhold,
double  maxEdgeWeightThreshhold 
)
package

draws the EdgePair

Parameters
minEdgeWeightThreshholdthe minimum edge weight threshold
maxEdgeWeightThreshholdthe maximum edge weight threshold
Node EdgePair.getFirstNode ( )
package
Returns
the first node
Node EdgePair.getNode ( int  node)
package

returns the specified node

Parameters
nodethe node index (0-1)
Returns
the node with the specified id
Node EdgePair.getSecondNode ( )
package
Returns
the second node
double EdgePair.getTotalWeight ( )
package

returns the total weight of all edges

Returns
the total weight of all edges
boolean EdgePair.isDrawable ( )
package

determines if the EdgePair is drawable or not

Returns
true if the EdgePair is drawable, false otherwise
String EdgePair.toString ( )
See Also
Object::toString()

Member Data Documentation

Edge EdgePair.e1
package

first edge

Edge EdgePair.e2
package

second edge

final color EdgePair.FROM_COLOR = color(30,30,30)
package

the color at the end of the node with the maximum weight

final float EdgePair.MAX_LINE_WIDTH = 10
package

the maximum line thickness

final color EdgePair.TO_COLOR = color(220,220,220)
package

the color at the end of the node with weight = 0


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