Packagecom.yworks.io.graphml.writer
Classpublic class WriteEdgeLayoutHandler
InheritanceWriteEdgeLayoutHandler Inheritance AbstractOutputHandler

Output handler that writes edge geometry data.

A shared instance can be retrieved using instance.



Public Properties
 PropertyDefined by
  instance : WriteEdgeLayoutHandler
[static][read-only] The shared instance of this output handler.
WriteEdgeLayoutHandler
Public Methods
 MethodDefined by
 Inherited
This implementation does nothing.
AbstractOutputHandler
  
WriteEdgeLayoutHandler
 Inherited
This implementation does nothing.
AbstractOutputHandler
 Inherited
Forwards to printItemDataOutput, passing the current item contained in the context.
AbstractOutputHandler
  
printItemDataOutput(context:GraphMLWriteContext, graph:IGraph, item:Object, writer:IXmlWriter):void
Writes the data out using the given writer.
WriteEdgeLayoutHandler
  
This method has to be overriden by subclass implementations.
WriteEdgeLayoutHandler
  
Write the element content of the key tag for this graphml attribute
WriteEdgeLayoutHandler
Protected Methods
 MethodDefined by
  
writePath(coreWriter:IXmlWriter, edge:IEdge):void
Actually writes the edge path.
WriteEdgeLayoutHandler
Property detail
instanceproperty
instance:WriteEdgeLayoutHandler  [read-only]

The shared instance of this output handler.

Implementation
    public static function get instance():WriteEdgeLayoutHandler
Method detail
isDefaultData()method
public override function isDefaultData(context:GraphMLWriteContext):BooleanParameters
context:GraphMLWriteContext

Returns
Boolean
printItemDataOutput()method 
public override function printItemDataOutput(context:GraphMLWriteContext, graph:IGraph, item:Object, writer:IXmlWriter):void

Writes the data out using the given writer.

Parameters
context:GraphMLWriteContext — The current write context.
 
graph:IGraph — The current graph in the context.
 
item:Object — The current edge in the context.
 
writer:IXmlWriter — The writer to write to.
printKeyAttributes()method 
public override function printKeyAttributes(context:GraphMLWriteContext, writer:IXmlWriter):void

This method has to be overriden by subclass implementations. Write the XML attributes of the key tag for this graphml attribute

Parameters
context:GraphMLWriteContext — The write context.
 
writer:IXmlWriter — the xml writer.
printKeyOutput()method 
public override function printKeyOutput(context:GraphMLWriteContext, writer:IXmlWriter):void

Write the element content of the key tag for this graphml attribute

Parameters
context:GraphMLWriteContext — The write context.
 
writer:IXmlWriter — the xml writer.
writePath()method 
protected function writePath(coreWriter:IXmlWriter, edge:IEdge):void

Actually writes the edge path.

Parameters
coreWriter:IXmlWriter — The xml writer.
 
edge:IEdge — The edge object.