Packagecom.adobe.coreUI.controls
Classpublic class WhiteBoard
InheritanceWhiteBoard Inheritance mx.core.UIComponent
SubclassesSharedWhiteBoard

This is a standalone whiteboard component. The SharedWhiteBoard component extends this component. This has API's for setting the shapes tool bar , properties tool bar, zoom level, selection. It has a white board model that does bookkeeping of all the shapes.



Public Properties
 PropertyDefined by
  allowSave : Boolean
Returns true if saving is allowed
WhiteBoard
  currentPropertiesToolBar : IWBPropertiesToolBar
[read-only] The current properties tool bar
WhiteBoard
  model : WBModel
Determines the model used in this white board
WhiteBoard
  popupPropertiesToolBar : Boolean = true
Returns if the properties tool bar is popped up.
WhiteBoard
  popupShapesToolBar : Boolean = true
Returns if the shapes tool bar is popped up.
WhiteBoard
  shapesToolBar : UIComponent
The shapes tool Bar
WhiteBoard
  zoomLevel : Number
Returns the zoom level
WhiteBoard
Public Methods
 MethodDefined by
  
Hides the selection container
WhiteBoard
  
Shows the selection
WhiteBoard
Events
 EventSummaryDefined by
   Dispatched when one is finished drawing a shape on the canvas.WhiteBoard
   Dispatched when the property tool bar is added.WhiteBoard
   Dispatched when the property tool bar is removed.WhiteBoard
Styles
 StyleDescriptionDefined by
  
backgroundAlpha
Type: Number   CSS Inheritance: no
Alpha level of the color defined by the backgroundColor property, of the image or SWF file defined by the backgroundImage style. Valid values range from 0.0 to 1.0. The default value is 1.0.
WhiteBoard
  
backgroundColor
Type: uint   Format: Color   CSS Inheritance: no
Background color of a component. You can have both a backgroundColor and a backgroundImage set. Some components do not have a background. The DataGrid control ignores this style. The default value is undefined, which means it is not set. If both this style and the backgroundImage style are undefined, the component has a transparent background.

For the Application container, this style specifies the background color while the application loads, and a background gradient while it is running. Flex calculates the gradient pattern between a color slightly darker than the specified color, and a color slightly lighter than the specified color.

The default skins of most Flex controls are partially transparent. As a result, the background color of a container partially "bleeds through" to controls that are in that container. You can avoid this by setting the alpha values of the control's fillAlphas property to 1, as the following example shows:

   <mx:Container backgroundColor="0x66CC66"/>
       <mx:ControlName ... fillAlphas="[1,1]"/>
   </mx:Container>

WhiteBoard
Property detail
allowSaveproperty
allowSave:Boolean  [read-write]

Returns true if saving is allowed

Implementation
    public function get allowSave():Boolean
    public function set allowSave(value:Boolean):void
currentPropertiesToolBarproperty 
currentPropertiesToolBar:IWBPropertiesToolBar  [read-only]

The current properties tool bar

Implementation
    public function get currentPropertiesToolBar():IWBPropertiesToolBar
modelproperty 
model:WBModel  [read-write]

Determines the model used in this white board

Implementation
    public function get model():WBModel
    public function set model(value:WBModel):void
popupPropertiesToolBarproperty 
public var popupPropertiesToolBar:Boolean = true

Returns if the properties tool bar is popped up.

popupShapesToolBarproperty 
public var popupShapesToolBar:Boolean = true

Returns if the shapes tool bar is popped up.

shapesToolBarproperty 
shapesToolBar:UIComponent  [read-write]

The shapes tool Bar

Implementation
    public function get shapesToolBar():UIComponent
    public function set shapesToolBar(value:UIComponent):void
zoomLevelproperty 
zoomLevel:Number  [read-write]

Returns the zoom level

Implementation
    public function get zoomLevel():Number
    public function set zoomLevel(value:Number):void
Method detail
hideSelection()method
public function hideSelection():void

Hides the selection container

showSelection()method 
public function showSelection():void

Shows the selection

Event detail
endDrawingShapeevent 
Event object type: com.adobe.events.WBCanvasEvent

Dispatched when one is finished drawing a shape on the canvas.

propertiesToolbarAddevent  
Event object type: com.adobe.events.WBCanvasEvent

Dispatched when the property tool bar is added.

propertiesToolbarRemoveevent  
Event object type: com.adobe.events.WBCanvasEvent

Dispatched when the property tool bar is removed.





 

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/WhiteBoard.html