Processing class - Holds two Edges which share the same nodes.
More...
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
creates a new EdgePair instance
- Parameters
-
e1 | the first edge |
e2 | the second edge |
Member Function Documentation
int EdgePair.compareTo |
( |
Sortable |
other | ) |
|
|
package |
void EdgePair.draw |
( |
double |
minEdgeWeightThreshhold, |
|
|
double |
maxEdgeWeightThreshhold |
|
) |
| |
|
package |
draws the EdgePair
- Parameters
-
minEdgeWeightThreshhold | the minimum edge weight threshold |
maxEdgeWeightThreshhold | the maximum edge weight threshold |
Node EdgePair.getFirstNode |
( |
| ) |
|
|
package |
Node EdgePair.getNode |
( |
int |
node | ) |
|
|
package |
returns the specified node
- Parameters
-
- Returns
- the node with the specified id
Node EdgePair.getSecondNode |
( |
| ) |
|
|
package |
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
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: