Package | com.yworks.io.graphml.writer |
Class | public class NodeStyleOutputHandler |
Inheritance | NodeStyleOutputHandler AbstractOutputHandler Object |
IOutputHandler
implementation that writes styles for
node objects.
To serialize a custom style, instances
can be registered with
GraphMLIOHandler.registerSerializer
, which will be used automatically
by this handler.
See also
Property | Defined By | ||
---|---|---|---|
instance : NodeStyleOutputHandler [static] [read-only]
The shared instance of this handler. | NodeStyleOutputHandler |
Method | Defined By | ||
---|---|---|---|
This implementation does nothing. | AbstractOutputHandler | ||
isDefaultData(context:GraphMLWriteContext):Boolean
This implementation returns false
| AbstractOutputHandler | ||
This implementation does nothing. | AbstractOutputHandler | ||
Forwards to printItemDataOutput, passing the current item contained in the context. | AbstractOutputHandler | ||
[override]
Writes the data out using the given writer. | NodeStyleOutputHandler | ||
[override]
This method has to be overridden by subclass implementations. | NodeStyleOutputHandler | ||
[override]
Write the element content of the key tag for this graphml attribute
| NodeStyleOutputHandler |
instance | property |
instance:NodeStyleOutputHandler
[read-only] The shared instance of this handler.
public static function get instance():NodeStyleOutputHandler
printItemDataOutput | () | method |
override public function printItemDataOutput(context:GraphMLWriteContext, graph:IGraph, item:Object, writer:IXmlWriter):void
Writes the data out using the given writer. This method has to be overridden 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 |
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.
|