| Package | com.adobe.coreUI.controls.whiteboardClasses.shapes |
| Class | public class WBCustomShapeFactory |
| Implements | com.adobe.coreUI.controls.whiteboardClasses.IWBShapeFactory |
| Property | Defined by | ||
|---|---|---|---|
| cursor : Class
The cursor that is to be diplayed when the shape is selected.
| WBCustomShapeFactory | ||
| factoryId : String [read-only]
The factoryId of the shape.
| WBCustomShapeFactory | ||
| shape : Class
The shape Class that defines the display and action properties of the custom shape.
| WBCustomShapeFactory | ||
| toolBar : IWBPropertiesToolBar
The ToolBar of the shape
| WBCustomShapeFactory | ||
| Property | Defined by | ||
|---|---|---|---|
| _customCursor : Class | WBCustomShapeFactory | ||
| _customShape : Class | WBCustomShapeFactory | ||
| _factoryId : String | WBCustomShapeFactory | ||
| _shapeData : Object | WBCustomShapeFactory | ||
| _toolBar : IWBPropertiesToolBar | WBCustomShapeFactory | ||
| Method | Defined by | ||
|---|---|---|---|
|
WBCustomShapeFactory(p_customShape:Class, p_customCursor:Class = null, p_customToolBar:IWBPropertiesToolBar = null)
Constructor.
| WBCustomShapeFactory | ||
|
newShape():WBShapeBase
Return a new custom Shape Instance registered with the WhiteBoard.
| WBCustomShapeFactory | ||
| cursor | property |
cursor:Class [read-write]The cursor that is to be diplayed when the shape is selected.
Implementation public function get cursor():Class
public function set cursor(value:Class):void
| _customCursor | property |
protected var _customCursor:Class
| _customShape | property |
protected var _customShape:Class
| _factoryId | property |
protected var _factoryId:String
| factoryId | property |
factoryId:String [read-only]The factoryId of the shape. Usaul value would be Class-Name: Shapes Class-Name
Implementation public function get factoryId():String
| shape | property |
shape:Class [read-write]The shape Class that defines the display and action properties of the custom shape.
Implementation public function get shape():Class
public function set shape(value:Class):void
| _shapeData | property |
protected var _shapeData:Object
| _toolBar | property |
protected var _toolBar:IWBPropertiesToolBar
| toolBar | property |
toolBar:IWBPropertiesToolBar [read-write]The ToolBar of the shape
Implementation public function get toolBar():IWBPropertiesToolBar
public function set toolBar(value:IWBPropertiesToolBar):void
| WBCustomShapeFactory | () | constructor |
public function WBCustomShapeFactory(p_customShape:Class, p_customCursor:Class = null, p_customToolBar:IWBPropertiesToolBar = null)Constructor. WBCustomShapeFactory enables the new custom shape to be registered with the WhiteBoard and set the shapes cursor and its toolBar. The following example shows how a custom shape is added using the WBCustomShapeFactory
var triangleShape:WBShapeToolBarDescriptor = new WBShapeToolBarDescriptor(WBShapeToolBarDescriptor.TOOL); //Shape is of type tool
triangleShape.toolTip ="Triangle";
triangleShape.shapeFactory = new WBCustomShapeFactory(WBTriangleShape, CURSOR_PEN, new WBTrianglePropertiesToolBar());
triangleShape.icon = ICON_TRIANGLE;
toolBar.addCustomShapeToToolBar(triangleShape);
Parameters
p_customShape:Class — The shape Class that defines the display and action properties of the custom shape.
|
|
p_customCursor:Class (default = null) — The cursor that is to be diplayed when the shape is selected.
|
|
p_customToolBar:IWBPropertiesToolBar (default = null) — Set the ToolBar to be displayed associated with the shape.
|
| newShape | () | method |
public function newShape():WBShapeBaseReturn a new custom Shape Instance registered with the WhiteBoard.
ReturnsWBShapeBase |
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/shapes/WBCustomShapeFactory.html