Package | com.yworks.io.graphml.writer.serializer |
Class | public class FontSerializer |
Inheritance | FontSerializer AbstractSerializer Object |
UITextFormat
instances.
A shared instance can be retrieved using instance
.
The Font size will be multiplied by the factor provided by the context property
"fontSizeFactor"
. This is necessary when deserializing a font
from a .NET server, because .NET interprets the font size as points (1/72 inch)
whereas Flex interprets the size as pixel (1/96 inch).
The GraphMLIOHandler's properties adjustFontSize
and fontSizeFactor
allow to set the context properties conveniently.
Property | Defined By | ||
---|---|---|---|
elementName : String [override] [read-only]
The element name of the toplevel XmlElement for the serialized representation of this object. | FontSerializer | ||
instance : FontSerializer [static] [read-only]
The shared instance of this deserializer
| FontSerializer | ||
xmlNamespace : Namespace [read-only]
returns the yworks namespace
| AbstractSerializer |
Method | Defined By | ||
---|---|---|---|
canHandle(context:GraphMLWriteContext, subject:Object):Boolean [override]
Return whether this serializer can handle a specific object. | FontSerializer | ||
Serialize the given style to a IXmlWriter. | AbstractSerializer |
Method | Defined By | ||
---|---|---|---|
[override]
Write the content of the graphml element that corresponds to the serialization of subject. | FontSerializer |
elementName | property |
elementName:String
[read-only] [override] The element name of the toplevel XmlElement for the serialized representation of this object.
public function get elementName():String
instance | property |
instance:FontSerializer
[read-only] The shared instance of this deserializer
public static function get instance():FontSerializer
canHandle | () | method |
override public function canHandle(context:GraphMLWriteContext, subject:Object):Boolean
Return whether this serializer can handle a specific object.
Parameters
context:GraphMLWriteContext — The write context.
| |
subject:Object — The object which is tested
|
Boolean — true if the serializer can handle the subject
|
serializeContent | () | method |
override protected function serializeContent(context:GraphMLWriteContext, subject:Object, writer:IXmlWriter):void
Write the content of the graphml element that corresponds to the serialization of subject
.
Parameters
context:GraphMLWriteContext — The current write context.
| |
subject:Object — The current object to be serialized.
| |
writer:IXmlWriter — The xml writer.
|