
disconnect()
TheconnectandconnectAsmethodswereexplainedabove,thedisconnectmethodssh ouldbe
usedwhenthew hiteboardisnolongerinuse,orbeforeconnectingittoanothernetconnection
orinstance,whenyournetconnectionclo sesthewhiteb oardwillcallt hismethoditse lf
auto matically.
drawMode
Theproperty drawmodecontrolshowthewhiteboardshouldhandletheboundariesofthe
canvas,itcaneitherscroll(WhiteboardManager.DRAW_MODE_SCROLLING),sca letofitthe
content(WhiteboardManager.DRAW_MODE_SCALE)orbefixedsize
(WhiteboardManager.DRAW_MODE_FIXED)notallowingshapestoexceedtheb ounda ries.
enableCreation
ThisBooleanallowsordisallowstheusertocreatenewshapes
enableSelection
ThisBooleanallowsordisallowstheusertoselecta ndmodifyshapes
APIWrappers/Controllers
TherestofthepublicAPIsaresplitintocontrollers.Thecontrollersa reavailablefrom the
WhiteboardManagerclasswh ichiswhattheWhiteboard.mxmlextendsfrom.Foreachcontroller
therearetwowaystoacquireit,asapropertysuchas‘my _wb.pageControlle r’orasamethod
‘my_wb.getPa geController()’.Thereasonforbothisbecauseflexcantbindtoapropertyofa
propertybutmostofthepropertiesinthecontrollersarebindable,suchas
‘getPageController().selectedPage’soforbindingthemethodmustbeused.
Anexampleusagemightbe topasteallt heitemsintheclipboardwheretheywere+15pixels,this
wouldbedoneassuch:‘my_wb.shape Controller.pasteAtOffset(15,15);’S implyacquirethe
controllerandcalltheappropriatemethod.
§ PageController (whiteboardManage r.pageController||
whiteboardManager.getPageController())
o Thepagecontrollerhasprop ertiesforgettingandsettingthecurrentpageand
eventsrelevanttothepagechanging.Italsohasfunctionalityforcreatingand
clearingpages,alongwithAPIsforstoringsettin gsagai nstapagesoyoucancreate
scenariosthata repagespecific,suchasapagehavingabackgroundimage.
§ ToolContro ller (whiteboa rdManager.toolController||
whiteboardManager.getToolController())
o Thetoolcontrollerallowsyoutoset theactivetool,suchas‘Rectangle’or‘Circle ’
etcandatoolCha ngeeven t.Thereisalsoahelpermethodreg isterButtonw hich
willallowyoutoassocia teanyUIElementwith aselectedpropertywithatoolso
whenatoolisselectedtheappropriatebuttonis.Howeverifyoudidnotwant to
Comentários a estes Manuais