| Package | com.adobe.coreUI.controls.whiteboardClasses |
| Class | public class WBModel |
| Inheritance | WBModel flash.events.EventDispatcher |
| Subclasses | SharedWBModel |
See also
| Method | Defined by | ||
|---|---|---|---|
|
WBModel()
Constructor
| WBModel | ||
|
addShape(p_shape:WBShapeDescriptor):void
Add a shape to the canvas
| WBModel | ||
|
changeShapeProperties(p_shapeID:String, p_properties:*):void
Change the property data of a shape
| WBModel | ||
|
createShape(p_shape:WBShapeDescriptor):void
Create a Shape
| WBModel | ||
|
getIsAdded(p_shapeID:String):Boolean
Returns if the shape is added already on the canvas
| WBModel | ||
|
getShapeDescriptor(p_shapeID:String):WBShapeDescriptor
Returns the shape descriptor of a shape ID
| WBModel | ||
|
getShapeIDs():Array
Returns array of shape ids
| WBModel | ||
|
moveSizeRotateShape(p_shapeID:String, p_x:Number, p_y:Number, p_w:Number, p_h:Number, p_rotation:int):void
Change layout of shape i.e.
| WBModel | ||
|
removeAllShapes():void
Remove all shapes
| WBModel | ||
|
removeShape(p_shapeID:String):void
remove an existing shape given by the shape id
| WBModel | ||
| Event | Summary | Defined by | ||
|---|---|---|---|---|
| Dispatched when the shape is added to the canvas of the whiteboard | WBModel | |||
| Dispatched when the shape is first created | WBModel | |||
| Dispatched when the layout of shape i.e. | WBModel | |||
| Dispatched when the propertyData of a shape changes | WBModel | |||
| Dispatched when a shape for e.g. | WBModel | |||
| Dispatched when the SharedWhiteBoardModel has fully connected and synchronized with the service or when it loses that connection. | WBModel | |||
| WBModel | () | constructor |
public function WBModel()Constructor
| addShape | () | method |
public function addShape(p_shape:WBShapeDescriptor):voidAdd a shape to the canvas
Parametersp_shape:WBShapeDescriptor |
| changeShapeProperties | () | method |
public function changeShapeProperties(p_shapeID:String, p_properties:*):voidChange the property data of a shape
Parametersp_shapeID:String |
|
p_properties:* |
| createShape | () | method |
public function createShape(p_shape:WBShapeDescriptor):voidCreate a Shape
Parametersp_shape:WBShapeDescriptor |
| getIsAdded | () | method |
public function getIsAdded(p_shapeID:String):BooleanReturns if the shape is added already on the canvas
Parametersp_shapeID:String |
Boolean |
| getShapeDescriptor | () | method |
public function getShapeDescriptor(p_shapeID:String):WBShapeDescriptorReturns the shape descriptor of a shape ID
Parametersp_shapeID:String |
WBShapeDescriptor |
| getShapeIDs | () | method |
public function getShapeIDs():ArrayReturns array of shape ids
ReturnsArray |
| moveSizeRotateShape | () | method |
public function moveSizeRotateShape(p_shapeID:String, p_x:Number, p_y:Number, p_w:Number, p_h:Number, p_rotation:int):voidChange layout of shape i.e. change x,y ,width,height or rotation of a shape defined by the shape ID
Parametersp_shapeID:String |
|
p_x:Number |
|
p_y:Number |
|
p_w:Number |
|
p_h:Number |
|
p_rotation:int |
| removeAllShapes | () | method |
public function removeAllShapes():voidRemove all shapes
| removeShape | () | method |
public function removeShape(p_shapeID:String):voidremove an existing shape given by the shape id
Parametersp_shapeID:String |
| shapeAdd | event |
com.adobe.events.WBModelEvent
Dispatched when the shape is added to the canvas of the whiteboard
| shapeCreate | event |
| shapePositionSizeRotationChange | event |
com.adobe.events.WBModelEvent
Dispatched when the layout of shape i.e. height, width, rotation angle changes
| shapePropertiesChange | event |
com.adobe.events.WBModelEvent
Dispatched when the propertyData of a shape changes
| shapeRemove | event |
com.adobe.events.WBModelEvent
Dispatched when a shape for e.g. an ellipse, rectangle is removed.
| synchronizationChange | event |
flash.events.Event
Dispatched when the SharedWhiteBoardModel has fully connected and synchronized with the service or when it loses that connection.
Send me an e-mail when comments are added to this page | Comment Report
Current page: http://livedocs.adobe.com/labs/acrobatcom/com/adobe/coreUI/controls/whiteboardClasses/WBModel.html