Package | org.igniterealtime.xiff.data.whiteboard |
Class | public class Stroke |
Implements | ISerializable |
Property | Defined 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 |
Method | Defined by | ||
---|---|---|---|
Stroke()
| 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 |
color | property |
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
opacity | property |
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
width | property |
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
Stroke | () | constructor |
public function Stroke()
deserialize | () | method |
public function deserialize(node:XMLNode):Boolean
Extracts the known stroke attributes from the node
Parametersnode:XMLNode — The parent node that this extension should be serialized into
|
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.
Parametersparent:XMLNode — The parent node that this extension should be serialized into
|
Boolean — An indicator as to whether serialization was successful
|