| Package | com.yworks.io.graphml.reader.deserializer |
| Class | public class AbstractEdgeStyleDeserializer |
| Inheritance | AbstractEdgeStyleDeserializer AbstractDeserializer |
| Subclasses | PolylineEdgeStyleDeserializer |
IDeserializer for IEdgeStyle
instances.
This class already provides stubs for the handling of source and target arrows.
| Property | Defined by | ||
|---|---|---|---|
| elementName : String [read-only]
The local tag name that this Deserializer can claim to handle
| AbstractEdgeStyleDeserializer | ||
| xmlNamespace : Namespace [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
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]The local tag name that this Deserializer can claim to handle
Implementation public function get elementName():String
| xmlNamespace | property |
xmlNamespace:Namespace [read-only]The XmlNamespace that this Deserializer can claim to handle.
This method needs to be overriden by subclass implementations.
Implementation public function get xmlNamespace():Namespace
| deserialize | () | method |
public override function deserialize(context:GraphMLParseContext, element:XML):Object
Deserialize the data content of element.
This method forwards the actual processing to deserializeStyle
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):IArrowDeserialize an arrow element.
Parameterscontext: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.
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.
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.
|