org.jivesoftware.xiff.data.whiteboard

class Stroke

Object | +--org.jivesoftware.xiff.data.whiteboard.Stroke
Implemented Interfaces: ISerializable

class 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

public color: Number (read)
The value of the RGB color. This is the same color format used by MovieClip.lineStyle
public color: Object (write)
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
public width: Number (read, write)
The width of the stroke in pixels. This is in a format used by MovieClip.lineStyle

Constructor

public Stroke ( )

Method Summary

public deserialize ( node: XMLNode ): Boolean
Extracts the known stroke attributes from the node
public 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.

Property Documentation