Package | com.yworks.io.graphml.reader.deserializer |
Class | public class FontDeserializer |
Inheritance | FontDeserializer AbstractDeserializer Object |
UITextFormat
instances.
A shared instance can be retrieved using instance
.
The Font size will be divided 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 local tag name that this Deserializer can claim to handle
| FontDeserializer | ||
instance : FontDeserializer [static] [read-only]
The shared instance of this deserializer. | FontDeserializer | ||
xmlNamespace : Namespace [override] [read-only]
The XmlNamespace that this Deserializer can claim to handle. | FontDeserializer |
Method | Defined By | ||
---|---|---|---|
canHandle(context:GraphMLParseContext, element:XML):Boolean
Returns whether a deserializer can handle a specific xml element. | AbstractDeserializer | ||
deserialize(context:GraphMLParseContext, element:XML):Object [override]
Create a new instance from the
xml element
| FontDeserializer |
elementName | property |
elementName:String
[read-only] [override] The local tag name that this Deserializer can claim to handle
public function get elementName():String
instance | property |
instance:FontDeserializer
[read-only] The shared instance of this deserializer.
public static function get instance():FontDeserializer
xmlNamespace | property |
xmlNamespace:Namespace
[read-only] [override] The XmlNamespace that this Deserializer can claim to handle.
This method needs to be overridden by subclass implementations.
public function get xmlNamespace():Namespace
deserialize | () | method |
override public function deserialize(context:GraphMLParseContext, element:XML):Object
Create a new instance from the xml element
Parameters
context:GraphMLParseContext — The current parse context
| |
element:XML — The current xml element
|
Object — A new instance
|