|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface DrawableEdge
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 |
|---|
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.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||