Packagecom.yworks.io.graphml.writer
Classpublic class EdgeStyleOutputHandler
InheritanceEdgeStyleOutputHandler Inheritance AbstractOutputHandler

An IOutputHandler implementation that writes styles for edge objects.

To serialize a custom style, instances can be registered with GraphMLIOHandler#registerSerializer, which will be used automatically by this handler.

See also

com.yworks.io.graphml.GraphMLIOHandler.registerSerializer


Public Properties
 PropertyDefined by
  instance : EdgeStyleOutputHandler
[static][read-only] Returns the shared instance of this handler.
EdgeStyleOutputHandler
Public Methods
 MethodDefined by
 Inherited
This implementation does nothing.
AbstractOutputHandler
  
This implementation returns false
EdgeStyleOutputHandler
 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.
EdgeStyleOutputHandler
  
This method has to be overriden by subclass implementations.
EdgeStyleOutputHandler
  
Write the element content of the key tag for this graphml attribute
EdgeStyleOutputHandler
Property detail
instanceproperty
instance:EdgeStyleOutputHandler  [read-only]

Returns the shared instance of this handler.

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

This implementation returns false

Parameters
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. This method has to be overriden by subclass implementations.

Parameters
context:GraphMLWriteContext — The current write context.
 
graph:IGraph — The current graph in the context.
 
item:Object — The current item (graph/node/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.