Packagecom.yworks.io.graphml.writer
Classpublic class WriteNodeLayoutHandler
InheritanceWriteNodeLayoutHandler Inheritance AbstractOutputHandler Inheritance Object

Output handler that writes node geometry data.

A shared instance can be received using instance.



Public Properties
 PropertyDefined By
  defaultLayout : IRectangle
[read-only]
WriteNodeLayoutHandler
  instance : WriteNodeLayoutHandler
[static] [read-only] The shared instance of this handler.
WriteNodeLayoutHandler
Public Methods
 MethodDefined By
 Inherited
This implementation does nothing.
AbstractOutputHandler
  
[override]
WriteNodeLayoutHandler
 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
[override] Writes the data out using the given writer.
WriteNodeLayoutHandler
  
[override] This method has to be overridden by subclass implementations.
WriteNodeLayoutHandler
  
[override] Write the element content of the key tag for this graphml attribute
WriteNodeLayoutHandler
Protected Methods
 MethodDefined By
  
WriteNodeLayoutHandler
Property Detail
defaultLayoutproperty
defaultLayout:IRectangle  [read-only]


Implementation
    public function get defaultLayout():IRectangle
instanceproperty 
instance:WriteNodeLayoutHandler  [read-only]

The shared instance of this handler.


Implementation
    public static function get instance():WriteNodeLayoutHandler
Method Detail
createDefaultLayout()method
protected function createDefaultLayout():IRectangle

Returns
IRectangle
isDefaultData()method 
override public function isDefaultData(context:GraphMLWriteContext):Boolean

Parameters

context:GraphMLWriteContext

Returns
Boolean
printItemDataOutput()method 
override public 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 node in the context.
 
writer:IXmlWriter — The writer to write to.

printKeyAttributes()method 
override public function printKeyAttributes(context:GraphMLWriteContext, writer:IXmlWriter):void

This method has to be overridden 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 
override public 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.