| Package | com.yworks.io.graphml.realizer |
| Class | public class AbstractJavaNodeRealizerSerializer |
| Inheritance | AbstractJavaNodeRealizerSerializer Object |
| Implements | INodeRealizerSerializer |
| Subclasses | JavaGenericNodeRealizerSerializer, JavaImageNodeRealizerSerializer, JavaShapeNodeRealizerSerializer, ProxyNodeRealizerSerializer |
| Method | Defined By | ||
|---|---|---|---|
canRead(node:XML, context:GraphMLParseContext):Boolean
Whether this instance can deserialize the given xml element in the given context. | AbstractJavaNodeRealizerSerializer | ||
Whether this instance can serialize the style of the given node in the given context. | AbstractJavaNodeRealizerSerializer | ||
Create a style instance that can represent the node graphics information of the given xml element. | AbstractJavaNodeRealizerSerializer | ||
getElementName(item:Object):String
Returns the name of the element that will be written by this serializer given the provided item. | AbstractJavaNodeRealizerSerializer | ||
getElementNames():Array
Returns the names of all XML elements that can be parsed or written by this serializer. | AbstractJavaNodeRealizerSerializer | ||
getNamespace():Namespace
Returns the namespace of the element this serilaizer writes. | AbstractJavaNodeRealizerSerializer | ||
getStyleClass():Class
Returns the style class that can be serialized or deserialized by this instance. | AbstractJavaNodeRealizerSerializer | ||
Parses a serialized yFiles Java node realizer into the given style. | AbstractJavaNodeRealizerSerializer | ||
Write the given node style in a format that can be parsed into a node realizer by yFiles Java. | AbstractJavaNodeRealizerSerializer | ||
Write the attributes of the realizer xml element
| AbstractJavaNodeRealizerSerializer | ||
| Method | Defined By | ||
|---|---|---|---|
Writes the fill style into the XML writer. | AbstractJavaNodeRealizerSerializer | ||
| canRead | () | method |
public function canRead(node:XML, context:GraphMLParseContext):BooleanWhether this instance can deserialize the given xml element in the given context.
Parameters
node:XML — The xml element.
| |
context:GraphMLParseContext — The parse context.
|
Boolean — true if this instance can deserialize the given xml element
|
| canWrite | () | method |
public function canWrite(node:INode, context:GraphMLWriteContext):BooleanWhether this instance can serialize the style of the given node in the given context.
Parameters
node:INode — The node.
| |
context:GraphMLWriteContext — The write context.
|
Boolean — true if this instance can serialize the given node's style.
|
| createStyleInstance | () | method |
public function createStyleInstance(element:XML, context:GraphMLParseContext):INodeStyleCreate a style instance that can represent the node graphics information of the given xml element.
Parameters
element:XML — The xml element.
| |
context:GraphMLParseContext — The parse context.
|
INodeStyle — An INodeStyle instance which is deserialized from the given xml element.
|
| getElementName | () | method |
public function getElementName(item:Object):StringReturns the name of the element that will be written by this serializer given the provided item.
Parameters
item:Object |
String — the name of the item
|
| getElementNames | () | method |
public function getElementNames():ArrayReturns the names of all XML elements that can be parsed or written by this serializer.
ReturnsArray — The names of all xml elements this serializer can handle as Array.
|
| getNamespace | () | method |
public function getNamespace():NamespaceReturns the namespace of the element this serilaizer writes.
ReturnsNamespace — the namespace of the elements
|
| getStyleClass | () | method |
public function getStyleClass():ClassReturns the style class that can be serialized or deserialized by this instance.
ReturnsClass — The class that can be serialized by this instance.
|
| parse | () | method |
public function parse(style:INodeStyle, layout:IMutableRectangle, element:XML, context:GraphMLParseContext):voidParses a serialized yFiles Java node realizer into the given style.
Parameters
style:INodeStyle — A node style that is used to display the appearance of the yFiles Java node realizer.
| |
layout:IMutableRectangle — A mutable rectangle that will be set to the bounds of the parsed realizer.
| |
element:XML — the graphml node element
| |
context:GraphMLParseContext — the current parsing context
|
| write | () | method |
public function write(node:INode, writer:IXmlWriter, context:GraphMLWriteContext):voidWrite the given node style in a format that can be parsed into a node realizer by yFiles Java.
Parameters
node:INode — node whose style can be serialized to a format that can be read by yFiles Java.
| |
writer:IXmlWriter — The xml writer
| |
context:GraphMLWriteContext — The current write context.
|
| writeAttributes | () | method |
public function writeAttributes(node:INode, writer:IXmlWriter, context:GraphMLWriteContext):voidWrite the attributes of the realizer xml element
Parameters
node:INode — A node whose style can be serialized to a format that can be read by yFiles Java.
| |
writer:IXmlWriter — The xml writer.
| |
context:GraphMLWriteContext — The current write context.
|
| writeFill | () | method |
protected function writeFill(writer:IXmlWriter, jStyle:AbstractJavaNodeStyle):voidWrites the fill style into the XML writer.
Parameters
writer:IXmlWriter — The XML writer.
| |
jStyle:AbstractJavaNodeStyle — The node style instance.
|