Packagecom.yworks.io.graphml.reader.deserializer
Classpublic class FilterNodeStyleDeserializer
InheritanceFilterNodeStyleDeserializer Inheritance DelegatingStyleDeserializer Inheritance AbstractDeserializer Inheritance Object

A deserializer which can handle FilterStyleWrapper instances.



Public Properties
 PropertyDefined By
  elementName : String
[override] [read-only] The name of the style's element.
FilterNodeStyleDeserializer
  instance : FilterNodeStyleDeserializer
[static] [read-only] The single instance of this deserializer.
FilterNodeStyleDeserializer
 InheritedxmlNamespace : Namespace
[override] [read-only] The XmlNamespace that this Deserializer can claim to handle.
DelegatingStyleDeserializer
Public Methods
 MethodDefined By
 Inherited
canHandle(context:GraphMLParseContext, element:XML):Boolean
Returns whether a deserializer can handle a specific xml element.
AbstractDeserializer
 Inherited
deserialize(context:GraphMLParseContext, element:XML):Object
[override] Deserializes the wrapped style which is expected in the <y:Wrapped> child element of the current element and calls deserializeStyle().
DelegatingStyleDeserializer
Protected Methods
 MethodDefined By
  
deserializeStyle(context:GraphMLParseContext, element:XML, wrapped:IVisualStyle):Object
[override] Creates a new instance of the deserialized style, wrapping the given style.
FilterNodeStyleDeserializer
Property Detail
elementNameproperty
elementName:String  [read-only] [override]

The name of the style's element.


Implementation
    public function get elementName():String
instanceproperty 
instance:FilterNodeStyleDeserializer  [read-only]

The single instance of this deserializer. It is good practise to implement a deserializer as singleton.


Implementation
    public static function get instance():FilterNodeStyleDeserializer
Method Detail
deserializeStyle()method
override protected function deserializeStyle(context:GraphMLParseContext, element:XML, wrapped:IVisualStyle):Object

Creates a new instance of the deserialized style, wrapping the given style.

		 <y:FilterStyleWrapper>
		 		<y:Wrapped>The wrapped style</y:Wrapped>
		 		<y:Filters>
		 			<y:Filter className=".." params=".." />
		 			<y:Filter className=".." params=".." />
		 		</y:Filters>
		 </y:FilterStyleWrapper>
		 
Note that this implementation can only handle params for DropShadowFilter instances.

Parameters

context:GraphMLParseContext — The parse context.
 
element:XML — The element to parse.
 
wrapped:IVisualStyle — The style to wrap.

Returns
Object — A new instance of the deserialized style.