|
RePast v. 2.0 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Edges that wish to be drawn must implement this interface.
| Method Summary | |
void |
draw(SimGraphics g,
int fromX,
int toX,
int fromY,
int toY)
Called by a Network*Display instructing the edge to draw itself. |
| Methods inherited from interface uchicago.src.sim.network.Edge |
getFrom, getLabel, getStrength, getTo, getType, setFrom, setLabel, setStrength, setTo, setType |
| Method Detail |
public void draw(SimGraphics g,
int fromX,
int toX,
int fromY,
int toY)
public void draw(SimGraphics g, int fromX, int toX, int fromY, int toY) {
g.drawLink(Color.red, fromX, toX, fromY, toY);
}
The x and y coordinates are calculated by the Display from the position
of the nodes to which this is an edge.
|
RePast v. 2.0 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||