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

A helper class that abstracts the serialization of strokes and provides an interface to access the properties



Public Properties
 PropertyDefined by
  color : uint
The value of the RGB color.
Stroke
  opacity : Number
The opacity of the stroke, in percent.
Stroke
  width : Number
The width of the stroke in pixels.
Stroke
Public Methods
 MethodDefined by
  
Stroke
  
deserialize(node:XMLNode):Boolean
Extracts the known stroke attributes from the node
Stroke
  
serialize(parent:XMLNode):Boolean
Serializes the Stroke into the parent node.
Stroke
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 stroke, 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
widthproperty 
width:Number  [read-write]

The width of the stroke in pixels. This is in a format used by MovieClip.lineStyle

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

Extracts the known stroke 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 Stroke into the parent node. Because the stroke 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