| Package | com.adobe.coreUI.controls.whiteboardClasses |
| Class | public class WBCanvas |
| Inheritance | WBCanvas mx.containers.Canvas |
| Property | Defined by | ||
|---|---|---|---|
| currentCursorClass : Class [read-only]
Returns the current class for Cursor.
| WBCanvas | ||
| currentPropertiesToolBar : IWBPropertiesToolBar [read-only]
Returns the Properties ToolBar.
| WBCanvas | ||
| currentShapeFactory : IWBShapeFactory [write-only]
Sets the current Shape Factory.
| WBCanvas | ||
| enableShapeSelection : Boolean
Enables/disables Shape Selection on Canvas.
| WBCanvas | ||
| model : WBModel
Sets the model.
| WBCanvas | ||
| scaleX : Number [write-only]
Sets the X Scale.
| WBCanvas | ||
| scaleY : Number [write-only]
Sets the Y Scale.
| WBCanvas | ||
| selectedShapeIDs : Array
Gets the ID's of selected shapes.
| WBCanvas | ||
| Method | Defined by | ||
|---|---|---|---|
|
addChild(child:DisplayObject):DisplayObject
Adds a shape as a child to the canvas.
| WBCanvas | ||
|
addToSelection(p_shapeID:String):void
Add a shape to list of selected shapes.
| WBCanvas | ||
|
clearCanvas():void
Clears all shapes and selection from the WBCanvas
| WBCanvas | ||
|
clearSelection():void
Clear list of selected shapes.
| WBCanvas | ||
|
close():void
API for removing event handlers and cleaning up the canvas
| WBCanvas | ||
|
getShapeContainer(p_shapeID:String):WBShapeContainer
Returns the container of the given shape.
| WBCanvas | ||
|
redo():void
Redo whiteboard command.
| WBCanvas | ||
|
registerFactory(p_factory:IWBShapeFactory):void
Registers the factory class for creating the shape.
| WBCanvas | ||
|
removeFromSelection(p_shapeID:String):void
Remove a shape from list of selected shapes.
| WBCanvas | ||
|
removeSelectedShapes():void
Delete all selected shapes.
| WBCanvas | ||
|
undo():void
Undo whiteboard command.
| WBCanvas | ||
| Event | Summary | Defined by | ||
|---|---|---|---|---|
| Dispatched when the type of cursor changes. | WBCanvas | |||
| Dispatched when the property tool bar is added. | WBCanvas | |||
| Dispatched when the property tool bar is removed. | WBCanvas | |||
| Dispatched when one selects a different shape on the canvas. | WBCanvas | |||
| currentCursorClass | property |
currentCursorClass:Class [read-only]Returns the current class for Cursor.
Implementation public function get currentCursorClass():Class
| currentPropertiesToolBar | property |
currentPropertiesToolBar:IWBPropertiesToolBar [read-only]Returns the Properties ToolBar.
Implementation public function get currentPropertiesToolBar():IWBPropertiesToolBar
| currentShapeFactory | property |
currentShapeFactory:IWBShapeFactory [write-only]Sets the current Shape Factory.
Implementation public function set currentShapeFactory(value:IWBShapeFactory):void
| enableShapeSelection | property |
enableShapeSelection:Boolean [read-write]Enables/disables Shape Selection on Canvas.
Implementation public function get enableShapeSelection():Boolean
public function set enableShapeSelection(value:Boolean):void
| model | property |
model:WBModel [read-write]Sets the model.
Implementation public function get model():WBModel
public function set model(value:WBModel):void
| scaleX | property |
scaleX:Number [write-only]Sets the X Scale.
Implementation public function set scaleX(value:Number):void
| scaleY | property |
scaleY:Number [write-only]Sets the Y Scale.
Implementation public function set scaleY(value:Number):void
| selectedShapeIDs | property |
selectedShapeIDs:Array [read-write]Gets the ID's of selected shapes.
Implementation public function get selectedShapeIDs():Array
public function set selectedShapeIDs(value:Array):void
| addChild | () | method |
public override function addChild(child:DisplayObject):DisplayObjectAdds a shape as a child to the canvas.
Parameterschild:DisplayObject |
DisplayObject |
| addToSelection | () | method |
public function addToSelection(p_shapeID:String):voidAdd a shape to list of selected shapes.
Parametersp_shapeID:String |
| clearCanvas | () | method |
public function clearCanvas():voidClears all shapes and selection from the WBCanvas
| clearSelection | () | method |
public function clearSelection():voidClear list of selected shapes.
| close | () | method |
public function close():voidAPI for removing event handlers and cleaning up the canvas
| getShapeContainer | () | method |
public function getShapeContainer(p_shapeID:String):WBShapeContainerReturns the container of the given shape.
Parametersp_shapeID:String |
WBShapeContainer |
| redo | () | method |
public function redo():voidRedo whiteboard command.
| registerFactory | () | method |
public function registerFactory(p_factory:IWBShapeFactory):voidRegisters the factory class for creating the shape.
Parametersp_factory:IWBShapeFactory |
| removeFromSelection | () | method |
public function removeFromSelection(p_shapeID:String):voidRemove a shape from list of selected shapes.
Parametersp_shapeID:String |
| removeSelectedShapes | () | method |
public function removeSelectedShapes():voidDelete all selected shapes.
| undo | () | method |
public function undo():voidUndo whiteboard command.
| cursorChange | event |
| propertiesToolbarAdd | event |
| propertiesToolbarRemove | event |
| selectionChange | event |
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/WBCanvas.html