net.clackrouter.topology.create
Class CreateTopologyGraph

java.lang.Object
  extended by JGraph
      extended by net.clackrouter.topology.core.TopoGraph
          extended by net.clackrouter.topology.create.CreateTopologyGraph

public class CreateTopologyGraph
extends TopoGraph

Main graph class to resresent a topology, which has hosts as different nodes and ethernet links as edges.


Field Summary
static int IFACE_LIST_OFFSET
           
 
Constructor Summary
CreateTopologyGraph(GraphModel model)
           
 
Method Summary
protected  VertexView createVertexView(JGraph graph, CellMapper cm, java.lang.Object v)
          Creates a view to represent either a physical or virtual host in the topology ( if mIsReservable is true, the host is virtual).
static CreateTopologyGraph initialGraph()
           
 void insertHostIntoGraph(TopologyModel.Host host, java.util.Hashtable ifaceMap, java.awt.geom.Rectangle2D bounds)
           
 
Methods inherited from class net.clackrouter.topology.core.TopoGraph
connectInterfaces, createEdgeView, createPortView, getIntersectionPoint, getNextSelectableViewAt, getToolTipForCell, getToolTipText, getVertices, graphChanged, isGroup, isVertex, placePorts
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

IFACE_LIST_OFFSET

public static int IFACE_LIST_OFFSET
Constructor Detail

CreateTopologyGraph

public CreateTopologyGraph(GraphModel model)
Method Detail

initialGraph

public static CreateTopologyGraph initialGraph()

createVertexView

protected VertexView createVertexView(JGraph graph,
                                      CellMapper cm,
                                      java.lang.Object v)
Description copied from class: TopoGraph
Creates a view to represent either a physical or virtual host in the topology ( if mIsReservable is true, the host is virtual).

Overrides:
createVertexView in class TopoGraph
Returns:
the default GraphView

insertHostIntoGraph

public void insertHostIntoGraph(TopologyModel.Host host,
                                java.util.Hashtable ifaceMap,
                                java.awt.geom.Rectangle2D bounds)
Overrides:
insertHostIntoGraph in class TopoGraph