net.clackrouter.router.core
Class RouterSerializer

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

public class RouterSerializer
extends java.lang.Object

Serializes the current components within a router to a file, including their settings (if non-transient) and their location on their screen. Note: Routers can only be saved via the GUI.. at least for now.


Constructor Summary
RouterSerializer()
           
 
Method Summary
static org.w3c.dom.Element createRouterXMLElement(org.w3c.dom.Document doc, Router router, RouterGraph graph, boolean saveTransient)
          Creates the whole XML doc object in memory representing the current state Creates the root node and appends all the children to it.
static java.lang.String getStringForRectangle(java.awt.geom.Rectangle2D rect)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RouterSerializer

public RouterSerializer()
Method Detail

createRouterXMLElement

public static org.w3c.dom.Element createRouterXMLElement(org.w3c.dom.Document doc,
                                                         Router router,
                                                         RouterGraph graph,
                                                         boolean saveTransient)
Creates the whole XML doc object in memory representing the current state Creates the root node and appends all the children to it.


getStringForRectangle

public static java.lang.String getStringForRectangle(java.awt.geom.Rectangle2D rect)