Package | com.yworks.io.graphml.reader.deserializer |
Class | public class AbstractEdgeStyleDeserializer |
Inheritance | AbstractEdgeStyleDeserializer AbstractDeserializer Object |
Subclasses | PolylineEdgeStyleDeserializer |
IDeserializer
for IEdgeStyle
instances.
This class already provides stubs for the handling of source and target arrows.
Property | Defined By | ||
---|---|---|---|
elementName : String [override] [read-only]
The local tag name that this Deserializer can claim to handle
| AbstractEdgeStyleDeserializer | ||
xmlNamespace : Namespace [override] [read-only]
The XmlNamespace that this Deserializer can claim to handle. | AbstractEdgeStyleDeserializer |
Method | Defined By | ||
---|---|---|---|
canHandle(context:GraphMLParseContext, element:XML):Boolean
Returns whether a deserializer can handle a specific xml element. | AbstractDeserializer | ||
deserialize(context:GraphMLParseContext, element:XML):Object [override]
Deserialize the data content of element. | AbstractEdgeStyleDeserializer |
Method | Defined By | ||
---|---|---|---|
Deserialize an arrow element. | AbstractEdgeStyleDeserializer | ||
Deserialize the style specific data content of element. | AbstractEdgeStyleDeserializer | ||
Set the arrow arrow
to style. | AbstractEdgeStyleDeserializer |
elementName | property |
elementName:String
[read-only] [override] The local tag name that this Deserializer can claim to handle
public function get elementName():String
xmlNamespace | property |
xmlNamespace:Namespace
[read-only] [override] The XmlNamespace that this Deserializer can claim to handle.
This method needs to be overridden by subclass implementations.
public function get xmlNamespace():Namespace
deserialize | () | method |
override public function deserialize(context:GraphMLParseContext, element:XML):Object
Deserialize the data content of element
.
This method forwards the actual processing to deserializeStyle
Parameters
context:GraphMLParseContext — The current parse context
| |
element:XML — The current XML object that represents the edge style
|
Object — A new instance of IEdgeStyle
|
deserializeArrow | () | method |
protected function deserializeArrow(context:GraphMLParseContext, style:IEdgeStyle, element:XML):IArrow
Deserialize an arrow element.
Parameters
context:GraphMLParseContext — The current parse context.
| |
style:IEdgeStyle — The edge style.
| |
element:XML — The arrow element.
|
IArrow — A new arrow instance or null , if no IDeserializer was found for the arrow element.
|
deserializeStyle | () | method |
protected function deserializeStyle(context:GraphMLParseContext, element:XML):IEdgeStyle
Deserialize the style specific data content of element
.
Parameters
context:GraphMLParseContext — The current parse context
| |
element:XML — The current XML object that represents the edge style
|
IEdgeStyle — A new instance of IEdgeStyle
|
setArrow | () | method |
protected function setArrow(style:IEdgeStyle, arrow:IArrow, atSoure:Boolean):void
Set the arrow arrow
to style
.
Parameters
style:IEdgeStyle — The edge style where the arrow should be set
| |
arrow:IArrow — The arrow itself
| |
atSoure:Boolean — Whether to set the source arrow (true ) or target arrow.
|