Packageorg.igniterealtime.xiff.data.whiteboard
Classpublic class Fill
ImplementsISerializable

A helper class that abstracts the serialization of fills and provides an interface to access the properties providing defaults if no properties were defined in the XML.



Public Properties
 PropertyDefined by
  color : uint
The value of the RGB color.
Fill
  opacity : Number
The opacity of the fill, in percent.
Fill
Public Methods
 MethodDefined by
  
Fill()
Fill
  
deserialize(node:XMLNode):Boolean
Extracts the known fill attributes from the node
Fill
  
serialize(parent:XMLNode):Boolean
Serializes the Fill into the parent node.
Fill
Property detail
colorproperty
color:uint  [read-write]

The value of the RGB color. This is the same color format used by MovieClip.lineStyle

Implementation
    public function get color():uint
    public function set color(value:uint):void
opacityproperty 
opacity:Number  [read-write]

The opacity of the fill, in percent. 100 is solid, 0 is transparent. This property can be used as the alpha parameter of MovieClip.lineStyle

Implementation
    public function get opacity():Number
    public function set opacity(value:Number):void
Constructor detail
Fill()constructor
public function Fill()
Method detail
deserialize()method
public function deserialize(node:XMLNode):Boolean

Extracts the known fill attributes from the node

Parameters
node:XMLNode — The parent node that this extension should be serialized into

Returns
Boolean — An indicator as to whether serialization was successful
serialize()method 
public function serialize(parent:XMLNode):Boolean

Serializes the Fill into the parent node. Because the fill serializes into the attributes of the XML node, it will directly modify the parent node passed.

Parameters
parent:XMLNode — The parent node that this extension should be serialized into

Returns
Boolean — An indicator as to whether serialization was successful