Search this API

y.io.graphml.layout
Class LayoutSerializationToolkit

java.lang.Object
  extended by y.io.graphml.layout.LayoutSerializationToolkit

public class LayoutSerializationToolkit
extends java.lang.Object

Provides utility methods for reading and writing geometry data in GraphML.

 
Your browser does not support SVG content.

Method Summary
static void parseNodeLayout(org.w3c.dom.Node root, NodeLayout layout)
          Configure the specified node layout from the data in the given XML node.
static void parsePath(org.w3c.dom.Node root, EdgeLayout layout)
          Configure the specified edge layout from the data in the given XML node.
static void writeNodeLayout(XmlWriter writer, NodeLayout layout)
          Writes the geometry data of the specified node layout.
static void writePath(XmlWriter writer, EdgeLayout layout)
          Writes the path geometry of the specified edge layout.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

parseNodeLayout

public static void parseNodeLayout(org.w3c.dom.Node root,
                                   NodeLayout layout)
Configure the specified node layout from the data in the given XML node.

Parameters:
root - The layout data
layout - The node layout to configure.

parsePath

public static void parsePath(org.w3c.dom.Node root,
                             EdgeLayout layout)
Configure the specified edge layout from the data in the given XML node.

Parameters:
root - The layout data
layout - The edge layout to configure.

writeNodeLayout

public static void writeNodeLayout(XmlWriter writer,
                                   NodeLayout layout)
Writes the geometry data of the specified node layout.

Parameters:
layout - The node layout to be written.

writePath

public static void writePath(XmlWriter writer,
                             EdgeLayout layout)
Writes the path geometry of the specified edge layout.

Parameters:
layout - The edge layout to be written.

© Copyright 2000-2022,
yWorks GmbH.
All rights reserved.