|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectuchicago.src.sim.network.DefaultEdge
uchicago.src.sim.network.DefaultDrawableEdge
public class DefaultDrawableEdge
A drawable edge between two nodes. A DefaultEdge implementing DrawableEdge.
Node| Field Summary |
|---|
| Fields inherited from class uchicago.src.sim.network.DefaultEdge |
|---|
from, label, strength, to, type |
| Constructor Summary | |
|---|---|
DefaultDrawableEdge()
Constructs a DefaultDrawableEdge without any connecting Nodes. |
|
DefaultDrawableEdge(Node from,
Node to)
Construct an edge from the specified to node to the specified node with a blank label. |
|
DefaultDrawableEdge(Node from,
Node to,
java.lang.String label)
Construct an edge from the specified to node to the specified node with the specified label, and a default strength of 1.0. |
|
DefaultDrawableEdge(Node from,
Node to,
java.lang.String label,
float strength)
Construct an edge from the specified to node to the specified node with the specified label, and the specified strength. |
|
| Method Summary | |
|---|---|
void |
draw(SimGraphics g,
int fromX,
int toX,
int fromY,
int toY)
Draws this DefaultDrawableEdge. |
void |
setColor(java.awt.Color val)
Sets the color of this DefaultDrawableEdge. |
void |
setDrawDirected(boolean val)
Sets whether this DefaultDrawableEdge is drawn as directed or not. |
| Methods inherited from class uchicago.src.sim.network.DefaultEdge |
|---|
getFrom, getLabel, getStrength, getTo, getType, setFrom, setLabel, setStrength, setTo, setType |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface uchicago.src.sim.network.Edge |
|---|
getFrom, getLabel, getStrength, getTo, getType, setFrom, setLabel, setStrength, setTo, setType |
| Constructor Detail |
|---|
public DefaultDrawableEdge()
public DefaultDrawableEdge(Node from,
Node to,
java.lang.String label)
from - the from Nodeto - the to Nodethe - label for this edge
public DefaultDrawableEdge(Node from,
Node to,
java.lang.String label,
float strength)
from - the from Nodeto - the to Nodelabel - the label for this edgestrength - the strength of this edge
public DefaultDrawableEdge(Node from,
Node to)
from - the from Nodeto - the to Node| Method Detail |
|---|
public void setColor(java.awt.Color val)
public void setDrawDirected(boolean val)
public void draw(SimGraphics g,
int fromX,
int toX,
int fromY,
int toY)
draw in interface DrawableEdge
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||