com.yworks.yfiles.server.graphml.flexio.binary
Class ExternalizableGraph

java.lang.Object
  extended bycom.yworks.yfiles.server.graphml.flexio.binary.ExternalizableGraph
All Implemented Interfaces:
java.io.Externalizable, java.io.Serializable

public class ExternalizableGraph
extends java.lang.Object
implements java.io.Externalizable

The ExternalizableGraph can be used to read and write a LayoutGraph via the Externalizable interface. For this a GraphRoundtripSupport is used to which ObjectSerializer and ObjectDeserializer have been added.

See Also:
Serialized Form

Nested Class Summary
protected static class ExternalizableGraph.CustomGraphRoundtripSupport
           
 
Constructor Summary
ExternalizableGraph()
           
 
Method Summary
protected  GraphRoundtripSupport createGraphRoundtripSupport(java.util.List objectList)
           
 LayoutGraph getGraph()
           
 void readExternal(java.io.ObjectInput in)
           
 void setGraph(LayoutGraph graph)
           
 void writeExternal(java.io.ObjectOutput out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExternalizableGraph

public ExternalizableGraph()
Method Detail

getGraph

public LayoutGraph getGraph()

setGraph

public void setGraph(LayoutGraph graph)

writeExternal

public void writeExternal(java.io.ObjectOutput out)
                   throws java.io.IOException
Specified by:
writeExternal in interface java.io.Externalizable
Throws:
java.io.IOException

readExternal

public void readExternal(java.io.ObjectInput in)
                  throws java.io.IOException,
                         java.lang.ClassNotFoundException
Specified by:
readExternal in interface java.io.Externalizable
Throws:
java.io.IOException
java.lang.ClassNotFoundException

createGraphRoundtripSupport

protected GraphRoundtripSupport createGraphRoundtripSupport(java.util.List objectList)


Copyright © 2000-2013 yWorks GmbH. All rights reserved