Package | com.yworks.io.graphml.realizer |
Class | public class PolylineEdgeStyleRealizerSerializer |
Inheritance | PolylineEdgeStyleRealizerSerializer AbstractEdgeRealizerSerializer Object |
IRealizerSerializer
that can read y:PolyLineEdge elements written by yFiles Java and write
PolylineEdgeStyle
s to y:PolyLineEdge elements.
Property | Defined By | ||
---|---|---|---|
instance : PolylineEdgeStyleRealizerSerializer [static] [read-only]
The shared instance of this serializer. | PolylineEdgeStyleRealizerSerializer |
Method | Defined By | ||
---|---|---|---|
canRead(node:XML, context:GraphMLParseContext):Boolean
Whether this instance can deserialize the given xml element in the given context. | AbstractEdgeRealizerSerializer | ||
Whether this instance can serialize the given edge style in the given context. | AbstractEdgeRealizerSerializer | ||
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 | ||
getElementNames():Array [override]
Returns the names of all XML elements that can be parsed or written by this serializer. | PolylineEdgeStyleRealizerSerializer | ||
getNamespace():Namespace
Returns the namespace of the element this serilaizer writes. | AbstractEdgeRealizerSerializer | ||
getStyleClass():Class [override]
Returns the style class that can be serialized or deserialized by this instance. | PolylineEdgeStyleRealizerSerializer | ||
[override]
Parses a serialized yFiles Java edge realizer into the given style. | PolylineEdgeStyleRealizerSerializer | ||
[override]
Write the given edge style in a format that can be parsed into a edge realizer by yFiles Java. | PolylineEdgeStyleRealizerSerializer | ||
Write the attributes of the realizer xml element
| AbstractEdgeRealizerSerializer |
Method | Defined By | ||
---|---|---|---|
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 | ||
Parse the GraphML Path element which defines the control points of the current edge
| AbstractEdgeRealizerSerializer | ||
Called at the end of the parse method. | AbstractEdgeRealizerSerializer |
instance | property |
instance:PolylineEdgeStyleRealizerSerializer
[read-only] The shared instance of this serializer.
public static function get instance():PolylineEdgeStyleRealizerSerializer
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 |
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.
ReturnsArray — 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.
ReturnsClass — com.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.
|