org.jivesoftware.xiff.data.whiteboard
class Stroke
Object
|
+--org.jivesoftware.xiff.data.whiteboard.Stroke
Implemented Interfaces: ISerializableclass Stroke extends Object
A helper class that abstracts the serialization of strokes and provides an interface to access the properties
- Author:Sean Treadway
- Since:2.0.0
Property Summary
The value of the RGB color. This is the same color format used by MovieClip.lineStyle
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
The width of the stroke in pixels. This is in a format used by MovieClip.lineStyle
Property Documentation
color
public color: Number (read)
The value of the RGB color. This is the same color format used by MovieClip.lineStyle
opacity
public 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
width
public width: Number (read, write)
The width of the stroke in pixels. This is in a format used by MovieClip.lineStyle
Constructor Documentation
Method Documentation
deserialize
public function deserialize (
node: XMLNode): Boolean
Extracts the known stroke attributes from the node
- Specified by:deserialize in interface org.jivesoftware.xiff.data.ISerializable
- Parameters:
node parent The parent node that this extension should be serialized into - Returns:An indicator as to whether serialization was successful
serialize
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.
- Specified by:serialize in interface org.jivesoftware.xiff.data.ISerializable
- Parameters:
parent The parent node that this extension should be serialized into - Returns:An indicator as to whether serialization was successful
- Stroke.as, Last Modified: 3/10/2005 10:13:56 PM