|
||||||||||
| 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.OvalItem
uchicago.src.sim.gui.OvalNode
public class OvalNode
An oval shaped node. This can be used as a nodes or nodes in Network2DDisplays. An OvalNode is intended to be used a drawable wrapper over a Node object. OvalNode by default wraps a DefaultNode, but can wrap any object implementing the Node interface. Use setNode() to set the Node to be wrapped.
OvalItem,
DrawableItem| Field Summary | |
|---|---|
protected Node |
node
Deprecated. |
protected double |
x
Deprecated. |
protected double |
y
Deprecated. |
| Fields inherited from class uchicago.src.sim.gui.OvalItem |
|---|
recalcBorder |
| Fields inherited from class uchicago.src.sim.gui.DrawableItem |
|---|
allowResizing, borderColor, borderWidth, color, font, height, hollow, label, labelColor, recalc, stroke, width |
| Constructor Summary | |
|---|---|
OvalNode(double x,
double y)
Deprecated. Constructs an OvalNode with the specified x and y coordinates. |
|
| Method Summary | |
|---|---|
void |
addInEdge(Edge edge)
Deprecated. Adds an in Edge to this OvalNode |
void |
addOutEdge(Edge edge)
Deprecated. Adds an out Edge to this OvalNode |
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 node id. |
java.util.ArrayList |
getInEdges()
Deprecated. Gets the ArrayList of edges into this OvalNode. |
java.lang.String |
getNodeLabel()
Deprecated. Gets the node's label |
java.util.ArrayList |
getOutEdges()
Deprecated. Gets the ArrayList of Edge out of this OvalNode. |
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.OvalItem |
|---|
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 Node node
protected double x
protected double y
| Constructor Detail |
|---|
public OvalNode(double x,
double y)
x - the x coordinatey - the y coordinate| Method Detail |
|---|
public double getX()
getX in interface NonGridDrawablepublic void setX(double x)
setX in interface DrawableNonGridNodex - the new x coordindatepublic 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.String getNodeLabel()
getNodeLabel in interface Nodepublic void setNodeLabel(java.lang.String label)
setNodeLabel in interface Nodepublic java.lang.Object getId()
getId 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 | |||||||||