org.openflow.gui.drawables
Class SimpleNodeWithPorts
java.lang.Object
org.pzgui.AbstractDrawable
org.pzgui.layout.AbstractLayoutable
org.openflow.gui.drawables.Node
org.openflow.gui.drawables.NodeWithPorts
org.openflow.gui.drawables.SimpleNodeWithPorts
- All Implemented Interfaces:
- Drawable, Layoutable, Vertex<Link>
public class SimpleNodeWithPorts
- extends NodeWithPorts
Describes a simple NodeWithPorts.
- Author:
- David Underhill
|
Method Summary |
boolean |
equals(java.lang.Object o)
|
java.lang.String |
getDebugName()
returns a string version of the node's datapath ID |
long |
getID()
gets the id of this node |
int |
hashCode()
|
java.lang.String |
toString()
returns the name of the node |
| Methods inherited from class org.openflow.gui.drawables.NodeWithPorts |
drawBeforeObject, drawLinks, getDirectedLinkTo, getEdges, getLinkFrom, getLinks, getLinkTo, getLinkTo, getLinkTo, getNumLinks, getType, isPortUsed, unsetDrawn |
| Methods inherited from class org.openflow.gui.drawables.Node |
contains, drawFailed, drawName, drawObject, drawOutline, getHeight, getIcon, getName, getWidth, isFailed, isOff, isWithin, setFailed, setIcon, setName, setOff |
| Methods inherited from class org.pzgui.layout.AbstractLayoutable |
canPositionChange, drag, getPos, getX, getY, hasPositionChanged, setCanPositionChange, setPos, setXPos, setYPos, unsetPositionChanged |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
SimpleNodeWithPorts
public SimpleNodeWithPorts(NodeType type,
long id,
Icon icon)
SimpleNodeWithPorts
public SimpleNodeWithPorts(NodeType type,
java.lang.String name,
int x,
int y,
long id,
Icon icon)
getDebugName
public java.lang.String getDebugName()
- returns a string version of the node's datapath ID
- Specified by:
getDebugName in class Node
getID
public long getID()
- gets the id of this node
hashCode
public int hashCode()
- Overrides:
hashCode in class NodeWithPorts
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals in class NodeWithPorts
toString
public java.lang.String toString()
- Description copied from class:
Node
- returns the name of the node
- Overrides:
toString in class Node