Packagecom.yworks.io.graphml.writer.serializer
Classpublic class FilterNodeStyleSerializer
InheritanceFilterNodeStyleSerializer Inheritance DelegatingStyleSerializer Inheritance AbstractSerializer Inheritance Object

A serializer which can handle FilterStyleWrapper instances.



Public Properties
 PropertyDefined By
  elementName : String
[override] [read-only] The name of the style's element.
FilterNodeStyleSerializer
  instance : FilterNodeStyleSerializer
[static] [read-only] The single instance of this serializer.
FilterNodeStyleSerializer
 InheritedxmlNamespace : Namespace
[read-only] returns the yworks namespace
AbstractSerializer
Protected Properties
 PropertyDefined By
  type : Class
[override] [read-only] The type of the style this serializer can handle.
FilterNodeStyleSerializer
Public Methods
 MethodDefined By
 Inherited
canHandle(context:GraphMLWriteContext, subject:Object):Boolean
[override] This implementation returns true if the subject is of the type which is returned by the type property and is not null Return whether this serializer can handle a specific object.
DelegatingStyleSerializer
 Inherited
serialize(context:GraphMLWriteContext, subject:Object, writer:IXmlWriter):void
Serialize the given style to a IXmlWriter.
AbstractSerializer
Protected Methods
 MethodDefined By
 Inherited
serializeContent(context:GraphMLWriteContext, subject:Object, writer:IXmlWriter):void
[override] This implementation serializes the wrapped style into a <y:Wrapped> element and calls serializeStyle().
DelegatingStyleSerializer
  
serializeStyle(context:GraphMLWriteContext, subject:Object, writer:IXmlWriter):void
[override] Serializes the style's properties.
FilterNodeStyleSerializer
Property Detail
elementNameproperty
elementName:String  [read-only] [override]

The name of the style's element.


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

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


Implementation
    public static function get instance():FilterNodeStyleSerializer
typeproperty 
type:Class  [read-only] [override]

The type of the style this serializer can handle.


Implementation
    protected function get type():Class
Method Detail
serializeStyle()method
override protected function serializeStyle(context:GraphMLWriteContext, subject:Object, writer:IXmlWriter):void

Serializes the style's properties.

		 <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:GraphMLWriteContext — The write context.
 
subject:Object — The style to serialize.
 
writer:IXmlWriter — The writer to write to.