yext.graphml.writer
Class AbstractOutputHandler

java.lang.Object
  extended byyext.graphml.writer.AbstractOutputHandler
All Implemented Interfaces:
OutputHandler
Direct Known Subclasses:
PortConstraintOutputHandler, PostprocessorOutputHandler, WriteEdgeLayoutHandler, WriteEdgeRealizerHandler, WriteNodeLayoutHandler, WriteNodeRealizerHandler, WritePortLayoutHandler

public abstract class AbstractOutputHandler
extends Object
implements OutputHandler

Abstract implementation of the OutputHandler interface, which does basic convertion for yFiles.


Constructor Summary
AbstractOutputHandler()
           
 
Method Summary
 void getKeyAttributes(GraphMLWriteContext context, XmlWriter ips)
           
 void printDataAttributes(GraphMLWriteContext context, XmlWriter ips)
          Write the XML attributes of a data tag
abstract  void printDataOutput(GraphMLWriteContext context, Graph graph, Object nodeedge, XmlWriter ips)
          Writes the data out.
 void printDataOutput(GraphMLWriteContext context, XmlWriter ips)
          Implementation of the method defined in the OutputHandler interface which forwards the call to printDataOutput(org.graphdrawing.graphml.writer.GraphMLWriteContext,y.base.Graph,java.lang.Object,org.graphdrawing.graphml.writer.XmlWriter).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.graphdrawing.graphml.writer.OutputHandler
printKeyAttributes, printKeyOutput
 

Constructor Detail

AbstractOutputHandler

public AbstractOutputHandler()
Method Detail

getKeyAttributes

public void getKeyAttributes(GraphMLWriteContext context,
                             XmlWriter ips)

printDataAttributes

public void printDataAttributes(GraphMLWriteContext context,
                                XmlWriter ips)
Description copied from interface: OutputHandler
Write the XML attributes of a data tag

Specified by:
printDataAttributes in interface OutputHandler
Parameters:
context - the current write context
ips - XMLWriter instance that writes the result

printDataOutput

public void printDataOutput(GraphMLWriteContext context,
                            XmlWriter ips)
Implementation of the method defined in the OutputHandler interface which forwards the call to printDataOutput(org.graphdrawing.graphml.writer.GraphMLWriteContext,y.base.Graph,java.lang.Object,org.graphdrawing.graphml.writer.XmlWriter).

Specified by:
printDataOutput in interface OutputHandler
Parameters:
context - the current writeContext.
ips - the output-stream.

printDataOutput

public abstract void printDataOutput(GraphMLWriteContext context,
                                     Graph graph,
                                     Object nodeedge,
                                     XmlWriter ips)
Writes the data out.

Parameters:
context - the current writeContext.
graph - the current graph in the context.
nodeedge - the current node/edge in the context.
ips - the output-stream.


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