[jboss-cvs] jboss-profiler/java/webapp/lzx ...

Takuro Okada t2-okada at nri.co.jp
Wed Dec 13 05:13:38 EST 2006


  User: tokada  
  Date: 06/12/13 05:13:38

  Modified:    java/webapp/lzx      Tag: JBossProfiler_Expansion
                        notifygridtext.lzx stacktracediagram.lzx
                        httprequeststatistics.lzx dataaccessstatistics.lzx
                        webapplicationanalyzer.lzx
  Log:
  Added some functions.
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.1.2.3   +9 -6      jboss-profiler/java/webapp/lzx/Attic/notifygridtext.lzx
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: notifygridtext.lzx
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-profiler/java/webapp/lzx/Attic/notifygridtext.lzx,v
  retrieving revision 1.1.2.2
  retrieving revision 1.1.2.3
  diff -u -b -r1.1.2.2 -r1.1.2.3
  --- notifygridtext.lzx	7 Nov 2006 06:49:05 -0000	1.1.2.2
  +++ notifygridtext.lzx	13 Dec 2006 10:13:38 -0000	1.1.2.3
  @@ -117,6 +117,9 @@
       <method name="_fireEvent">
         target[targetevent].sendEvent(parent.getSelection());
       </method>
  +    <method name="_inferSortpath">
  +      return this._textxpath;
  +    </method>
     </class>
     
   </library>
  \ No newline at end of file
  
  
  
  1.1.2.3   +28 -5     jboss-profiler/java/webapp/lzx/Attic/stacktracediagram.lzx
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: stacktracediagram.lzx
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-profiler/java/webapp/lzx/Attic/stacktracediagram.lzx,v
  retrieving revision 1.1.2.2
  retrieving revision 1.1.2.3
  diff -u -b -r1.1.2.2 -r1.1.2.3
  --- stacktracediagram.lzx	13 Nov 2006 07:16:16 -0000	1.1.2.2
  +++ stacktracediagram.lzx	13 Dec 2006 10:13:38 -0000	1.1.2.3
  @@ -33,6 +33,13 @@
     <include href="linedrawview.lzx"/>
     <include href="floatingmessage.lzx"/>
     
  +  <class name="popupmessage" extends="basecomponent" bgcolor="0xffffff">
  +    <text name="_contents" fontsize="9" resize="true"/>
  +    <method name="setMessage" args="message">
  +      this._contents.setText(message);
  +    </method>
  +  </class>
  +  
     <class name="lane" extends="view"
           height="${parent.height}">
       
  @@ -66,9 +73,25 @@
           <method name="strokeLifeline">
             dottedLine(parent._centerPoint, 0, parent._centerPoint, parent.height);
           </method>
  -        <method name="strokeActivation" args="begin, elapsed">
  +        <method name="strokeActivation" args="begin, elapsed, elapsedTime">
             var width = parent.parent.activationwidth;
             offsetLine(parent._centerPoint-width/2, begin, width, elapsed, true);
  +          
  +          // creates a view to handle mouse events
  +          var activation = new LzView(this, {x:parent._centerPoint-width/2, y:begin, width:width, height:elapsed, clickable:true});
  +          activation.setAttribute("value", elapsedTime);
  +          new LzDelegate(this, "focusin", activation, "onmouseover");
  +          new LzDelegate(this, "focusout", activation, "onmouseout");
  +        </method>
  +        <method name="focusin" args="activation">
  +          var attr = {name:"message",
  +                      x:classroot.parent.parent.getMouse("x")+4,
  +                      y:classroot.parent.parent.getMouse("y")-16};
  +          var m = new popupmessage(classroot.parent.parent, attr);
  +          m.setMessage("Elapsed Time : "+activation.value);
  +        </method>
  +        <method name="focusout" args="activation">
  +          classroot.parent.parent.searchSubnodes("name", "message").destroy(true);
           </method>
         </linedrawview>
       </view>
  @@ -83,8 +106,8 @@
         this.objectbox.setWidth(this.objectbox.contents.objectname.width + 16);
         this.activationarea.drawview.strokeLifeline();
       </handler>
  -    <method name="setActivation" args="begin, elapsed">
  -      this.activationarea.drawview.strokeActivation(begin, elapsed);
  +    <method name="setActivation" args="begin, elapsed, elapsedTime">
  +      this.activationarea.drawview.strokeActivation(begin, elapsed, elapsedTime);
       </method>
     </class>
     
  @@ -217,7 +240,7 @@
                                             name,
                                             updateLane.activationwidth);
           }else {
  -          updateLane.setActivation(beginPixel, elapsedPixel);
  +          updateLane.setActivation(beginPixel, elapsedPixel, elapsedTime);
             if(i!=0) {
               messages.push({lane:updateLane, caller:caller, begin:beginPixel, elapsed:elapsedPixel, id:id, method:name});
             }
  
  
  
  1.1.2.3   +12 -0     jboss-profiler/java/webapp/lzx/Attic/httprequeststatistics.lzx
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: httprequeststatistics.lzx
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-profiler/java/webapp/lzx/Attic/httprequeststatistics.lzx,v
  retrieving revision 1.1.2.2
  retrieving revision 1.1.2.3
  diff -u -b -r1.1.2.2 -r1.1.2.3
  --- httprequeststatistics.lzx	7 Nov 2006 06:49:05 -0000	1.1.2.2
  +++ httprequeststatistics.lzx	13 Dec 2006 10:13:38 -0000	1.1.2.3
  @@ -77,6 +77,18 @@
                                           webappAnalyzerWarningSettings.subviews[0].color.getValue():null}">
             Elapsed Time
           </notifygridtext>
  +        <handler name="oninit">
  +          var del = new LzDelegate(this, "oncopy");
  +          LzKeys.callOnKeyCombo(del, ["control", "C"]);
  +        </handler>
  +        <method name="oncopy">
  +          var selectionDp = getSelection();
  +          var selectionString = selectionDp.getNodeAttribute("id") + ", ";
  +          selectionString += selectionDp.getNodeAttribute("name") + ", ";
  +          selectionString += selectionDp.getNodeAttribute("args") + ", ";
  +          selectionString += selectionDp.getNodeAttribute("value");
  +          LzBrowser.setClipboard(selectionString);
  +        </method>
         </grid>
         <method name="_applystyle" args="s">
           this.setBGColor(s.bordercolor);
  
  
  
  1.1.2.4   +12 -0     jboss-profiler/java/webapp/lzx/Attic/dataaccessstatistics.lzx
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: dataaccessstatistics.lzx
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-profiler/java/webapp/lzx/Attic/dataaccessstatistics.lzx,v
  retrieving revision 1.1.2.3
  retrieving revision 1.1.2.4
  diff -u -b -r1.1.2.3 -r1.1.2.4
  --- dataaccessstatistics.lzx	13 Nov 2006 07:16:16 -0000	1.1.2.3
  +++ dataaccessstatistics.lzx	13 Dec 2006 10:13:38 -0000	1.1.2.4
  @@ -77,6 +77,18 @@
                                           webappAnalyzerWarningSettings.subviews[0].color.getValue():null}">
             Elapsed Time
           </notifygridtext>
  +        <handler name="oninit">
  +          var del = new LzDelegate(this, "oncopy");
  +          LzKeys.callOnKeyCombo(del, ["control", "C"]);
  +        </handler>
  +        <method name="oncopy">
  +          var selectionDp = getSelection();
  +          var selectionString = selectionDp.getNodeAttribute("id") + ", ";
  +          selectionString += selectionDp.getNodeAttribute("name") + ", ";
  +          selectionString += selectionDp.getNodeAttribute("args") + ", ";
  +          selectionString += selectionDp.getNodeAttribute("value");
  +          LzBrowser.setClipboard(selectionString);
  +        </method>
         </grid>
         <method name="_applystyle" args="s">
           this.setBGColor(s.bordercolor);
  
  
  
  1.1.2.3   +1 -1      jboss-profiler/java/webapp/lzx/Attic/webapplicationanalyzer.lzx
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: webapplicationanalyzer.lzx
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-profiler/java/webapp/lzx/Attic/webapplicationanalyzer.lzx,v
  retrieving revision 1.1.2.2
  retrieving revision 1.1.2.3
  diff -u -b -r1.1.2.2 -r1.1.2.3
  --- webapplicationanalyzer.lzx	12 Dec 2006 08:28:43 -0000	1.1.2.2
  +++ webapplicationanalyzer.lzx	13 Dec 2006 10:13:38 -0000	1.1.2.3
  @@ -134,7 +134,7 @@
         if(index>1) {
           canvas.executionPassageDetailData.setQueryParam(AppInfo.RPK_CALLER, caller);
         }
  -      canvas.executionPassageDetailData.doRequest();Debug.write("!");
  +      canvas.executionPassageDetailData.doRequest();
         new LzDelegate(this, "onDataLoaded", canvas.executionPassageDetailData, "ondata");
       </method>
       
  
  
  



More information about the jboss-cvs-commits mailing list