Packagecom.yworks.io.graphml.realizer
Classpublic class PolylineEdgeStyleRealizerSerializer
InheritancePolylineEdgeStyleRealizerSerializer Inheritance AbstractEdgeRealizerSerializer Inheritance Object

An IRealizerSerializer that can read y:PolyLineEdge elements written by yFiles Java and write PolylineEdgeStyles to y:PolyLineEdge elements.



Public Properties
 PropertyDefined By
  instance : PolylineEdgeStyleRealizerSerializer
[static] [read-only] The shared instance of this serializer.
PolylineEdgeStyleRealizerSerializer
Public Methods
 MethodDefined By
 Inherited
canRead(node:XML, context:GraphMLParseContext):Boolean
Whether this instance can deserialize the given xml element in the given context.
AbstractEdgeRealizerSerializer
 Inherited
canWrite(edge:IEdge, context:GraphMLWriteContext):Boolean
Whether this instance can serialize the given edge style in the given context.
AbstractEdgeRealizerSerializer
 Inherited
Create a style instance that can represent the edge graphics information of the given xml element.
AbstractEdgeRealizerSerializer
  
getElementName(item:Object):String
[override] Returns the name of the element that will be written by this serializer given the provided item.
PolylineEdgeStyleRealizerSerializer
  
[override] Returns the names of all XML elements that can be parsed or written by this serializer.
PolylineEdgeStyleRealizerSerializer
 Inherited
getNamespace():Namespace
Returns the namespace of the element this serilaizer writes.
AbstractEdgeRealizerSerializer
  
[override] Returns the style class that can be serialized or deserialized by this instance.
PolylineEdgeStyleRealizerSerializer
  
parse(style:IEdgeStyle, element:XML, context:GraphMLParseContext):void
[override] Parses a serialized yFiles Java edge realizer into the given style.
PolylineEdgeStyleRealizerSerializer
  
write(edge:IEdge, writer:IXmlWriter, context:GraphMLWriteContext):void
[override] Write the given edge style in a format that can be parsed into a edge realizer by yFiles Java.
PolylineEdgeStyleRealizerSerializer
 Inherited
Write the attributes of the realizer xml element
AbstractEdgeRealizerSerializer
Protected Methods
 MethodDefined By
 Inherited
parseArrows(arrowsElement:XML, style:IEdgeStyle):void
Parse the GraphML arrows element that defines the arrows for the current edge
AbstractEdgeRealizerSerializer
  
parseLineStyle(lineStyleElement:XML, edgeStyle:PolylineEdgeStyle):void
Parse the line style element.
PolylineEdgeStyleRealizerSerializer
 Inherited
parsePath(pathElement:XML, edge:IEdge, graph:IGraph):void
Parse the GraphML Path element which defines the control points of the current edge
AbstractEdgeRealizerSerializer
 Inherited
processAfterParsing(style:IEdgeStyle, element:XML, context:GraphMLParseContext):void
Called at the end of the parse method.
AbstractEdgeRealizerSerializer
Property Detail
instanceproperty
instance:PolylineEdgeStyleRealizerSerializer  [read-only]

The shared instance of this serializer.


Implementation
    public static function get instance():PolylineEdgeStyleRealizerSerializer
Method Detail
getElementName()method
override public function getElementName(item:Object):String

Returns the name of the element that will be written by this serializer given the provided item.

Parameters

item:Object

Returns
String — GraphMLConstants.Y_POLY_LINE_EDGE
getElementNames()method 
override public function getElementNames():Array

Returns the names of all XML elements that can be parsed or written by this serializer.

Returns
Array — An Array with GraphMLConstants.Y_POLY_LINE_EDGE.
getStyleClass()method 
override public function getStyleClass():Class

Returns the style class that can be serialized or deserialized by this instance.

Returns
Classcom.yworks.graph.drawing.PolylineEdgeStyle.
parse()method 
override public function parse(style:IEdgeStyle, element:XML, context:GraphMLParseContext):void

Parses a serialized yFiles Java edge realizer into the given style.

Parameters

style:IEdgeStyle — An edge style that is used to display the appearance of the yFiles Java edge realizer.
 
element:XML — the graphml edge element
 
context:GraphMLParseContext — the current parsing context

parseLineStyle()method 
protected function parseLineStyle(lineStyleElement:XML, edgeStyle:PolylineEdgeStyle):void

Parse the line style element.

Parameters

lineStyleElement:XML — the xml element representing the style
 
edgeStyle:PolylineEdgeStyle — The style instance to initalize with the deserialized data

write()method 
override public function write(edge:IEdge, writer:IXmlWriter, context:GraphMLWriteContext):void

Write the given edge style in a format that can be parsed into a edge realizer by yFiles Java.

Parameters

edge:IEdge — An edge style that can be serialized to a format that can be read by yFiles Java.
 
writer:IXmlWriter — The xml writer
 
context:GraphMLWriteContext — The current write context.