| Package | com.yworks.io.graphml.realizer |
| Class | public class ReadEdgeRealizerHandler |
| Inheritance | ReadEdgeRealizerHandler AbstractInputHandler |
IRealizerSerializer instances.
| Method | Defined by | ||
|---|---|---|---|
|
acceptKey(keyElement:XML, scopeType:String):Boolean
This method defines whether a specific key/data pair is
handled by the input handler.
| ReadEdgeRealizerHandler | ||
![]() |
applyDefault(context:GraphMLParseContext, defaultElement:XML, value:Object):void
This method is invoked when no data tag is defined, and the default value
should be applied.
| AbstractInputHandler | |
![]() |
parseData(context:GraphMLParseContext, defaultValue:Boolean, dataElement:XML):void
Forwards to
parseItemData
This method is invoked each time a data element with matching key
is processed. | AbstractInputHandler | |
![]() |
parseDefaultData(context:GraphMLParseContext, keyElement:XML):Object
This method is invoked when the default value of the key element
for a data element is parsed.
| AbstractInputHandler | |
| Method | Defined by | ||
|---|---|---|---|
|
parseItemData(context:GraphMLParseContext, graph:IGraph, item:Object, defaultMode:Boolean, dataElement:XML):void
Parse the element for the given item.
| ReadEdgeRealizerHandler | ||
|
parseRealizer(graph:IGraph, edge:IEdge, edgegraphicsElement:XML, context:GraphMLParseContext):IEdgeStyle
Parse the given edgegraphics GraphML element using an
IRealizerSerializer instance fetched from the RealizerSerializerManager. | ReadEdgeRealizerHandler | ||
| acceptKey | () | method |
public override function acceptKey(keyElement:XML, scopeType:String):Boolean
This method defines whether a specific key/data pair is
handled by the input handler.
When it returns true, each occurence of
data elements which match the id of the key element are
forwarded to the input handler.
keyElement:XML — the key element
|
|
scopeType:String — the scope type for which the key is defined.
One of
|
Boolean — true, if this hanlder can handle the data elements asked for.
|
| parseItemData | () | method |
protected override function parseItemData(context:GraphMLParseContext, graph:IGraph, item:Object, defaultMode:Boolean, dataElement:XML):voidParse the element for the given item.
Parameterscontext:GraphMLParseContext — The parse context
|
|
graph:IGraph — The graph to work on
|
|
item:Object — The item.
|
|
defaultMode:Boolean — true when the default value,
which is included in the key element, is processed,
false otherwise.
|
|
dataElement:XML — The data element of the graphml file.
|
| parseRealizer | () | method |
protected function parseRealizer(graph:IGraph, edge:IEdge, edgegraphicsElement:XML, context:GraphMLParseContext):IEdgeStyle
Parse the given edgegraphics GraphML element using an IRealizerSerializer instance fetched from the RealizerSerializerManager.
graph:IGraph |
|
edge:IEdge |
|
edgegraphicsElement:XML |
|
context:GraphMLParseContext |
IEdgeStyle |