00001 /*======================================================================= 00002 *** THE CONTENT OF THIS WORK IS PROPRIETARY TO FEI S.A.S, (FEI S.A.S.), *** 00003 *** AND IS DISTRIBUTED UNDER A LICENSE AGREEMENT. *** 00004 *** *** 00005 *** REPRODUCTION, DISCLOSURE, OR USE, IN WHOLE OR IN PART, OTHER THAN AS *** 00006 *** SPECIFIED IN THE LICENSE ARE NOT TO BE UNDERTAKEN EXCEPT WITH PRIOR *** 00007 *** WRITTEN AUTHORIZATION OF FEI S.A.S. *** 00008 *** *** 00009 *** RESTRICTED RIGHTS LEGEND *** 00010 *** USE, DUPLICATION, OR DISCLOSURE BY THE GOVERNMENT OF THE CONTENT OF THIS *** 00011 *** WORK OR RELATED DOCUMENTATION IS SUBJECT TO RESTRICTIONS AS SET FORTH IN *** 00012 *** SUBPARAGRAPH (C)(1) OF THE COMMERCIAL COMPUTER SOFTWARE RESTRICTED RIGHT *** 00013 *** CLAUSE AT FAR 52.227-19 OR SUBPARAGRAPH (C)(1)(II) OF THE RIGHTS IN *** 00014 *** TECHNICAL DATA AND COMPUTER SOFTWARE CLAUSE AT DFARS 52.227-7013. *** 00015 *** *** 00016 *** COPYRIGHT (C) 1996-2020 BY FEI S.A.S, *** 00017 *** BORDEAUX, FRANCE *** 00018 *** ALL RIGHTS RESERVED *** 00019 **=======================================================================*/ 00020 00055 00205 class RemoteVizRenderArea 00206 { 00207 00208 public: 00209 00245 RemoteVizRenderArea(String|HTMLElement container, Number containerWidth, Number containerHeight, String displayMode); 00246 00265 connectTo(String serviceUrl); 00266 00271 disconnect(); 00272 00279 Boolean isConnected(); 00280 00286 sendMessage(String message); 00287 00292 requestRenderAreaSize(Number width, Number height); 00293 00297 resizeRenderAreaContainer(Number width, Number height); 00298 00300 00305 Number getRenderAreaWidth(); 00306 00312 Number getRenderAreaHeight(); 00314 00316 00321 Number getContainerWidth(); 00322 00328 Number getContainerHeight(); 00330 00332 00337 Boolean isImageStreamingSupported(); 00338 00344 Boolean isVideoStreamingSupported(); 00345 00352 String getStreamingMode(); 00354 00356 00365 addServiceListener(Function serviceHandler); 00371 removeServiceListener(Function serviceHandler); 00390 serviceHandler(Object notification); 00391 00393 00395 00403 addResizeListener(Function resizeHandler); 00409 removeResizeListener(Function resizeHandler); 00422 resizeHandler(Array size); 00423 00425 00427 00436 addReceivedFrameListener(Function receivedFrameHandler); 00442 removeReceivedFrameListener(Function receivedFrameHandler); 00458 receivedFrameHandler(Number frameId, Number dataLength, String message); 00459 00461 00463 00472 addDecodedFrameListener(Function decodedFrameHandler); 00478 removeDecodedFrameListener(Function decodedFrameHandler); 00494 decodedFrameHandler(Number frameId, Boolean isLossless, String message); 00496 00498 00507 addMessageListener(Function messageHandler); 00513 removeMessageListener(Function messageHandler); 00520 messageHandler(String message); 00522 00524 00533 addMouseUpListener(Function eventHandler); 00539 removeMouseUpListener(Function eventHandler); 00541 00543 00552 addMouseDownListener(Function eventHandler); 00558 removeMouseDownListener(Function eventHandler); 00560 00562 00571 addMouseDoubleClickListener(Function eventHandler); 00577 removeMouseDoubleClickListener(Function eventHandler); 00579 00581 00590 addMouseMoveListener(Function eventHandler); 00596 removeMouseMoveListener(Function eventHandler); 00598 00600 00609 addMouseOverListener(Function eventHandler); 00615 removeMouseOverListener(Function eventHandler); 00617 00619 00628 addMouseOutListener(Function eventHandler); 00634 removeMouseOutListener(Function eventHandler); 00636 00638 00647 addMouseWheelListener(Function eventHandler); 00653 removeMouseWheelListener(Function eventHandler); 00655 00657 00666 addTouchStartListener(Function eventHandler); 00672 removeTouchStartListener(Function eventHandler); 00674 00676 00685 addTouchEndListener(Function eventHandler); 00691 removeTouchEndListener(Function eventHandler); 00693 00695 00704 addTouchCancelListener(Function eventHandler); 00710 removeTouchCancelListener(Function eventHandler); 00712 00714 00723 addTouchMoveListener(Function eventHandler); 00729 removeTouchMoveListener(Function eventHandler); 00731 00733 00742 addKeyUpListener(Function eventHandler); 00748 removeKeyUpListener(Function eventHandler); 00750 00752 00761 addKeyDownListener(Function eventHandler); 00767 removeKeyDownListener(Function eventHandler); 00769 00779 Boolean eventHandler(Event event); 00780 00781 }; 00782 00783