org.openflow.gui.drawables
Class SimpleNode

java.lang.Object
  extended by org.pzgui.AbstractDrawable
      extended by org.pzgui.layout.AbstractLayoutable
          extended by org.openflow.gui.drawables.Node
              extended by org.openflow.gui.drawables.SimpleNode
All Implemented Interfaces:
Drawable, Layoutable, Vertex<Link>

public class SimpleNode
extends Node

Describes a simple Node.

Author:
David Underhill

Field Summary
 
Fields inherited from class org.openflow.gui.drawables.Node
OUTLINE_RATIO, SHOW_NAMES
 
Constructor Summary
SimpleNode(NodeType type, long id, Icon icon)
           
SimpleNode(NodeType type, java.lang.String name, int x, int y, long id, Icon icon)
           
 
Method Summary
 java.lang.String getDebugName()
          returns a string version of the node's datapath ID
 java.lang.Iterable<Link> getEdges()
          returns an empty as the SimpleNode has no edges
 long getID()
          gets the id of this node
 NodeType getType()
          gets the type of this node
 java.lang.String toString()
          returns the name of the node
 
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 org.pzgui.AbstractDrawable
drawBeforeObject, isDrawn, isHovered, isSelected, setHovered, setSelected, unsetDrawn
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.pzgui.Drawable
drag, drawBeforeObject, isDrawn, isHovered, isSelected, setHovered, setSelected, unsetDrawn
 
Methods inherited from interface org.pzgui.layout.Layoutable
canPositionChange, getPos, getX, getY, hasPositionChanged, setCanPositionChange, setPos, setXPos, setYPos, unsetPositionChanged
 

Constructor Detail

SimpleNode

public SimpleNode(NodeType type,
                  long id,
                  Icon icon)

SimpleNode

public SimpleNode(NodeType type,
                  java.lang.String name,
                  int x,
                  int y,
                  long id,
                  Icon icon)
Method Detail

getEdges

public java.lang.Iterable<Link> getEdges()
returns an empty as the SimpleNode has no edges


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


getType

public NodeType getType()
gets the type of this node


toString

public java.lang.String toString()
Description copied from class: Node
returns the name of the node

Overrides:
toString in class Node