|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectuchicago.src.sim.gui.DrawableItem
uchicago.src.sim.gui.RectItem
uchicago.src.sim.gui.RectNode
public class RectNode
An rectangular shaped node. This can be used as a nodes or nodes in Network2DDisplays.
RectItem,
DrawableItem| Field Summary | |
|---|---|
protected double |
x
Deprecated. |
protected double |
y
Deprecated. |
| Fields inherited from class uchicago.src.sim.gui.RectItem |
|---|
recalcBorder |
| Fields inherited from class uchicago.src.sim.gui.DrawableItem |
|---|
allowResizing, borderColor, borderWidth, color, font, height, hollow, label, labelColor, recalc, stroke, width |
| Constructor Summary | |
|---|---|
RectNode(double x,
double y)
Deprecated. Constructs a RectNode with the specified coordinates. |
|
| Method Summary | |
|---|---|
void |
addInEdge(Edge edge)
Deprecated. Adds an in Edge to this RectNode |
void |
addOutEdge(Edge edge)
Deprecated. Adds an out Edge to this RectNode |
void |
clearInEdges()
Deprecated. Clears (removes) all the in edges. |
void |
clearOutEdges()
Deprecated. Clears (removes) all the out edges. |
java.lang.Object |
getId()
Deprecated. Gets the id associated with this node. |
java.util.ArrayList |
getInEdges()
Deprecated. Gets the ArrayList of edges into this RectNode. |
java.lang.String |
getNodeLabel()
Deprecated. Gets the label of this node. |
java.util.ArrayList |
getOutEdges()
Deprecated. Gets the ArrayList of Edge out of this RectNode. |
double |
getX()
Deprecated. Gets the x coordinate. |
double |
getY()
Deprecated. Gets the y coordinate. |
boolean |
hasEdgeFrom(Node node)
Deprecated. Returns true if this DefaultNode has an Edge from the specified Node, otherwise false. |
boolean |
hasEdgeTo(Node node)
Deprecated. Returns true if this DefaultNode has an Edge to the specified Node, otherwise false. |
void |
removeInEdge(Edge edge)
Deprecated. Removes the specified edge from the list of "in" edges. |
void |
removeOutEdge(Edge edge)
Deprecated. Removes the specified edge from the list of "out" edges. |
void |
setLabel(java.lang.String label)
Deprecated. Sets the label. |
void |
setNodeLabel(java.lang.String label)
Deprecated. |
void |
setX(double x)
Deprecated. Sets the x coordinate. |
void |
setX(int x)
Deprecated. Implements the moveable interface, setting the x coordinate to some integer value. |
void |
setY(double y)
Deprecated. Sets the y coordinate. |
void |
setY(int y)
Deprecated. Implements the moveable interface, setting the y coordinate to some integer value. |
| Methods inherited from class uchicago.src.sim.gui.RectItem |
|---|
calcSize, contains, draw |
| Methods inherited from class uchicago.src.sim.gui.DrawableItem |
|---|
allowResizing, getBorderColor, getBorderWidth, getColor, getFont, getHeight, getLabelColor, getWidth, isHollow, setBorderColor, setBorderWidth, setColor, setFont, setHeight, setHollow, setLabelColor, setSize, setSize, setWidth |
| 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.gui.DrawableNonGridNode |
|---|
calcSize |
| Methods inherited from interface uchicago.src.sim.gui.NonGridDrawable |
|---|
contains, draw, getHeight, getWidth |
| Field Detail |
|---|
protected double x
protected double y
| Constructor Detail |
|---|
public RectNode(double x,
double y)
the - x coordinatethe - y coordinate| Method Detail |
|---|
public double getX()
getX in interface NonGridDrawablepublic void setX(double x)
setX in interface DrawableNonGridNodex - the new x coordinatepublic double getY()
getY in interface NonGridDrawablepublic void setY(double y)
setY in interface DrawableNonGridNodey - the new y coordinatepublic void setLabel(java.lang.String label)
DrawableItem
setLabel in class DrawableItemlabel - the new labelpublic java.lang.Object getId()
Node
getId in interface Nodepublic java.lang.String getNodeLabel()
Node
getNodeLabel in interface Nodepublic void setNodeLabel(java.lang.String label)
setNodeLabel in interface Nodepublic java.util.ArrayList getInEdges()
getInEdges in interface Nodepublic java.util.ArrayList getOutEdges()
getOutEdges in interface DrawableNonGridNodegetOutEdges in interface Nodepublic void addInEdge(Edge edge)
addInEdge in interface Nodeedge - the "in" edge to addpublic void addOutEdge(Edge edge)
addOutEdge in interface Nodeedge - the "out" edge to addpublic void removeInEdge(Edge edge)
removeInEdge in interface Nodeedge - the edge to removepublic void removeOutEdge(Edge edge)
removeOutEdge in interface Nodeedge - the edge to removepublic void clearInEdges()
clearInEdges in interface Nodepublic void clearOutEdges()
clearOutEdges in interface Nodepublic void setX(int x)
setX in interface Moveablepublic void setY(int y)
setY in interface Moveablepublic boolean hasEdgeTo(Node node)
Node
hasEdgeTo in interface Nodepublic boolean hasEdgeFrom(Node node)
Node
hasEdgeFrom in interface Node
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||