Packagecom.yworks.io.graphml.writer
Classpublic class NodeInsetsOutputHandler
InheritanceNodeInsetsOutputHandler Inheritance AbstractOutputHandler

An IOutputHandler implementation that writes node insets.

This implementation asks the lookup of a node for a INodeInsetsProvider and writes an <Insets> element if there is one.



Public Methods
 MethodDefined by
  
Creates a new instance.
NodeInsetsOutputHandler
 Inherited
This implementation does nothing.
AbstractOutputHandler
  
NodeInsetsOutputHandler
 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.
NodeInsetsOutputHandler
  
This method has to be overriden by subclass implementations.
NodeInsetsOutputHandler
  
NodeInsetsOutputHandler
Constructor detail
NodeInsetsOutputHandler()constructor
public function NodeInsetsOutputHandler()

Creates a new instance.

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. 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):voidParameters
context:GraphMLWriteContext
 
writer:IXmlWriter