net.clackrouter.topology.create
Class CreateTopologyGraph
java.lang.Object
JGraph
net.clackrouter.topology.core.TopoGraph
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.
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 |
IFACE_LIST_OFFSET
public static int IFACE_LIST_OFFSET
CreateTopologyGraph
public CreateTopologyGraph(GraphModel model)
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