net.clackrouter.router.core
Class RouterSerializer
java.lang.Object
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.
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 |
RouterSerializer
public RouterSerializer()
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)