net.clackrouter.router.core
Class RouterConfig

java.lang.Object
  extended by net.clackrouter.router.core.RouterConfig

public class RouterConfig
extends java.lang.Object

Configures a route based on the context of a saved xml file that details what components are included in the router, how they are configured, and where they are located on the screen.


Nested Class Summary
static class RouterConfig.ConnectionInfo
          Simple struct to hold information about an attempt to connect to the VNS server.
 
Field Summary
protected static java.util.Hashtable clackComponentMap
           
protected static java.util.Hashtable componentCellMap
           
 
Constructor Summary
RouterConfig()
           
 
Method Summary
static void addAllInterfaces(Router router)
           
static void configRouterFromElement(Router router, org.w3c.dom.Element router_node)
           
static void default_configure(Router router)
           
static java.awt.geom.Rectangle2D getRectangleFromString(java.lang.String s)
           
static void parseRouterConfigXML(Router router, java.io.InputStream is)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

componentCellMap

protected static java.util.Hashtable componentCellMap

clackComponentMap

protected static java.util.Hashtable clackComponentMap
Constructor Detail

RouterConfig

public RouterConfig()
Method Detail

parseRouterConfigXML

public static void parseRouterConfigXML(Router router,
                                        java.io.InputStream is)
                                 throws java.lang.Exception
Throws:
java.lang.Exception

configRouterFromElement

public static void configRouterFromElement(Router router,
                                           org.w3c.dom.Element router_node)
                                    throws java.lang.Exception
Throws:
java.lang.Exception

default_configure

public static void default_configure(Router router)

addAllInterfaces

public static void addAllInterfaces(Router router)

getRectangleFromString

public static java.awt.geom.Rectangle2D getRectangleFromString(java.lang.String s)