yext.graphml.graph2D
Class WriteEdgeRealizerHandler

java.lang.Object
  extended byyext.graphml.writer.AbstractOutputHandler
      extended byyext.graphml.graph2D.WriteEdgeRealizerHandler
All Implemented Interfaces:
OutputHandler

public class WriteEdgeRealizerHandler
extends AbstractOutputHandler

Output handler for yFiles specific graphical attributes of edges.


Constructor Summary
WriteEdgeRealizerHandler()
           
 
Method Summary
static void addEdgeRealizerSerializer(EdgeRealizerSerializer ers)
          Deprecated. Use RealizerSerializerManager instead for instance specific registration.
 void printDataOutput(GraphMLWriteContext context, Graph graph, Object edge, XmlWriter writer)
          Writes the data out.
 void printKeyAttributes(GraphMLWriteContext context, XmlWriter writer)
          Write the XML attributes of the key tag for this graphml attribute
 void printKeyOutput(GraphMLWriteContext context, XmlWriter ips)
          Write the element content of the key tag for this graphml attribute
static void writeRealizer(EdgeRealizer realizer, XmlWriter writer, GraphMLWriteContext context)
           
 
Methods inherited from class yext.graphml.writer.AbstractOutputHandler
getKeyAttributes, printDataAttributes, printDataOutput
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WriteEdgeRealizerHandler

public WriteEdgeRealizerHandler()
Method Detail

addEdgeRealizerSerializer

public static void addEdgeRealizerSerializer(EdgeRealizerSerializer ers)
Deprecated. Use RealizerSerializerManager instead for instance specific registration.

Register an EdgeRealizerSerializer for output. Instances registered with this method will be used as fallback if no better serializer can be found in the current write context.

Parameters:
ers -

printKeyAttributes

public void printKeyAttributes(GraphMLWriteContext context,
                               XmlWriter writer)
Description copied from interface: OutputHandler
Write the XML attributes of the key tag for this graphml attribute

Parameters:
context - the current write context
writer - XMLWriter instance that writes the result

printKeyOutput

public void printKeyOutput(GraphMLWriteContext context,
                           XmlWriter ips)
Description copied from interface: OutputHandler
Write the element content of the key tag for this graphml attribute

Parameters:
context - the current write context
ips - XMLWriter instance that writes the result

printDataOutput

public void printDataOutput(GraphMLWriteContext context,
                            Graph graph,
                            Object edge,
                            XmlWriter writer)
Description copied from class: AbstractOutputHandler
Writes the data out.

Specified by:
printDataOutput in class AbstractOutputHandler
Parameters:
context - the current writeContext.
graph - the current graph in the context.
edge - the current node/edge in the context.
writer - the output-stream.

writeRealizer

public static void writeRealizer(EdgeRealizer realizer,
                                 XmlWriter writer,
                                 GraphMLWriteContext context)


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