"undefined"==typeof AdfDhtmlDvtGraphPeer&&(AdfRichUIPeer.createPeerClass(AdfDhtmlDvtImageViewPeer,"AdfDhtmlDvtGraphPeer",!1),AdfPage.PAGE.getLookAndFeel().registerPeerConstructor("oracle.dss.adf.graph.Graph","AdfDhtmlDvtGraphPeer"));AdfDhtmlDvtGraphPeer.POPUP_LAUNCH_CONTEXT="popupLaunchContext";AdfDhtmlDvtGraphPeer.InitSubclass=function(){AdfObject.ensureClassInitialization(AdfDhtmlDvtGraphPeer)};
AdfDhtmlDvtGraphPeer.prototype.AddFlashTagToDom=function(a){AdfDhtmlDvtGraphPeer.superclass.AddFlashTagToDom(a);this.ResetClientState(a);this.CreateFlashSvgProxy(a)};AdfDhtmlDvtGraphPeer.prototype.LoadFlashXml=function(a){AdfDhtmlDvtGraphPeer.superclass.LoadFlashXml(a);this.ResetClientState(a)};AdfDhtmlDvtGraphPeer.prototype.ResetClientState=function(a){a._mode=AdfDvtGraph.MODE_DEFAULT;a._timeSelListeners=null;a._bFlashTimeSelListenerAdded=!1};
AdfDhtmlDvtGraphPeer.prototype.CreateFlashSvgProxy=function(a){var b=this.GetSvgProxyName(a);window[b]={};window[b].BI_SVG_MODE_DEFAULT=AdfDvtGraph.MODE_DEFAULT;window[b].BI_SVG_MODE_ZOOM=AdfDvtGraph.MODE_ZOOM;window[b].setMode=function(b){return AdfPage.PAGE.findComponent(a.getClientId()).setMode(b)};window[b].addTimeSelectorListener=function(b){return AdfPage.PAGE.findComponent(a.getClientId()).addTimeSelectorListener(b)};window[b].removeTimeSelectorListener=function(b){return AdfPage.PAGE.findComponent(a.getClientId()).removeTimeSelectorListener(b)}};
AdfDhtmlDvtGraphPeer.prototype.GetSvgProxyName=function(a){return this.GetGraphIdFromClientId(a)+"_svg"};AdfDhtmlDvtGraphPeer.prototype.GetGraphIdFromClientId=function(a){if(a=new String(a.getClientId()),0<a.length){var b=a.lastIndexOf(":");-1<b&&b<a.length-1&&(a=a.substring(b+1,a.length))}return a};AdfDhtmlDvtGraphPeer.prototype.NotifyTimeSelectorListeners=function(a,b){var c=this.getComponent();c.getClientId();for(var c=c._timeSelListeners,d=c.length-1;0<=d;d--)eval(c[d])};
AdfDhtmlDvtGraphPeer.prototype.TimeSelListenerHasArgs=function(a){var b=a.lastIndexOf("(");if(-1<b){var c=a.indexOf(")",b);if(c>b){var d=a.indexOf("src",b);if(d>b&&d<c&&(b=a.indexOf("startTime",d),b>d&&b<c&&(a=a.indexOf("endTime",b),a>b&&a<c)))return!0}}return!1};AdfDhtmlDvtGraphPeer.prototype.showPopupHelper=function(a){this.ForceSetPropertyChange(AdfDhtmlDvtGraphPeer.POPUP_LAUNCH_CONTEXT,a,!1,AdfUIComponent.PROPAGATE_ALWAYS)};
AdfDhtmlDvtGraphPeer.prototype.getDragContext=function(a){a=this._getComponentCoords(this.getComponent(),a);if("HTML5"==this.getComponent().getClientImageFormat())return this._view&&this._view.getDragContext?(a=this._view.getDragContext(a.x,a.y),new AdfDvtGraphDragContext(a.xValue,a.yValue)):null;var b=this.getFlashMovieObj();return b&&b.getDragContext?(a=b.getDragContext(a.x,a.y),new AdfDvtGraphDragContext(a.xValue,a.yValue)):null};
AdfDhtmlDvtGraphPeer.prototype.getDragData=function(){if("HTML5"==this.getComponent().getClientImageFormat()){if(this._view&&this._view.getDragData)return this._view.getDragData()}else{var a=this.getFlashMovieObj();if(a&&a.getDragData)return a.getDragData()}return null};AdfDhtmlDvtGraphPeer.prototype.getAccessibleName=function(){return this.getComponent().getShortDesc()};AdfDhtmlDvtGraphPeer.prototype.getDefaultDragRecognizer=function(a){return new AdfDvtDragRecognizer};
AdfDhtmlDvtGraphPeer.prototype.LoadHTML5Content=function(a){AdfDhtmlDvtGraphPeer.superclass.LoadHTML5Content.call(this,a);null!=a.getMode()&&a.setMode(a.getMode())};AdfDhtmlDvtGraphPeer.prototype.useDragGhostStyleClass=function(){return!1};