| Package | com.yworks.io.graphml.writer |
| Class | public class LabelOutputHandler |
| Inheritance | LabelOutputHandler AbstractOutputHandler |
IOutputHandler implementation that writes labels for
graph objects.
The resulting output has the following format:
<y:Labels>
<y:Label>
<y:Style_Of_Label_1>
...
</y:Style_Of_Label_1>
<Additional parameters/>
....
<Additional parameters/>
Text of Label 1
</y:Label>
...
<y:Label>
<y:Style_Of_Label_N>
...
</y:Style_Of_Label_N>
<Additional parameters/>
....
<Additional parameters/>
Text of Label n
</y:Label>
</y:Labels>
| Property | Defined by | ||
|---|---|---|---|
| instance : LabelOutputHandler
[static][read-only]
Returns the shared instance of this handler.
| LabelOutputHandler | ||
| Method | Defined by | ||
|---|---|---|---|
![]() |
This implementation does nothing.
| AbstractOutputHandler | |
|
isDefaultData(context:GraphMLWriteContext):Boolean
This implementation returns
false
| LabelOutputHandler | ||
![]() |
This implementation does nothing.
| AbstractOutputHandler | |
![]() |
Forwards to
printItemDataOutput, passing the current item contained in the context. | AbstractOutputHandler | |
|
Writes the data out using the given writer.
| LabelOutputHandler | ||
|
This method has to be overriden by subclass implementations.
| LabelOutputHandler | ||
![]() |
Write the element content of the
key tag for this graphml attribute
| AbstractOutputHandler | |
| instance | property |
instance:LabelOutputHandler [read-only]Returns the shared instance of this handler.
Implementation public static function get instance():LabelOutputHandler
| isDefaultData | () | method |
public override function isDefaultData(context:GraphMLWriteContext):Boolean
This implementation returns false
context:GraphMLWriteContext |
Boolean |
| printItemDataOutput | () | method |
public override function printItemDataOutput(context:GraphMLWriteContext, graph:IGraph, item:Object, writer:IXmlWriter):voidWrites the data out using the given writer. This method has to be overriden by subclass implementations.
Parameterscontext: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
context:GraphMLWriteContext — The write context.
|
|
writer:IXmlWriter — the xml writer.
|