[jboss-cvs] jboss-profiler/java/webapp/lzx ...
Takuro Okada
t2-okada at nri.co.jp
Thu Oct 26 05:02:25 EDT 2006
User: tokada
Date: 06/10/26 05:02:25
Added: java/webapp/lzx Tag:
JBossProfiler_Expansion notifygridtext.lzx
borderedpane.lzx jbossprofiler.lzx linedrawview.lzx
executionstatistics.lzx floatingmessage.lzx
webapptracediagram.lzx httprequeststatistics.lzx
wndmain.lzx notifytextlistitem.lzx
loadingsplash.lzx webapplicationanalyzer.lzx
executionstack.lzx executionpassage.lzx
treegrid.lzx chartstyle.lzx stacktracediagram.lzx
concurrencystatistics.lzx settingdialog.lzx
acceptableview.lzx memorystatistics.lzx
resources.lzx dataaccessstatistics.lzx style.lzx
Log:
Revision Changes Path
No revision
No revision
1.1.2.1 +66 -0 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: notifygridtext.lzx
diff -N notifygridtext.lzx
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ notifygridtext.lzx 26 Oct 2006 09:02:25 -0000 1.1.2.1
@@ -0,0 +1,66 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!--
+ JBoss, Home of Professional Open Source
+ Copyright 2006, JBoss Inc., and individual contributors as indicated
+ by the @authors tag. See the copyright.txt in the distribution for a
+ full listing of individual contributors.
+
+ This is free software; you can redistribute it and/or modify it
+ under the terms of the GNU Lesser General Public License as
+ published by the Free Software Foundation; either version 2.1 of
+ the License, or (at your option) any later version.
+
+ This software is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ Lesser General Public License for more details.
+
+ You should have received a copy of the GNU Lesser General Public
+ License along with this software; if not, write to the Free
+ Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+-->
+<!--
+
+ @author Takuro Okada (Nomura Research Institute, Ltd.)
+ Copyright 2006 Nomura Research Institute, Ltd. All Rights Reserved.
+ Copyright(c) Information-technology Promotion Agency, Japan. All rights reserved 2006.
+ Result of Open Source Software Development Activities of Information-technology Promotion Agency, Japan.
+-->
+<library>
+
+ <class name="notifygridtext" extends="gridcolumn">
+ <attribute name="target"/>
+ <attribute name="targetevent" type="string"/>
+ <attribute name="sourceevent" type="string"/>
+ <attribute name="exclude" type="string"/>
+ <attribute name="textalign" type="string"/>
+ <text datapath="$once{parent.datapath.xpath}"
+ onmouseover="immediateparent.domouseover()"
+ onmouseout="immediateparent.domouseout()"
+ onfocus="immediateparent.select()"
+ clickable="true" focusable="true"
+ align="${typeof(parent.textalign)!='undefined'?parent.textalign:''}"
+ width="${parent.width}">
+ <handler name="oninit">
+ if(typeof(parent.target)=="undefined" ||
+ typeof(parent.targetevent)=="undefined" ||
+ typeof(parent.sourceevent)=="undefined") return;
+ this.del = new LzDelegate(parent, "_fireEvent");
+ this.del.register(this, parent.sourceevent);
+ </handler>
+ <method name="applyData" args="d">
+ <![CDATA[
+ var formattedData = null;
+ if(typeof(parent.exclude)!="undefined" && d==parent.exclude) formattedData = "";
+ else formattedData = d;
+ super.applyData(formattedData);
+ ]]>
+ </method>
+ </text>
+ <method name="_fireEvent">
+ target[targetevent].sendEvent(parent.getSelection());
+ </method>
+ </class>
+
+</library>
\ No newline at end of file
1.1.2.1 +58 -0 jboss-profiler/java/webapp/lzx/Attic/borderedpane.lzx
(In the diff below, changes in quantity of whitespace are not shown.)
Index: borderedpane.lzx
===================================================================
RCS file: borderedpane.lzx
diff -N borderedpane.lzx
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ borderedpane.lzx 26 Oct 2006 09:02:25 -0000 1.1.2.1
@@ -0,0 +1,58 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!--
+ JBoss, Home of Professional Open Source
+ Copyright 2006, JBoss Inc., and individual contributors as indicated
+ by the @authors tag. See the copyright.txt in the distribution for a
+ full listing of individual contributors.
+
+ This is free software; you can redistribute it and/or modify it
+ under the terms of the GNU Lesser General Public License as
+ published by the Free Software Foundation; either version 2.1 of
+ the License, or (at your option) any later version.
+
+ This software is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ Lesser General Public License for more details.
+
+ You should have received a copy of the GNU Lesser General Public
+ License along with this software; if not, write to the Free
+ Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+-->
+<!--
+
+ @author Takuro Okada (Nomura Research Institute, Ltd.)
+ Copyright 2006 Nomura Research Institute, Ltd. All Rights Reserved.
+ Copyright(c) Information-technology Promotion Agency, Japan. All rights reserved 2006.
+ Result of Open Source Software Development Activities of Information-technology Promotion Agency, Japan.
+-->
+<library>
+ <class name="borderedpane" extends="basecomponent">
+
+ <attribute name="padding" type="number" value="8"/>
+
+ <view name="innerpane">
+ <view name="contents"/>
+ </view>
+
+ <!--- @keywords private -->
+ <method name="_applystyle" args="s">
+ this.setWidth(this.width+(s.bordersize*2+this.padding*2));
+ this.setHeight(this.height+(s.bordersize*2+this.padding*2));
+ this.setBGColor(s.bordercolor);
+
+ innerpane.setX(innerpane.x+s.bordersize);
+ innerpane.setY(innerpane.y+s.bordersize);
+ innerpane.setWidth(this.width-s.bordersize*2);
+ innerpane.setHeight(this.height-s.bordersize*2);
+ innerpane.setBGColor(s.basecolor);
+
+ innerpane.contents.setX(innerpane.contents.x+this.padding);
+ innerpane.contents.setY(innerpane.contents.y+this.padding);
+ innerpane.contents.setWidth(innerpane.width-this.padding*2);
+ innerpane.contents.setHeight(innerpane.height-this.padding*2);
+ innerpane.contents.setBGColor(s.basecolor);
+ </method>
+ </class>
+</library>
\ No newline at end of file
1.1.2.1 +90 -0 jboss-profiler/java/webapp/lzx/Attic/jbossprofiler.lzx
(In the diff below, changes in quantity of whitespace are not shown.)
Index: jbossprofiler.lzx
===================================================================
RCS file: jbossprofiler.lzx
diff -N jbossprofiler.lzx
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ jbossprofiler.lzx 26 Oct 2006 09:02:25 -0000 1.1.2.1
@@ -0,0 +1,90 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!--
+ JBoss, Home of Professional Open Source
+ Copyright 2006, JBoss Inc., and individual contributors as indicated
+ by the @authors tag. See the copyright.txt in the distribution for a
+ full listing of individual contributors.
+
+ This is free software; you can redistribute it and/or modify it
+ under the terms of the GNU Lesser General Public License as
+ published by the Free Software Foundation; either version 2.1 of
+ the License, or (at your option) any later version.
+
+ This software is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ Lesser General Public License for more details.
+
+ You should have received a copy of the GNU Lesser General Public
+ License along with this software; if not, write to the Free
+ Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+-->
+<!--
+
+ @author Takuro Okada (Nomura Research Institute, Ltd.)
+ Copyright 2006 Nomura Research Institute, Ltd. All Rights Reserved.
+ Copyright(c) Information-technology Promotion Agency, Japan. All rights reserved 2006.
+ Result of Open Source Software Development Activities of Information-technology Promotion Agency, Japan.
+-->
+<canvas width="100%" height="100%" proxied="false">
+
+ <include href="resources.lzx"/>
+ <include href="style.lzx"/>
+ <include href="wndmain.lzx"/>
+ <include href="settingdialog.lzx"/>
+ <include href="acceptableview.lzx"/>
+
+ <include href="executionstatistics.lzx"/>
+ <include href="concurrencystatistics.lzx"/>
+ <include href="memorystatistics.lzx"/>
+ <include href="webapplicationanalyzer.lzx"/>
+ <!--
+ <include href="executionstack.lzx"/>
+ <include href="executionpassage.lzx"/>
+ -->
+
+ <jbpstyle isdefault="true"/>
+
+ <view name="main"
+ x="8" y="8" width="${parent.width-16}" height="${parent.height-16}"
+ font="vera" fontsize="12">
+ <wndmain name="mainWnd"
+ width="${parent.width}" height="${parent.height}">
+ <view name="mainContents" placement="mainContents">
+ <state name="profilable">
+ <tabs y="1" width="${parent.parent.width-25}" height="${parent.parent.height-105}"
+ barclass="notifytabsbar">
+ <tabpane text="Execution Statistics">
+ <executionStatistics/>
+ </tabpane>
+ <tabpane text="Concurrency Statistics">
+ <concurrencyStatistics/>
+ </tabpane>
+ <tabpane text="Memory Statistics">
+ <memoryStatistics/>
+ </tabpane>
+ <tabpane text="Web Application Analyzer">
+ <webApplicationAnalyzer/>
+ </tabpane>
+ <!--
+ <tabpane text="Execution Stack">
+ <executionStack/>
+ </tabpane>
+ <tabpane text="Graph">
+ <executionpassage/>
+ </tabpane>
+ -->
+ </tabs>
+ </state>
+ </view>
+ <settingdialog name="settingDialog"
+ y="${parent.height/2-this.height/2}"
+ width="600" height="400"/>
+ <handler name="onloadcontents">
+ settingDialog.open();
+ </handler>
+ </wndmain>
+ </view>
+
+</canvas>
\ No newline at end of file
1.1.2.1 +151 -0 jboss-profiler/java/webapp/lzx/Attic/linedrawview.lzx
(In the diff below, changes in quantity of whitespace are not shown.)
Index: linedrawview.lzx
===================================================================
RCS file: linedrawview.lzx
diff -N linedrawview.lzx
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ linedrawview.lzx 26 Oct 2006 09:02:25 -0000 1.1.2.1
@@ -0,0 +1,151 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!--
+ JBoss, Home of Professional Open Source
+ Copyright 2006, JBoss Inc., and individual contributors as indicated
+ by the @authors tag. See the copyright.txt in the distribution for a
+ full listing of individual contributors.
+
+ This is free software; you can redistribute it and/or modify it
+ under the terms of the GNU Lesser General Public License as
+ published by the Free Software Foundation; either version 2.1 of
+ the License, or (at your option) any later version.
+
+ This software is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ Lesser General Public License for more details.
+
+ You should have received a copy of the GNU Lesser General Public
+ License along with this software; if not, write to the Free
+ Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+-->
+<!--
+
+ @author Takuro Okada (Nomura Research Institute, Ltd.)
+ Copyright 2006 Nomura Research Institute, Ltd. All Rights Reserved.
+ Copyright(c) Information-technology Promotion Agency, Japan. All rights reserved 2006.
+ Result of Open Source Software Development Activities of Information-technology Promotion Agency, Japan.
+-->
+<library>
+ <class name="linedrawview" extends="drawview">
+ <attribute name="dotLength" type="number" value="4"/>
+ <attribute name="arrowLength" type="number" value="5"/>
+
+ <method name="solidLine" args="x1, y1, x2, y2">
+ beginPath();
+ moveTo(x1, y1);
+ lineTo(x2, y2);
+ closePath();
+ stroke();
+ </method>
+
+ <method name="rectangle" args="x, y, width, height">
+ beginPath();
+ rect(x, y, width, height);
+ closePath();
+ stroke();
+ </method>
+
+ <method name="dottedLine" args="x1, y1, x2, y2">
+ <![CDATA[
+ var steps;
+ var penDown = false;
+
+ var deltaX = x2 - x1;
+ var deltaY = y2 - y1;
+
+ var c = Math.sqrt(deltaX * deltaX + deltaY * deltaY);
+
+ steps = Math.floor(c/dotLength);
+ var stepX = deltaX / steps;
+ var stepY = deltaY / steps;
+
+ beginPath();
+ moveTo(x1, y1);
+
+ while( steps > 0 ) {
+ if( penDown ) {
+ beginPath();
+ x1 += stepX;
+ y1 += stepY;
+ moveTo( x1, y1 );
+ penDown = false;
+ }else {
+ x1 += stepX;
+ y1 += stepY;
+ lineTo( x1, y1 );
+ closePath();
+ stroke();
+ penDown = true;
+ }
+ steps--;
+ }
+ ]]>
+ </method>
+
+ <method name="offsetLine" args="x, y, width, height, fill">
+ var diagonalX = x+width;
+ var diagonalY = y+height;
+ beginPath();
+ moveTo(x, y);
+ lineTo(diagonalX, y);
+ lineTo(diagonalX, diagonalY);
+ lineTo(x, diagonalY);
+ closePath();
+
+ if(fill) {
+ var currentStyle = this.fillStyle;
+ this.fillStyle = this.bgcolor;
+ this.fill();
+ this.fillStyle = currentStyle;
+ }
+ stroke();
+ </method>
+
+ <method name="arrowLine" args="x1, y1, x2, y2, fill, dotted">
+ var rl = Math.atan2(y2-y1, x2-x1) + (20 * Math.PI / 180);
+ var rr = Math.atan2(y2-y1, x2-x1) - (20 * Math.PI / 180);
+
+ var alx = -arrowLength;
+ var aly = arrowLength;
+ var arx = -arrowLength;
+ var ary = -arrowLength;
+
+ var adjusted_alx = alx * Math.cos(rl) - aly * Math.sin(rl);
+ var adjusted_aly = alx * Math.sin(rl) + aly * Math.cos(rl);
+ var adjusted_arx = arx * Math.cos(rr) - ary * Math.sin(rr);
+ var adjusted_ary = arx * Math.sin(rr) + ary * Math.cos(rr);
+
+
+ if(dotted) {
+ dottedLine(x1, y1, x2, y2);
+ }else {
+ beginPath();
+ moveTo(x1, y1);
+ lineTo(x2, y2);
+ closePath();
+ stroke();
+ }
+
+ if(fill) {
+ beginPath();
+ moveTo(x2, y2);
+ lineTo(x2 + adjusted_alx, y2 + adjusted_aly);
+ moveTo(x2 + adjusted_alx, y2 + adjusted_aly);
+ lineTo(x2 + adjusted_arx, y2 + adjusted_ary);
+ closePath();
+ this.fill();
+ }else {
+ beginPath();
+ moveTo(x2, y2);
+ lineTo(x2 + adjusted_alx, y2 + adjusted_aly);
+ moveTo(x2, y2);
+ lineTo(x2 + adjusted_arx, y2 + adjusted_ary);
+ closePath();
+ this.stroke();
+ }
+ </method>
+
+ </class>
+</library>
\ No newline at end of file
1.1.2.1 +134 -0 jboss-profiler/java/webapp/lzx/Attic/executionstatistics.lzx
(In the diff below, changes in quantity of whitespace are not shown.)
Index: executionstatistics.lzx
===================================================================
RCS file: executionstatistics.lzx
diff -N executionstatistics.lzx
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ executionstatistics.lzx 26 Oct 2006 09:02:25 -0000 1.1.2.1
@@ -0,0 +1,134 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!--
+ JBoss, Home of Professional Open Source
+ Copyright 2006, JBoss Inc., and individual contributors as indicated
+ by the @authors tag. See the copyright.txt in the distribution for a
+ full listing of individual contributors.
+
+ This is free software; you can redistribute it and/or modify it
+ under the terms of the GNU Lesser General Public License as
+ published by the Free Software Foundation; either version 2.1 of
+ the License, or (at your option) any later version.
+
+ This software is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ Lesser General Public License for more details.
+
+ You should have received a copy of the GNU Lesser General Public
+ License along with this software; if not, write to the Free
+ Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+-->
+<!--
+
+ @author Takuro Okada (Nomura Research Institute, Ltd.)
+ Copyright 2006 Nomura Research Institute, Ltd. All Rights Reserved.
+ Copyright(c) Information-technology Promotion Agency, Japan. All rights reserved 2006.
+ Result of Open Source Software Development Activities of Information-technology Promotion Agency, Japan.
+-->
+<library>
+
+ <include href="treegrid.lzx"/>
+ <include href="loadingsplash.lzx"/>
+ <include href="notifytextlistitem.lzx"/>
+
+ <dataset name="executionData"
+ request="false" timeout="5000" type="http"
+ src="../ExecutionMetrics"/>
+
+ <class name="executionStatistics" extends="acceptableview"
+ width="${parent.width}" height="${parent.height}">
+
+ <attribute name="inited" type="boolean" value="false"/>
+
+ <basecomponent width="${parent.width}" height="${parent.height}">
+ <simplelayout axis="y" spacing="2"/>
+
+ <view width="${parent.width}">
+ <simplelayout axis="x" spacing="4"/>
+ <text valign="middle" fontsize="11">Category</text>
+ <combobox name="categorySelector"
+ editable="false" fontsize="11" width="400" valign="middle" defaultselection="0">
+ <notifytextlistitem datapath="executionData:/executionMetrics/recordSet"
+ text="$path{'@category'}">
+ <handler name="onclick">
+ parent.changeMainGrid();
+ </handler>
+ </notifytextlistitem>
+ <handler name="ondata">
+ //this.selectItemAt(0);
+ </handler>
+ <method name="changeMainGrid">
+ var selectedText = this.getSelection().text;
+ var path = "executionData:/executionMetrics/recordSet[@category='"+selectedText+"']";
+ parent.parent.parent.refreshMainGlid(path);
+ </method>
+ </combobox>
+ <view resource="icon_reload">
+ <handler name="onclick">
+ canvas.executionData.doRequest();
+ parent.parent.parent.refreshMainGlid();
+ </handler>
+ </view>
+ </view>
+
+ <basecomponent width="${parent.width-18}" height="${parent.height-42}">
+ <treegrid id="executionStatisticsMainGrid"
+ datapath="executionData:/executionMetrics/recordSet[1]"
+ contentdatapath="record"
+ bgcolor="0xffffff"
+ x="${parent.x+1}"
+ width="${parent.width-2}" height="${parent.height-1}"
+ fontsize="10"
+ rowheight="18"
+ showvlines="true" bgcolor0="0xe0e0e0">
+ <gridcolumn width="${parent.width-(6+380)}" sortable="false" resizable="false">
+ Operation Name
+ <hcell y="$once{ parent.height /2 - this.height/2}" datapath="@name" parentGrid="${parent.parent}"/>
+ </gridcolumn>
+ <gridtext width="80" datapath="@invocationCount" textalign="right" editable="false" sortable="false">
+ Count
+ </gridtext>
+ <gridtext width="100" datapath="@maxTime" textalign="right" editable="false" sortable="false">
+ Max Time
+ </gridtext>
+ <gridtext width="100" datapath="@minTime" textalign="right" editable="false" sortable="false">
+ Min Time
+ </gridtext>
+ <gridtext width="100" datapath="@averageTime" textalign="right" editable="false" sortable="false">
+ Average Time
+ </gridtext>
+ </treegrid>
+
+ <method name="_applystyle" args="s">
+ this.setBGColor(s.bordercolor);
+ </method>
+ </basecomponent>
+
+ </basecomponent>
+
+ <loadingsplash name="splash"/>
+
+ <handler name="onaccept">
+ if(!this.inited) {
+ canvas.executionData.doRequest();
+ refreshMainGlid();
+ this.inited = true;
+ new LzDelegate(this, "onDataLoaded", canvas.executionData, "ondata");
+ }
+ </handler>
+
+ <method name="onDataLoaded">
+ this.splash.close();
+ </method>
+
+ <method name="refreshMainGlid" args="path">
+ if(typeof(path)=="undefined") path="executionData:/executionMetrics/recordSet[1]";
+ executionStatisticsMainGrid.datapath.setXPath(path);
+ executionStatisticsMainGrid.oninit.sendEvent();
+ </method>
+
+ </class>
+
+</library>
\ No newline at end of file
1.1.2.1 +60 -0 jboss-profiler/java/webapp/lzx/Attic/floatingmessage.lzx
(In the diff below, changes in quantity of whitespace are not shown.)
Index: floatingmessage.lzx
===================================================================
RCS file: floatingmessage.lzx
diff -N floatingmessage.lzx
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ floatingmessage.lzx 26 Oct 2006 09:02:25 -0000 1.1.2.1
@@ -0,0 +1,60 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!--
+ JBoss, Home of Professional Open Source
+ Copyright 2006, JBoss Inc., and individual contributors as indicated
+ by the @authors tag. See the copyright.txt in the distribution for a
+ full listing of individual contributors.
+
+ This is free software; you can redistribute it and/or modify it
+ under the terms of the GNU Lesser General Public License as
+ published by the Free Software Foundation; either version 2.1 of
+ the License, or (at your option) any later version.
+
+ This software is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ Lesser General Public License for more details.
+
+ You should have received a copy of the GNU Lesser General Public
+ License along with this software; if not, write to the Free
+ Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+-->
+<!--
+
+ @author Takuro Okada (Nomura Research Institute, Ltd.)
+ Copyright 2006 Nomura Research Institute, Ltd. All Rights Reserved.
+ Copyright(c) Information-technology Promotion Agency, Japan. All rights reserved 2006.
+ Result of Open Source Software Development Activities of Information-technology Promotion Agency, Japan.
+-->
+<library>
+
+ <class name="floatingmessage" extends="borderedpane"
+ x="${parent.width/2-this.width/2}" y="${parent.height/2-this.height/2}"
+ width="200" height="20"
+ visible="false">
+
+ <attribute name="message" type="string" setter="this.label.setText(message)"/>
+
+ <text name="label" valign="middle" font="vera" fontsize="12" resize="true"/>
+
+ <animator name="fader" attribute="opacity" motion="easein"
+ from="0" to="1" duration="200" start="false"/>
+
+ <!--- @keywords private -->
+ <method name="_applystyle" args="s">
+ super._applystyle(s);
+ this.label.setColor(s.bordercolor);
+ </method>
+
+ <method name="open">
+ this.setAttribute("visible", true);
+ this.fader.doStart();
+ </method>
+
+ <method name="close">
+ this.setAttribute("visible", false);
+ </method>
+ </class>
+
+</library>
\ No newline at end of file
1.1.2.1 +61 -0 jboss-profiler/java/webapp/lzx/Attic/webapptracediagram.lzx
(In the diff below, changes in quantity of whitespace are not shown.)
Index: webapptracediagram.lzx
===================================================================
RCS file: webapptracediagram.lzx
diff -N webapptracediagram.lzx
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ webapptracediagram.lzx 26 Oct 2006 09:02:25 -0000 1.1.2.1
@@ -0,0 +1,61 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!--
+ JBoss, Home of Professional Open Source
+ Copyright 2006, JBoss Inc., and individual contributors as indicated
+ by the @authors tag. See the copyright.txt in the distribution for a
+ full listing of individual contributors.
+
+ This is free software; you can redistribute it and/or modify it
+ under the terms of the GNU Lesser General Public License as
+ published by the Free Software Foundation; either version 2.1 of
+ the License, or (at your option) any later version.
+
+ This software is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ Lesser General Public License for more details.
+
+ You should have received a copy of the GNU Lesser General Public
+ License along with this software; if not, write to the Free
+ Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+-->
+<!--
+
+ @author Takuro Okada (Nomura Research Institute, Ltd.)
+ Copyright 2006 Nomura Research Institute, Ltd. All Rights Reserved.
+ Copyright(c) Information-technology Promotion Agency, Japan. All rights reserved 2006.
+ Result of Open Source Software Development Activities of Information-technology Promotion Agency, Japan.
+-->
+<library>
+
+ <include href="stacktracediagram.lzx"/>
+
+ <class name="webAppTraceDiagram"
+ width="${parent.width}" height="${parent.height}">
+
+ <event name="onselect"/>
+
+ <simplelayout axis="y" spacing="2"/>
+
+ <basecomponent width="${parent.width-18}" height="${parent.height-42}">
+ <view bgcolor="0xffffff"
+ x="${parent.x+1}" y="${parent.y+1}"
+ width="${parent.width-2}" height="${parent.height-2}"
+ clip="true">
+ <stackTraceDiagram datapath="executionPassageDetailData:/executionPassage/recordSet"
+ width="${parent.width}">
+ <handler name="onselect" args="d">
+ parent.parent.parent.onselect.sendEvent(d);
+ </handler>
+ </stackTraceDiagram>
+ <vscrollbar/>
+ </view>
+ <method name="_applystyle" args="s">
+ this.setBGColor(s.bordercolor);
+ </method>
+ </basecomponent>
+
+ </class>
+
+</library>
\ No newline at end of file
1.1.2.1 +84 -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: httprequeststatistics.lzx
diff -N httprequeststatistics.lzx
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ httprequeststatistics.lzx 26 Oct 2006 09:02:25 -0000 1.1.2.1
@@ -0,0 +1,84 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!--
+ JBoss, Home of Professional Open Source
+ Copyright 2006, JBoss Inc., and individual contributors as indicated
+ by the @authors tag. See the copyright.txt in the distribution for a
+ full listing of individual contributors.
+
+ This is free software; you can redistribute it and/or modify it
+ under the terms of the GNU Lesser General Public License as
+ published by the Free Software Foundation; either version 2.1 of
+ the License, or (at your option) any later version.
+
+ This software is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ Lesser General Public License for more details.
+
+ You should have received a copy of the GNU Lesser General Public
+ License along with this software; if not, write to the Free
+ Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+-->
+<!--
+
+ @author Takuro Okada (Nomura Research Institute, Ltd.)
+ Copyright 2006 Nomura Research Institute, Ltd. All Rights Reserved.
+ Copyright(c) Information-technology Promotion Agency, Japan. All rights reserved 2006.
+ Result of Open Source Software Development Activities of Information-technology Promotion Agency, Japan.
+-->
+<library>
+
+ <include href="treegrid.lzx"/>
+ <include href="loadingsplash.lzx"/>
+ <include href="notifygridtext.lzx"/>
+
+ <class name="httpRequestStatistics" extends="view"
+ width="${parent.width}" height="${parent.height}">
+
+ <event name="onselect"/>
+
+ <basecomponent width="${parent.width-18}" height="${parent.height-42}">
+
+ <simplelayout axis="y" spacing="2"/>
+
+ <grid name="mainGrid"
+ datapath="executionPassageDetailData:/executionPassage/recordSet"
+ contentdatapath="record"
+ bgcolor="0xffffff"
+ x="${parent.x+1}"
+ width="${parent.width-2}" height="${parent.height-1}"
+ fontsize="10"
+ rowheight="18"
+ showvlines="true" bgcolor0="0xe0e0e0"
+ multiselect="false">
+ <notifygridtext width="${parent.width-(6+500)}" datapath="@name"
+ sourceevent="ondblclick"
+ target="${parent.parent.parent}" targetevent="onselect">
+ Request URL
+ </notifygridtext>
+ <notifygridtext width="400" datapath="@args"
+ sourceevent="ondblclick"
+ target="${parent.parent.parent}" targetevent="onselect"
+ exclude="null">
+ Request Parameters
+ </notifygridtext>
+ <notifygridtext width="100" datapath="@value"
+ sourceevent="ondblclick"
+ target="${parent.parent.parent}" targetevent="onselect">
+ Elapsed Time
+ </notifygridtext>
+ </grid>
+ <method name="_applystyle" args="s">
+ this.setBGColor(s.bordercolor);
+ </method>
+
+ </basecomponent>
+
+ <method name="refreshMainGlid" args="path">
+ this.subviews[0].mainGrid.oninit.sendEvent();
+ </method>
+
+ </class>
+
+</library>
\ No newline at end of file
1.1.2.1 +96 -0 jboss-profiler/java/webapp/lzx/Attic/wndmain.lzx
(In the diff below, changes in quantity of whitespace are not shown.)
Index: wndmain.lzx
===================================================================
RCS file: wndmain.lzx
diff -N wndmain.lzx
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ wndmain.lzx 26 Oct 2006 09:02:25 -0000 1.1.2.1
@@ -0,0 +1,96 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!--
+ JBoss, Home of Professional Open Source
+ Copyright 2006, JBoss Inc., and individual contributors as indicated
+ by the @authors tag. See the copyright.txt in the distribution for a
+ full listing of individual contributors.
+
+ This is free software; you can redistribute it and/or modify it
+ under the terms of the GNU Lesser General Public License as
+ published by the Free Software Foundation; either version 2.1 of
+ the License, or (at your option) any later version.
+
+ This software is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ Lesser General Public License for more details.
+
+ You should have received a copy of the GNU Lesser General Public
+ License along with this software; if not, write to the Free
+ Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+-->
+<!--
+
+ @author Takuro Okada (Nomura Research Institute, Ltd.)
+ Copyright 2006 Nomura Research Institute, Ltd. All Rights Reserved.
+ Copyright(c) Information-technology Promotion Agency, Japan. All rights reserved 2006.
+ Result of Open Source Software Development Activities of Information-technology Promotion Agency, Japan.
+-->
+<library>
+
+ <class name="wndmain" extends="view">
+ <simplelayout axis="y"/>
+ <view name="top" width="${parent.width}" height="58">
+ <stableborderlayout axis="x"/>
+ <view resource="wnd_base_tl" width="10"/>
+ <view>
+ <stableborderlayout axis="x"/>
+ <view resource="wnd_base_tc" width="20" stretches="width"/>
+ <view resource="wnd_base_tt" width="185"/>
+ <view resource="wnd_base_tc" width="${parent.width-205}" stretches="width"/>
+ </view>
+ <view resource="wnd_base_tr" width="12"/>
+ </view>
+ <view name="middle" width="${parent.width}" height="0">
+ <stableborderlayout axis="x"/>
+ <view resource="wnd_base_ml" width="2" height="${parent.height}" stretches="height" xoffset="-2"/>
+ <view name="mainContents" xoffset="-10" yoffset="-6">
+ <!--
+ opacity="0" visible="${this.opacity == 0 ? false : true}">
+ <animator name="fadeIn" attribute="opacity" to="1" duration="400" start="false"/>
+ -->
+ </view>
+ <view resource="wnd_base_mr" width="2" height="${parent.height}" stretches="height" xoffset="2"/>
+ <animator name="heightStrech" attribute="height" motion="easeboth"
+ to="${parent.parent.height-100}" duration="1200" start="false">
+ <handler name="onstop">
+ //parent.mainContents.fadeIn.doStart();
+ parent.parent.onloadcontents.sendEvent();
+ </handler>
+ </animator>
+ </view>
+ <view name="bottom" width="${parent.width}" height="38">
+ <stableborderlayout axis="x"/>
+ <view resource="wnd_base_bl" width="10"/>
+ <!--
+ <view resource="wnd_base_bc" stretches="width"/>
+ -->
+ <view>
+ <stableborderlayout axis="x"/>
+ <view resource="wnd_base_bc" width="${parent.width-192}" stretches="width"/>
+ <view resource="wnd_base_bt" width="172" x="${parent.width-192}"/>
+ <view resource="wnd_base_bc" width="20" stretches="width"/>
+ </view>
+ <view resource="wnd_base_br" width="12"/>
+ </view>
+ <event name="onloadcontents"/>
+ <handler name="oninit">
+ // display middle view
+ this.middle.heightStrech.doStart();
+ </handler>
+ </class>
+
+ <!--##### RESOURCES #####-->
+ <resource name="wnd_base_tl" src="./images/wnd_base_tl.png"/>
+ <resource name="wnd_base_tc" src="./images/wnd_base_tc.png"/>
+ <resource name="wnd_base_tr" src="./images/wnd_base_tr.png"/>
+ <resource name="wnd_base_tt" src="./images/wnd_base_tt.png"/>
+ <resource name="wnd_base_ml" src="./images/wnd_base_ml.png"/>
+ <resource name="wnd_base_mr" src="./images/wnd_base_mr.png"/>
+ <resource name="wnd_base_bl" src="./images/wnd_base_bl.png"/>
+ <resource name="wnd_base_bc" src="./images/wnd_base_bc.png"/>
+ <resource name="wnd_base_br" src="./images/wnd_base_br.png"/>
+ <resource name="wnd_base_bt" src="./images/wnd_base_bt.png"/>
+
+</library>
\ No newline at end of file
1.1.2.1 +38 -0 jboss-profiler/java/webapp/lzx/Attic/notifytextlistitem.lzx
(In the diff below, changes in quantity of whitespace are not shown.)
Index: notifytextlistitem.lzx
===================================================================
RCS file: notifytextlistitem.lzx
diff -N notifytextlistitem.lzx
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ notifytextlistitem.lzx 26 Oct 2006 09:02:25 -0000 1.1.2.1
@@ -0,0 +1,38 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!--
+ JBoss, Home of Professional Open Source
+ Copyright 2006, JBoss Inc., and individual contributors as indicated
+ by the @authors tag. See the copyright.txt in the distribution for a
+ full listing of individual contributors.
+
+ This is free software; you can redistribute it and/or modify it
+ under the terms of the GNU Lesser General Public License as
+ published by the Free Software Foundation; either version 2.1 of
+ the License, or (at your option) any later version.
+
+ This software is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ Lesser General Public License for more details.
+
+ You should have received a copy of the GNU Lesser General Public
+ License along with this software; if not, write to the Free
+ Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+-->
+<!--
+
+ @author Takuro Okada (Nomura Research Institute, Ltd.)
+ Copyright 2006 Nomura Research Institute, Ltd. All Rights Reserved.
+ Copyright(c) Information-technology Promotion Agency, Japan. All rights reserved 2006.
+ Result of Open Source Software Development Activities of Information-technology Promotion Agency, Japan.
+-->
+<library>
+
+ <class name="notifytextlistitem" extends="textlistitem">
+ <handler name="ondata">
+ parent.interior.setupText();
+ </handler>
+ </class>
+
+</library>
\ No newline at end of file
1.1.2.1 +54 -0 jboss-profiler/java/webapp/lzx/Attic/loadingsplash.lzx
(In the diff below, changes in quantity of whitespace are not shown.)
Index: loadingsplash.lzx
===================================================================
RCS file: loadingsplash.lzx
diff -N loadingsplash.lzx
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ loadingsplash.lzx 26 Oct 2006 09:02:25 -0000 1.1.2.1
@@ -0,0 +1,54 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!--
+ JBoss, Home of Professional Open Source
+ Copyright 2006, JBoss Inc., and individual contributors as indicated
+ by the @authors tag. See the copyright.txt in the distribution for a
+ full listing of individual contributors.
+
+ This is free software; you can redistribute it and/or modify it
+ under the terms of the GNU Lesser General Public License as
+ published by the Free Software Foundation; either version 2.1 of
+ the License, or (at your option) any later version.
+
+ This software is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ Lesser General Public License for more details.
+
+ You should have received a copy of the GNU Lesser General Public
+ License along with this software; if not, write to the Free
+ Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+-->
+<!--
+
+ @author Takuro Okada (Nomura Research Institute, Ltd.)
+ Copyright 2006 Nomura Research Institute, Ltd. All Rights Reserved.
+ Copyright(c) Information-technology Promotion Agency, Japan. All rights reserved 2006.
+ Result of Open Source Software Development Activities of Information-technology Promotion Agency, Japan.
+-->
+<library>
+
+ <class name="loadingsplash" extends="borderedpane"
+ x="${parent.width/2-this.width/2}" y="${parent.height/2-this.height/2}"
+ width="200" height="20">
+ <text name="label" align="center" valign="middle" font="vera" fontsize="12">Loading
+ <animator name="blinker" attribute="opacity" motion="linear"
+ from="1" to="0" duration="200" repeat="Infinity" start="true"/>
+ </text>
+ <!--- @keywords private -->
+ <method name="_applystyle" args="s">
+ super._applystyle(s);
+ this.label.setColor(s.bordercolor);
+ </method>
+ <method name="close">
+ this.label.blinker.stop();
+ this.setAttribute("visible", false);
+ </method>
+ <method name="restart">
+ this.setAttribute("visible", true);
+ this.label.blinker.doStart();
+ </method>
+ </class>
+
+</library>
\ No newline at end of file
1.1.2.1 +160 -0 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: webapplicationanalyzer.lzx
diff -N webapplicationanalyzer.lzx
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ webapplicationanalyzer.lzx 26 Oct 2006 09:02:25 -0000 1.1.2.1
@@ -0,0 +1,160 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!--
+ JBoss, Home of Professional Open Source
+ Copyright 2006, JBoss Inc., and individual contributors as indicated
+ by the @authors tag. See the copyright.txt in the distribution for a
+ full listing of individual contributors.
+
+ This is free software; you can redistribute it and/or modify it
+ under the terms of the GNU Lesser General Public License as
+ published by the Free Software Foundation; either version 2.1 of
+ the License, or (at your option) any later version.
+
+ This software is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ Lesser General Public License for more details.
+
+ You should have received a copy of the GNU Lesser General Public
+ License along with this software; if not, write to the Free
+ Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+-->
+<!--
+
+ @author Takuro Okada (Nomura Research Institute, Ltd.)
+ Copyright 2006 Nomura Research Institute, Ltd. All Rights Reserved.
+ Copyright(c) Information-technology Promotion Agency, Japan. All rights reserved 2006.
+ Result of Open Source Software Development Activities of Information-technology Promotion Agency, Japan.
+-->
+<library>
+
+ <include href="httprequeststatistics.lzx"/>
+ <include href="webapptracediagram.lzx"/>
+ <include href="dataaccessstatistics.lzx"/>
+
+ <include href="borderedpane.lzx"/>
+
+ <script src="appinfo.js"/>
+
+ <dataset name="executionPassageDetailData"
+ request="false" timeout="5000" type="http"
+ src="../ExecutionPassageDetail"/>
+
+ <class name="webApplicationAnalyzer" extends="acceptableview"
+ width="${parent.width}" height="${parent.height}">
+
+ <attribute name="inited" type="boolean" value="false"/>
+ <attribute name="currentIndex" type="number" value="0"/>
+ <attribute name="currentId" type="string"/>
+
+ <view name="controller" width="${parent.width}">
+ <simplelayout axis="x" spacing="4"/>
+ <text valign="middle" fontsize="11">Category</text>
+ <borderedpane width="200" height="16" padding="2">
+ <text placement="contents" valign="middle" fontsize="11" resize="true"/>
+ </borderedpane>
+ <state name="returnable">
+ <view resource="icon_back">
+ <handler name="onclick">
+ parent.parent.changeView(parent.parent.currentIndex-1, parent.parent.currentId);
+ </handler>
+ </view>
+ </state>
+ <view resource="icon_reload">
+ <handler name="onclick">
+ </handler>
+ </view>
+ <method name="setCategory" args="category">
+ this.subviews[1].innerpane.contents.subviews[0].setText(category);
+ if(parent.currentIndex==0) {
+ returnable.remove();
+ }else if(parent.currentIndex==1) {
+ returnable.apply();
+ }else if(parent.currentIndex==2) {
+ returnable.apply();
+ }
+ </method>
+ </view>
+
+ <state name="httpRequestStatistics">
+ <httpRequestStatistics y="26">
+ <handler name="onselect" args="d">
+ var specifiedId = d.getNodeAttribute("id");
+ parent.changeView(1, specifiedId);
+ </handler>
+ </httpRequestStatistics>
+ <handler name="onapply">
+ this.appliedChildren[0].refreshMainGlid();
+ </handler>
+ </state>
+ <state name="stackTraceDiagram">
+ <webAppTraceDiagram y="26">
+ <handler name="onselect" args="d">
+ var specifiedId = d["id"];
+ var specifiedCaller = d["caller"];
+ parent.changeView(2, specifiedId, specifiedCaller);
+ </handler>
+ </webAppTraceDiagram>
+ </state>
+ <state name="dataAccessStatistics">
+ <dataAccessStatistics y="26"/>
+ <handler name="onapply">
+ this.appliedChildren[0].refreshMainGlid();
+ </handler>
+ </state>
+
+ <loadingsplash name="splash"/>
+
+ <method name="changeView" args="index,id,caller">
+ this.currentIndex = index;
+ this.currentId = id;
+ var categories = null;
+ if(index==0) {
+ categories = "Http Requests";
+ stackTraceDiagram.remove();
+ dataAccessStatistics.remove();
+ }else if(index==1) {
+ categories = "Http Requests, Beans";
+ httpRequestStatistics.remove();
+ dataAccessStatistics.remove();
+ }else if(index==2) {
+ categories = "Data Access";
+ httpRequestStatistics.remove();
+ stackTraceDiagram.remove();
+ }
+ this.splash.restart();
+ controller.setCategory(categories);
+ canvas.executionPassageDetailData.setQueryParams(null);
+ canvas.executionPassageDetailData.setQueryParam(AppInfo.RPK_CATEGORIES, categories);
+ if(index>0) {
+ canvas.executionPassageDetailData.setQueryParam(AppInfo.RPK_THREAD_ID, id);
+ }
+ if(index>1) {
+ canvas.executionPassageDetailData.setQueryParam(AppInfo.RPK_CALLER, caller);
+ }
+ canvas.executionPassageDetailData.doRequest();
+ new LzDelegate(this, "onDataLoaded", canvas.executionPassageDetailData, "ondata");
+ </method>
+
+ <handler name="onaccept">
+ if(!this.inited) {
+ this.inited = true;
+ changeView(0);
+ }
+ </handler>
+
+ <method name="onDataLoaded">
+ if(currentIndex==0) {
+ httpRequestStatistics.apply();
+ }else if(currentIndex==1) {
+ stackTraceDiagram.apply();
+ }else if(currentIndex==2) {
+ dataAccessStatistics.apply();
+ }
+ this.splash.close();
+ </method>
+
+ </class>
+
+</library>
\ No newline at end of file
1.1.2.1 +174 -0 jboss-profiler/java/webapp/lzx/Attic/executionstack.lzx
(In the diff below, changes in quantity of whitespace are not shown.)
Index: executionstack.lzx
===================================================================
RCS file: executionstack.lzx
diff -N executionstack.lzx
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ executionstack.lzx 26 Oct 2006 09:02:25 -0000 1.1.2.1
@@ -0,0 +1,174 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!--
+ JBoss, Home of Professional Open Source
+ Copyright 2006, JBoss Inc., and individual contributors as indicated
+ by the @authors tag. See the copyright.txt in the distribution for a
+ full listing of individual contributors.
+
+ This is free software; you can redistribute it and/or modify it
+ under the terms of the GNU Lesser General Public License as
+ published by the Free Software Foundation; either version 2.1 of
+ the License, or (at your option) any later version.
+
+ This software is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ Lesser General Public License for more details.
+
+ You should have received a copy of the GNU Lesser General Public
+ License along with this software; if not, write to the Free
+ Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+-->
+<!--
+
+ @author Takuro Okada (Nomura Research Institute, Ltd.)
+ Copyright 2006 Nomura Research Institute, Ltd. All Rights Reserved.
+ Copyright(c) Information-technology Promotion Agency, Japan. All rights reserved 2006.
+ Result of Open Source Software Development Activities of Information-technology Promotion Agency, Japan.
+-->
+<library>
+
+ <include href="treegrid.lzx"/>
+ <include href="loadingsplash.lzx"/>
+ <include href="notifytextlistitem.lzx"/>
+
+ <dataset name="executionStackData"
+ request="false" timeout="5000" type="http"
+ src="../ExecutionStack"/>
+
+ <class name="executionStack" extends="acceptableview"
+ width="${parent.width}" height="${parent.height}">
+
+ <attribute name="inited" type="boolean" value="false"/>
+
+ <basecomponent width="${parent.width}" height="${parent.height}">
+ <simplelayout axis="y" spacing="2"/>
+
+ <view width="${parent.width}">
+ <simplelayout axis="y" spacing="2"/>
+ <view>
+ <simplelayout axis="x" spacing="4"/>
+ <text valign="middle" fontsize="11">Category</text>
+ <combobox name="categorySelector"
+ editable="false" fontsize="11" width="400" valign="middle" defaultselection="0"
+ datapath="executionStackData:/executionStack">
+ <dataset name="viewDs"/>
+ <notifytextlistitem name="listItem"
+ datapath="local:parent.viewDs:/recordSet"
+ text="$path{'@category'}">
+ </notifytextlistitem>
+ <handler name="ondata">
+ var sourceDpClone = this.datapath.dupePointer();
+ var viewDp = this.viewDs.getPointer();
+ viewDp.selectChild();
+ if(!sourceDpClone.selectChild()) return;
+ do{
+ var attr = sourceDpClone.getNodeAttributes();
+ var result = viewDp.xpathQuery("recordSet[@category='"+attr["category"]+"']");
+ if(result==null) {
+ viewDp.addNode("recordSet", null, attr);
+ }
+ }while(sourceDpClone.selectNext());
+ </handler>
+ </combobox>
+ </view>
+ <view>
+ <simplelayout axis="x" spacing="4"/>
+ <text valign="middle" fontsize="11">Method</text>
+ <combobox name="operationNameSelector"
+ editable="false" fontsize="11" x="${this.x+9}" width="400" valign="middle" defaultselection="0"
+ datapath="executionStackData:/executionStack">
+ <notifytextlistitem name="listItem"
+ text="$path{'@operationName'}">
+ <handler name="onclick">
+ parent.changeMainGrid();
+ </handler>
+ </notifytextlistitem>
+ <handler name="ondata">
+ this.listItem.datapath.setXPath(this.datapath.xpath+"/recordSet");
+ </handler>
+ <method name="changeMainGrid">
+ <![CDATA[
+ var category = parent.parent.subviews[0].categorySelector.getSelection().text;
+ var operationName = this.getSelection().text;
+ var sourceDpClone = this.datapath.dupePointer();
+ if(!sourceDpClone.selectChild()) return;
+ var index = 0;
+ var found = false;
+ do{
+ index++;
+ var attr = sourceDpClone.getNodeAttributes();
+ if(attr["category"]==category && attr["operationName"]==operationName) {
+ found = true;
+ break;
+ }
+ }while(sourceDpClone.selectNext());
+ var path = "";
+ if(found) {
+ path = "executionStackData:/executionStack/recordSet["+index+"]";
+ }
+ parent.parent.parent.parent.refreshMainGlid(path);
+ ]]>
+ </method>
+ </combobox>
+ <view x="${this.x+9}" resource="icon_reload">
+ <handler name="onclick">
+ canvas.executionStackData.doRequest();
+ parent.parent.parent.parent.refreshMainGlid();
+ </handler>
+ </view>
+ </view>
+ </view>
+
+ <basecomponent width="${parent.width-18}" height="${parent.height-66}">
+ <treegrid id="executionStackMainGrid"
+ datapath="executionStackData:/executionStack/recordSet[1]"
+ contentdatapath="record"
+ bgcolor="0xffffff"
+ x="${parent.x+1}"
+ width="${parent.width-2}" height="${parent.height-1}"
+ fontsize="10"
+ rowheight="18"
+ showvlines="true" bgcolor0="0xe0e0e0">
+ <gridcolumn width="${parent.width-6}" sortable="false" resizable="false">
+ Operation Name
+ <hcell y="$once{ parent.height /2 - this.height/2}"
+ datapath="@name"
+ keyDatapath="@id"
+ parentGrid="${parent.parent}"/>
+ </gridcolumn>
+ </treegrid>
+
+ <!--- @keywords private -->
+ <method name="_applystyle" args="s">
+ this.setBGColor(s.bordercolor);
+ </method>
+ </basecomponent>
+
+ </basecomponent>
+
+ <loadingsplash name="splash"/>
+
+ <handler name="onaccept">
+ if(!this.inited) {
+ canvas.executionStackData.doRequest();
+ refreshMainGlid();
+ this.inited = true;
+ new LzDelegate(this, "onDataLoaded", canvas.executionStackData, "ondata");
+ }
+ </handler>
+
+ <method name="onDataLoaded">
+ this.splash.close();
+ </method>
+
+ <method name="refreshMainGlid" args="path">
+ if(typeof(path)=="undefined") path="executionStackData:/executionStack/recordSet[1]";
+ executionStackMainGrid.datapath.setXPath(path);
+ executionStackMainGrid.oninit.sendEvent();
+ </method>
+
+ </class>
+
+</library>
\ No newline at end of file
1.1.2.1 +210 -0 jboss-profiler/java/webapp/lzx/Attic/executionpassage.lzx
(In the diff below, changes in quantity of whitespace are not shown.)
Index: executionpassage.lzx
===================================================================
RCS file: executionpassage.lzx
diff -N executionpassage.lzx
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ executionpassage.lzx 26 Oct 2006 09:02:25 -0000 1.1.2.1
@@ -0,0 +1,210 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!--
+ JBoss, Home of Professional Open Source
+ Copyright 2006, JBoss Inc., and individual contributors as indicated
+ by the @authors tag. See the copyright.txt in the distribution for a
+ full listing of individual contributors.
+
+ This is free software; you can redistribute it and/or modify it
+ under the terms of the GNU Lesser General Public License as
+ published by the Free Software Foundation; either version 2.1 of
+ the License, or (at your option) any later version.
+
+ This software is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ Lesser General Public License for more details.
+
+ You should have received a copy of the GNU Lesser General Public
+ License along with this software; if not, write to the Free
+ Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+-->
+<!--
+
+ @author Takuro Okada (Nomura Research Institute, Ltd.)
+ Copyright 2006 Nomura Research Institute, Ltd. All Rights Reserved.
+ Copyright(c) Information-technology Promotion Agency, Japan. All rights reserved 2006.
+ Result of Open Source Software Development Activities of Information-technology Promotion Agency, Japan.
+-->
+<library>
+
+ <include href="chartstyle.lzx"/>
+ <include href="charts/addon/zoomarea.lzx"/>
+ <include href="loadingsplash.lzx"/>
+ <include href="notifytextlistitem.lzx"/>
+
+ <dataset name="executionPassageData"
+ request="false" timeout="5000" type="http"
+ src="../ExecutionPassage"/>
+
+ <class name="executionpassage" extends="acceptableview"
+ width="${parent.width-24}" height="${parent.height-80}">
+
+ <attribute name="inited" type="boolean" value="false"/>
+
+ <basecomponent name="mainPane" width="${parent.width}" height="${parent.height}">
+ <simplelayout axis="y" spacing="2"/>
+
+ <view width="${parent.width}">
+ <simplelayout axis="y" spacing="2"/>
+ <view>
+ <simplelayout axis="x" spacing="4"/>
+ <text valign="middle" fontsize="11">Category</text>
+ <combobox name="categorySelector"
+ editable="false" fontsize="11" width="400" valign="middle" defaultselection="0">>
+ <dataset name="viewDs"/>
+ <notifytextlistitem datapath="executionPassageData:/executionPassage/recordSet"
+ text="$path{'@category'}">
+ </notifytextlistitem>
+ </combobox>
+ </view>
+ <view>
+ <simplelayout axis="x" spacing="4"/>
+ <text valign="middle" fontsize="11">Method</text>
+ <combobox name="operationNameSelector"
+ editable="false" fontsize="11" x="${this.x+9}" width="400" valign="middle" defaultselection="0">
+ <notifytextlistitem datapath="executionPassageData:/executionPassage/recordSet"
+ text="$path{'@operationName'}">
+ <handler name="onclick">
+ parent.changeMainGrid();
+ </handler>
+ </notifytextlistitem>
+ <method name="changeMainGrid">
+ <![CDATA[
+ var category = parent.parent.subnodes[1].categorySelector.getSelection().text;
+ var operationName = this.getSelection().text;
+ var sourceDpClone = this.datapath.dupePointer();
+ if(!sourceDpClone.selectChild()) return;
+ var index = 0;
+ var found = false;
+ do{
+ index++;
+ var attr = sourceDpClone.getNodeAttributes();
+ if(attr["category"]==category && attr["operationName"]==operationName) {
+ found = true;
+ break;
+ }
+ }while(sourceDpClone.selectNext());
+ var path = "";
+ if(found) {
+ path = "executionPassageData:/executionPassage/recordSet["+index+"]";
+ }
+ parent.parent.parent.parent.refreshMainGlid(path);
+ ]]>
+ </method>
+ </combobox>
+ <view x="${this.x+9}" resource="icon_reload">
+ <handler name="onclick">
+ canvas.executionPassageData.doRequest();
+ parent.parent.parent.parent.refreshMainGlid();
+ </handler>
+ </view>
+ </view>
+ </view>
+
+ <view height="8"/>
+
+ <!--
+ <button>Reset
+ <handler name="onclick">
+ parent.executionPassageChart.changeBound(parent.executionPassageChart.defaultminx,
+ parent.executionPassageChart.defaultminy,
+ parent.executionPassageChart.defaultmaxx,
+ parent.executionPassageChart.defaultmaxy,
+ 1000, true);
+ </handler>
+ </button>
+ -->
+
+ <state name="dataLoaded">
+ <linechart id="executionPassageChart"
+ width="${parent.width}" height="${parent.height}"
+ topMargin="8" bottomMargin="8" leftMargin="0" rightMargin="0"
+ horizontalGap="40" verticalGap="0"
+ databorderEnabled="false" datalabelEnabled="false" dataPointsEnabled="true" datatipEnabled="true"
+ valuelinesenabled="false" valuepointsenabled="false" valueregionsenabled="false"
+ zoomEnabled="true"
+ verticalGridLines="true" horizontalGridLines="true"
+ datatipColumn="datatip"
+ style="jbpchartstyle"
+ datapath="executionPassageData:/executionPassage/recordSet">
+ <dataseries datapath="${parent.datapath.xpath}">
+ <datacolumn name="x" columndatapath="record/@timestamp" datatype="number"/>
+ <datacolumn name="xlabel" columndatapath="record/@timestamp"/>
+ <datacolumn name="y" columndatapath="record/@value" datatype="number"/>
+ <datacolumn name="datatip" columndatapath="record">
+ <method name="processData" args="d">
+ var date = new Date(new Number(d.getAttr("timestamp")));
+ var dateString = date.getDate()+"/"+(date.getMonth()+1)+"/"+date.getFullYear()+" "+
+ date.getHours()+":"+date.getMinutes()+":"+date.getSeconds()+":"+
+ date.getMilliseconds();
+ return "("+dateString+", "+d.getAttr("value")+")";
+ </method>
+ </datacolumn>
+ </dataseries>
+ <horizontalaxis name="haxis" title="Timestamp [msec]"
+ columnName="x"
+ ticklabelcolumn="xlabel"
+ type="linear"
+ titleLocation="low"
+ fixedRange="false" labelReposEnabled="false"
+ majorTickEnabled="false"
+ minorTickEnabled="true"
+ tickMarksLabelsEnabled="true"
+ datapath="${parent.datapath.xpath}">
+ <handler name="ondata" args="d">
+ var sourceDp = this.datapath.dupePointer();
+ var nodeSize = sourceDp.getNodeCount();
+ sourceDp.selectChild();
+ var begin = new Number(sourceDp.getNodeAttribute("timestamp"));
+ this.setAttribute("minimum", begin);
+ this.setAttribute("maximum", begin+interval*10);
+ </handler>
+ <method name="processData" args="d">
+ return (new Date(new Number(d))).getMilliseconds();
+ </method>
+ </horizontalaxis>
+ <verticalaxis name="vaxis"
+ columnName="y"
+ type="linear"
+ majorTickEnabled="false"
+ minorTickEnabled="false"
+ tickMarksLabelsEnabled="true"
+ datapath="${parent.datapath.xpath}">
+ <handler name="ondata" args="d">
+ this.setAttribute("title", d.getAttr("metricName") + " [nsec]");
+ </handler>
+ </verticalaxis>
+ <zoomarea bgcolor="0xcccccc">
+ <text font="vera" fontsize="9" fgcolor="0x999999">ZOOM</text>
+ </zoomarea>
+ </linechart>
+ </state>
+
+ </basecomponent>
+
+ <loadingsplash name="splash"/>
+
+ <handler name="onaccept">
+ if(!this.inited) {
+ canvas.executionPassageData.doRequest();
+ this.inited = true;
+ new LzDelegate(this, "onDataLoaded", canvas.executionPassageData, "ondata");
+ }
+ </handler>
+
+ <method name="onDataLoaded">
+ this.splash.close();
+ this.mainPane.dataLoaded.apply();
+ </method>
+
+ <method name="refreshMainGlid" args="path">
+ if(typeof(path)=="undefined") path="executionPassageData:/executionPassage/recordSet[1]";
+ executionPassageChart.datapath.setXPath(path);
+ executionPassageChart.init();
+ </method>
+
+ </class>
+
+</library>
\ No newline at end of file
1.1.2.1 +273 -0 jboss-profiler/java/webapp/lzx/Attic/treegrid.lzx
(In the diff below, changes in quantity of whitespace are not shown.)
Index: treegrid.lzx
===================================================================
RCS file: treegrid.lzx
diff -N treegrid.lzx
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ treegrid.lzx 26 Oct 2006 09:02:25 -0000 1.1.2.1
@@ -0,0 +1,273 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!--
+ JBoss, Home of Professional Open Source
+ Copyright 2006, JBoss Inc., and individual contributors as indicated
+ by the @authors tag. See the copyright.txt in the distribution for a
+ full listing of individual contributors.
+
+ This is free software; you can redistribute it and/or modify it
+ under the terms of the GNU Lesser General Public License as
+ published by the Free Software Foundation; either version 2.1 of
+ the License, or (at your option) any later version.
+
+ This software is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ Lesser General Public License for more details.
+
+ You should have received a copy of the GNU Lesser General Public
+ License along with this software; if not, write to the Free
+ Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+-->
+<!--
+ usage:
+ <dataset name="sourceDs">
+ <recordSet>
+ <record depth="0" name="A"/>
+ <record depth="1" name="B"/>
+ <record depth="2" name="C"/>
+ </recordSet>
+ </dataset>
+ <treegrid datapath="sourceDs:/recordSet" contentdatapath="record">
+ <gridcolumn>
+ <hcell datapath="@name" parentGrid="${parent.parent}"/>
+ </gridcolumn>
+ </treegrid>
+
+ @author Takuro Okada (Nomura Research Institute, Ltd.)
+ Copyright 2006 Nomura Research Institute, Ltd. All Rights Reserved.
+ Copyright(c) Information-technology Promotion Agency, Japan. All rights reserved 2006.
+ Result of Open Source Software Development Activities of Information-technology Promotion Agency, Japan.
+-->
+<library>
+
+ <!-- in order to use resource (provisional) -->
+ <include href="lz/tree.lzx" />
+
+ <class name="treegrid" extends="grid">
+
+ <!-- dataset for view -->
+ <dataset name="viewDs"/>
+
+ <!-- datapointer for source data -->
+ <datapointer name="sourceDp">
+ <handler name="ondata">
+ // copy to viewDs from first children of sourceDs when rebind data
+ var sourceDpClone = this.dupePointer();
+ var viewDp = parent.viewDs.getPointer();
+ sourceDpClone.selectChild();
+ viewDp.selectChild();
+ do {
+ var attr = sourceDpClone.getNodeAttributes();
+ if(attr["depth"]=="0") {
+ attr["expanded"] = "false";
+ var nn = new LzDataElement(sourceDpClone.getNodeName(), attr);
+ viewDp.p.appendChild(nn);
+ }
+ }while(sourceDpClone.selectNext());
+ </handler>
+ </datapointer>
+
+ <handler name="oninit">
+ if(this.datapath==null) return;
+
+ var sourceDataPath = this.datapath.xpath;
+ // last node name of specified datapath is fixed to child node name of viewDs
+ var pathAry = sourceDataPath.split('/');
+ var rootNode = pathAry[pathAry.length-1];
+ if(rootNode=="") {
+ rootNode = pathAry[0].substring(0,pathAry[0].length-2);
+ }
+ var offset = 0;
+ if((offset = rootNode.indexOf("["))>0) {
+ rootNode = rootNode.substring(0, offset);
+ }
+ var viewDp = this.viewDs.getPointer();
+ // cleanup viewDs
+ var viewDpClone = viewDp.dupePointer();
+ if(viewDpClone.selectChild()) viewDpClone.deleteNode();
+ // add node to viewDs
+ viewDp.addNode(rootNode, null, null);
+ this.sourceDp.setXPath(sourceDataPath);
+ this.datapath.setXPath("local:viewDs:/"+rootNode);
+ </handler>
+
+ </class>
+
+
+ <!-- hierarchical cell component for treegrid -->
+ <class name="hcell" extends="view">
+ <simplelayout axis="x" spacing="0"/>
+ <view width="8"/>
+ <view name="expander"
+ y="8"
+ width="12" height="24"
+ xoffset="6" yoffset="12"
+ stretches="both"
+ resource="lztree_arrow_rsc"
+ frame="${parent.nodetype=='m' ? 3 : 1}">
+ <animator name="rotator" attribute="rotation"
+ to="${parent.parent.isexpanded ? 0 : 90}"
+ duration="400" motion="easeout" start="false"/>
+ <handler name="onclick">
+ parent._selectNode();
+ </handler>
+ </view>
+ <view name="iconfolder"
+ x="${this.x-2}" y="4"
+ width="12" height="10"
+ stretches="both"
+ visible="${parent.nodetype=='p' ? true : false}"
+ resource="lztree_folder_rsc"
+ frame="${parent.nodetype=='p' ? (parent.isexpanded ? 2 : 1) : 3}" />
+ <view name="iconleaf"
+ x="-12"
+ visible="${parent.nodetype=='p' ? false : true}"
+ resource="${parent.nodetype=='c' ? 'icon_class' : 'icon_method'}"/>
+ <text name="label" width="${parent.width-120}"/>
+
+ <attribute name="isexpanded" type="boolean" value="false"/>
+ <attribute name="nodetype" type="string" value="p"/>
+ <attribute name="parentGrid"/>
+ <attribute name="key" type="string"/>
+ <attribute name="keyDatapath" type="string"/>
+
+ <handler name="ondata" args="d">
+ <![CDATA[
+ // set label
+ this.label.setText(d);
+
+ var viewDp = parentGrid.viewDs.getPointer();
+ var initialized = viewDp.selectChild();
+
+ if(!initialized) return;
+
+ var recordNode = this.parent.parent.contentdatapath;
+
+ var keyAttr = null;
+ if(typeof(keyDatapath)!="undefined" && keyDatapath!=null) {
+ keyAttr = keyDatapath.substring(1, keyDatapath.length);
+ }else {
+ keyAttr = this.datapath.xpath.substring(1, this.datapath.xpath.length);
+ }
+ this.key = this.datapath.getNodeAttribute(keyAttr);
+
+ // set depth
+ var depth = this.datapath.getNodeAttribute("depth");
+ this.setAttribute("x", 2 + (16 * (depth)));
+
+ // set type
+ var type = this.datapath.getNodeAttribute("type");
+ if(type=="c" || type=="m") this.setAttribute("nodetype", type);
+ else this.setAttribute("nodetype", 'p');
+
+ this.expander.setAttribute("rotation", 0);
+ ]]>
+ </handler>
+
+ <method name="_selectNode">
+ <![CDATA[
+ var sourceDpClone = parentGrid.sourceDp.dupePointer();
+
+ var recordNode = this.parent.parent.contentdatapath;
+
+ var viewDpClone = this.datapath.dupePointer();
+
+ // get expanded flag of current node
+ var expanded = this.datapath.getNodeAttribute("expanded");
+ if(expanded=="true") expanded = true;
+ else expanded = false;
+
+ // set expanded
+ this.setAttribute("isexpanded", expanded);
+
+ // set expander.rotator
+ if(expanded) this.expander.setAttribute("rotation", 90);
+ else this.expander.setAttribute("rotation", 0);
+ this.expander.rotator.doStart();
+
+ // get depth of current node
+ var depth = Number(this.datapath.getNodeAttribute("depth"));
+
+ // whether enable to insert new node of viewDs
+ var insertFlg = false;
+ if(viewDpClone.selectNext()) {
+ insertFlg = true;
+ }
+
+ var viewDpClone2 = viewDpClone.dupePointer();
+ viewDpClone.selectParent();
+
+ var keyAttr = null;
+ var keyText = null;
+ if(typeof(keyDatapath)!="undefined" && keyDatapath!=null) {
+ keyAttr = keyDatapath.substring(1, keyDatapath.length);
+ keyText = this.key.substring(0, this.key.indexOf('-'));
+ }else {
+ keyAttr = this.datapath.xpath.substring(1, this.datapath.xpath.length);
+ keyText = this.key;
+ }
+
+
+ // replace to viewDs from sourceDs
+ // # Laszlo does not support RegExp...
+ // # and all of XPath specification...
+ if(!expanded) {
+ var sourceCurrentNodes = sourceDpClone.xpathQuery(recordNode + "[@depth='"+(++depth)+"']");
+
+ if(sourceCurrentNodes!=null && !(sourceCurrentNodes instanceof Array)) {
+ var temp = sourceCurrentNodes;
+ sourceCurrentNodes = new Array();
+ sourceCurrentNodes[0] = temp;
+ }
+
+ for(var i in sourceCurrentNodes) {
+ sourceDpClone.p = sourceCurrentNodes[i];
+ var attr = sourceDpClone.getNodeAttributes();
+ if(attr[keyAttr].indexOf(keyText)==0) {
+ attr["expanded"] = "false";
+ var nn = new LzDataElement(recordNode, attr);
+ if(insertFlg) {
+ viewDpClone.p.insertBefore(nn, viewDpClone2.p);
+ }else {
+ viewDpClone.p.appendChild(nn);
+ }
+ }
+ }
+ }else {
+ var viewCurrentNodes = null;
+ var viewDpClone2 = viewDpClone.dupePointer();
+ while((viewCurrentNodes = viewDpClone2.xpathQuery(recordNode + "[@depth='"+(++depth)+"']")) != null) {
+ if(!(viewCurrentNodes instanceof Array)) {
+ var temp = viewCurrentNodes;
+ viewCurrentNodes = new Array();
+ viewCurrentNodes[0] = temp;
+ }
+
+ for(var i in viewCurrentNodes) {
+ viewDpClone.p = viewCurrentNodes[i];
+ var attr = viewDpClone.getNodeAttributes();
+ viewDpClone.deleteNode();
+ viewDpClone.selectParent();
+ }
+ }
+ }
+
+ // change expanded flag
+ if(!expanded) {
+ this.datapath.setNodeAttribute("expanded", "true");
+ this.setAttribute("isexpanded", true);
+ }else {
+ this.datapath.setNodeAttribute("expanded", "false");
+ this.setAttribute("isexpanded", false);
+ }
+ ]]>
+ </method>
+ </class>
+
+ <!-- ##### RESOURCES ##### -->
+ <resource name="icon_class" src="images/icon_class.png"/>
+ <resource name="icon_method" src="images/icon_method.png"/>
+
+</library>
\ No newline at end of file
1.1.2.1 +75 -0 jboss-profiler/java/webapp/lzx/Attic/chartstyle.lzx
(In the diff below, changes in quantity of whitespace are not shown.)
Index: chartstyle.lzx
===================================================================
RCS file: chartstyle.lzx
diff -N chartstyle.lzx
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ chartstyle.lzx 26 Oct 2006 09:02:25 -0000 1.1.2.1
@@ -0,0 +1,75 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!--
+ JBoss, Home of Professional Open Source
+ Copyright 2006, JBoss Inc., and individual contributors as indicated
+ by the @authors tag. See the copyright.txt in the distribution for a
+ full listing of individual contributors.
+
+ This is free software; you can redistribute it and/or modify it
+ under the terms of the GNU Lesser General Public License as
+ published by the Free Software Foundation; either version 2.1 of
+ the License, or (at your option) any later version.
+
+ This software is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ Lesser General Public License for more details.
+
+ You should have received a copy of the GNU Lesser General Public
+ License along with this software; if not, write to the Free
+ Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+-->
+<!--
+
+ @author Takuro Okada (Nomura Research Institute, Ltd.)
+ Copyright 2006 Nomura Research Institute, Ltd. All Rights Reserved.
+ Copyright(c) Information-technology Promotion Agency, Japan. All rights reserved 2006.
+ Result of Open Source Software Development Activities of Information-technology Promotion Agency, Japan.
+-->
+<library>
+ <include href="resources.lzx"/>
+
+ <chartstyle name="jbpchartstyle">
+
+ <plotstyle name="plot" linesize="1" linecolor="0x666666" fillcolor="0xffffff" opacity="1"/>
+
+ <chartbgstyle name="chartbgstyle">
+ <linestyle name="line" size="0"/>
+ <regionstyle name="region" color="0xffffff" gradient="none" opacity="1"/>
+ </chartbgstyle>
+
+ <axisstyle name="haxisstyle">
+ <labelstyle name="label" font="vera" fontsize="14" fontcolor="0x666666" fontangle="0"/>
+ <tickstyle name="tickmajor" color="0x000000" position="outside" length="0" size="0">
+ <labelstyle name="label" font="vera" fontsize="9" fontcolor="0x666666"/>
+ </tickstyle>
+ <tickstyle name="tickminor" color="0x000000" position="outside" length="0" size="0"/>
+ <linestyle name="axisline" color="0x666666" size="1"/>
+ <linestyle name="gridline" color="0xcccccc" size="1"/>
+ </axisstyle>
+
+ <axisstyle name="vaxisstyle">
+ <labelstyle name="label" font="vera" fontsize="14" fontcolor="0x666666" fontangle="90"/>
+ <tickstyle name="tickmajor" color="0x000000" position="outside" length="0" size="0">
+ <labelstyle name="label" font="vera" fontsize="9" fontcolor="0x666666"/>
+ </tickstyle>
+ <tickstyle name="tickminor" color="0x000000" position="outside" length="0" size="0"/>
+ <linestyle name="axisline" color="0x666666" size="1" />
+ <linestyle name="gridline" color="0xcccccc" size="1"/>
+ </axisstyle>
+
+ <datastylelist name="datastyles">
+ <datastyle>
+ <pointstyle name="point" width="4" height="4" color="0x666666" opacity="1" shape="circle"/>
+ <linestyle name="line" color="0x666666" size="1" opacity="1"/>
+ <regionstyle name="region" color="0x666666" opacity="1" gradient="none"/>
+ <labelstyle name="label" font="vera" fontsize="9" fontcolor="0x666666" linecolor="0xffffff" fillcolor="0xffffff"
+ linesize="0" fontangle="0"/>
+ <labelstyle name="tip" font="vera" fontsize="9" fontcolor="0x666666" linecolor="0xffffff" fillcolor="0xffffff"
+ linesize="0" fontangle="0"/>
+ </datastyle>
+ </datastylelist>
+
+ </chartstyle>
+</library>
\ No newline at end of file
1.1.2.1 +262 -0 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: stacktracediagram.lzx
diff -N stacktracediagram.lzx
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ stacktracediagram.lzx 26 Oct 2006 09:02:25 -0000 1.1.2.1
@@ -0,0 +1,262 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!--
+ JBoss, Home of Professional Open Source
+ Copyright 2006, JBoss Inc., and individual contributors as indicated
+ by the @authors tag. See the copyright.txt in the distribution for a
+ full listing of individual contributors.
+
+ This is free software; you can redistribute it and/or modify it
+ under the terms of the GNU Lesser General Public License as
+ published by the Free Software Foundation; either version 2.1 of
+ the License, or (at your option) any later version.
+
+ This software is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ Lesser General Public License for more details.
+
+ You should have received a copy of the GNU Lesser General Public
+ License along with this software; if not, write to the Free
+ Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+-->
+<!--
+
+ @author Takuro Okada (Nomura Research Institute, Ltd.)
+ Copyright 2006 Nomura Research Institute, Ltd. All Rights Reserved.
+ Copyright(c) Information-technology Promotion Agency, Japan. All rights reserved 2006.
+ Result of Open Source Software Development Activities of Information-technology Promotion Agency, Japan.
+-->
+<library>
+
+ <include href="resources.lzx"/>
+ <include href="linedrawview.lzx"/>
+ <include href="floatingmessage.lzx"/>
+
+ <class name="lane" extends="view"
+ height="${parent.height}">
+
+ <attribute name="objectname" type="string"/>
+ <attribute name="marginright" type="number" value="20"/>
+ <attribute name="activationwidth" type="number" value="6"/>
+ <attribute name="jointpointleft" type="number" value="${x+(width-marginright)/2-activationwidth/2}"/>
+ <attribute name="jointpointright" type="number" value="${x+(width-marginright)/2+activationwidth/2}"/>
+
+ <simplelayout axis="y"/>
+ <view name="objectbox">
+ <stableborderlayout axis="x"/>
+ <view width="7" resource="objectbox_l"/>
+ <view name ="contents" width="${parent.width-16}">
+ <view name="p" resource="objectbox_c" stretches="width" width="${parent.width}"/>
+ <text valign="middle" font="vera" fontsize="12" name="objectname" resize="true"/>
+ </view>
+ <view width="9" resource="objectbox_r"/>
+ </view>
+ <view name="activationarea"
+ width="${parent.width-parent.marginright}" height="${parent.height}">
+ <attribute name="_centerPoint" type="number" value="${this.width/2}"/>
+ <linedrawview name="drawview"
+ width="${parent.width}" height="${parent.height}"
+ bgcolor="0xffffff">
+ <handler name="oninit">
+ this.lineWidth = 1;
+ this.strokeStyle = 0x666666;
+ this.fillStyle = 0x666666;
+ </handler>
+ <method name="strokeLifeline">
+ dottedLine(parent._centerPoint, 0, parent._centerPoint, parent.height);
+ </method>
+ <method name="strokeActivation" args="begin, elapsed">
+ var width = parent.parent.activationwidth;
+ offsetLine(parent._centerPoint-width/2, begin, width, elapsed, true);
+ </method>
+ </linedrawview>
+ </view>
+
+ <handler name="oninit">
+ var separator = null;
+ if(objectname.charAt(0)=='/') separator = '/';
+ else separator = '.';
+ this.objectbox.contents.objectname.setText(objectname.substr(objectname.lastIndexOf(separator)+1));
+
+ this.setWidth(this.objectbox.contents.objectname.width + 16 + this.marginright);
+ 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>
+ </class>
+
+ <class name="notifytext" extends="text" clickable="true">
+ <attribute name="target"/>
+ <attribute name="targetevent" type="string"/>
+ <attribute name="sourceevent" type="string"/>
+ <attribute name="threadid" type="string"/>
+ <attribute name="fullname" type="string"/>
+ <handler name="oninit">
+ if(typeof(this.target)=="undefined" ||
+ typeof(this.targetevent)=="undefined" ||
+ typeof(this.sourceevent)=="undefined") return;
+ this.del = new LzDelegate(this, "_fireEvent");
+ this.del.register(this, this.sourceevent);
+ </handler>
+ <method name="_fireEvent">
+ this.target[targetevent].sendEvent({id:this.threadid, caller:this.fullname});
+ </method>
+ </class>
+
+ <class name="stackTraceDiagram" extends="view">
+
+ <event name="onselect"/>
+
+ <attribute name="_lane" value="lane" when="once"/>
+ <attribute name="baseheight" type="number" value="400"/>
+ <attribute name="baseheightoffset" type="number" value="40"/>
+ <attribute name="selfmessagewidth" type="number" value="20"/>
+ <attribute name="selfmessageheight" type="number" value="10"/>
+ <attribute name="ignorezerovalue" type="boolean" value="true"/>
+ <attribute name="padding" type="number" value="4"/>
+
+ <attribute name="idattr" type="string" value="id"/>
+ <attribute name="timestampattr" type="string" value="timestamp"/>
+ <attribute name="valueattr" type="string" value="value"/>
+ <attribute name="nameattr" type="string" value="name"/>
+ <attribute name="callerattr" type="string" value="caller"/>
+
+ <view name="lanes"
+ x="${this.x+parent.padding}" y="${this.y+parent.padding}"
+ width="${this.width-parent.padding*2}" height="${this.height-parent.padding*2}">
+ <simplelayout axis="x"/>
+ </view>
+
+ <linedrawview name="drawview"
+ x="${this.x+parent.padding+2}" y="${this.y+parent.padding+2}"
+ width="${this.width-(parent.padding+2)*2}" height="${this.height-(parent.padding+2)*2}">
+ <handler name="oninit">
+ this.lineWidth = 1;
+ this.strokeStyle = 0x666666;
+ this.fillStyle = 0x666666;
+ </handler>
+ <method name="strokeMessage" args="beginx, endx, beginy, endy, id, name">
+ <![CDATA[
+ arrowLine(beginx, beginy, endx, beginy, true, false);
+ arrowLine(endx, endy, beginx, endy, false, true);
+ var textBegin = 0;
+ if(beginx<endx) textBegin = beginx;
+ else textBegin = endx;
+ var text = new notifytext(this, {font:"vera", fontsize:9, x:textBegin+8, y:beginy-16,
+ target:parent, targetevent:"onselect", sourceevent:"ondblclick"});
+ text.setText(name.substr(name.lastIndexOf('.')+1));
+ text.threadid = id;
+ text.fullname = name;
+ ]]>
+ </method>
+ <method name="strokeSelfMessage" args="beginx, beginy, height, id, name, offset">
+ <![CDATA[
+ //var endy = beginy;
+ //if(height>=parent.selfmessageheight) endy = beginy + parent.selfmessageheight;
+ var endy = beginy + parent.selfmessageheight;
+ solidLine(beginx, beginy, beginx+parent.selfmessagewidth, beginy);
+ solidLine(beginx+parent.selfmessagewidth, beginy,
+ beginx+parent.selfmessagewidth, endy);
+ arrowLine(beginx+parent.selfmessagewidth, endy,
+ beginx+offset, endy, true, false);
+ var activationHeight = height - parent.selfmessageheight;
+ if(activationHeight<1) activationHeight = 1;
+ rectangle(beginx, endy, offset, activationHeight);
+ var text = new notifytext(this, {font:"vera", fontsize:9, x:beginx+8, y:beginy-16,
+ target:parent, targetevent:"onselect", sourceevent:"ondblclick"});
+ text.setText(name.substr(name.lastIndexOf('.')+1));
+ text.threadid = id;
+ text.fullname = name;
+ ]]>
+ </method>
+ </linedrawview>
+
+ <handler name="ondata" args="d">
+ <![CDATA[
+ var beginTimestamp = d.childNodes[0].getAttr(timestampattr);
+ var totalElapsedTime = d.childNodes[0].getAttr(valueattr);
+ this.baseheight = 1/totalElapsedTime * (1000000000*parent.height);
+ this.height = (totalElapsedTime/1000000000) * this.baseheight + baseheightoffset*2 + this.padding*2 + 40;
+ this.lanes.height = this.height;
+
+ var messages = new Array();
+
+ for(var i=0; i<d.childNodes.length; i++) {
+ var childNode = d.childNodes[i];
+ var id = childNode.getAttr(idattr);
+ var timestamp = childNode.getAttr(timestampattr);
+ var elapsedTime = childNode.getAttr(valueattr);
+ if(ignorezerovalue && elapsedTime==0) continue;
+ var name = childNode.getAttr(nameattr);
+ var className = null;
+ if(name.charAt(0)=='/') {
+ className = name;
+ }else {
+ className = name.substr(0, name.lastIndexOf('.'));
+ }
+ var methodName =name.substr(name.lastIndexOf('.')+1);
+
+ var updateLane = selectLane(className);
+ if(updateLane==null) {
+ updateLane = new _lane(this.lanes, {objectname: className});
+ }
+
+ var beginPixel = ((timestamp-beginTimestamp)/1000) * this.baseheight + baseheightoffset; // msec
+ var elapsedPixel = (elapsedTime/1000000000) * this.baseheight; // nsec
+ var caller = childNode.getAttr(callerattr);
+ var callerIndex = caller.lastIndexOf('.');
+ if(callerIndex>=0) caller = caller.substring(0, caller.lastIndexOf('.'));
+ if(caller==updateLane.objectname) {
+ this.drawview.strokeSelfMessage(updateLane.jointpointright,
+ beginPixel + updateLane.activationarea.y,
+ elapsedPixel,
+ id,
+ name,
+ updateLane.activationwidth);
+ }else {
+ updateLane.setActivation(beginPixel, elapsedPixel);
+ if(i!=0) {
+ messages.push({lane:updateLane, caller:caller, begin:beginPixel, elapsed:elapsedPixel, id:id, method:name});
+ }
+ }
+ }
+ for(var i=0; i<messages.length; i++) {
+ var callerLane = null;
+ if(messages[i]["caller"]=="<servlet>") {
+ callerLane = this.lanes.subviews[0];
+ }else {
+ callerLane = selectLane(messages[i]["caller"]);
+ }
+ this.drawview.strokeMessage(callerLane.jointpointright,
+ messages[i]["lane"].jointpointleft,
+ messages[i]["begin"] + messages[i]["lane"].activationarea.y,
+ messages[i]["begin"] + messages[i]["elapsed"]+
+ messages[i]["lane"].activationarea.y,
+ messages[i]["id"],
+ messages[i]["method"]);
+ }
+ ]]>
+ </handler>
+
+ <method name="selectLane" args="objectName">
+ <![CDATA[
+ var result = null;
+ for(var i=0; i<this.lanes.subviews.length; i++) {
+ if(this.lanes.subviews[i].objectname==objectName) {
+ result = this.lanes.subviews[i];
+ }
+ }
+ return result;
+ ]]>
+ </method>
+
+ </class>
+
+ <resource name="objectbox_l" src="./images/objectbox_l.png"/>
+ <resource name="objectbox_c" src="./images/objectbox_c.png"/>
+ <resource name="objectbox_r" src="./images/objectbox_r.png"/>
+
+</library>
\ No newline at end of file
1.1.2.1 +155 -0 jboss-profiler/java/webapp/lzx/Attic/concurrencystatistics.lzx
(In the diff below, changes in quantity of whitespace are not shown.)
Index: concurrencystatistics.lzx
===================================================================
RCS file: concurrencystatistics.lzx
diff -N concurrencystatistics.lzx
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ concurrencystatistics.lzx 26 Oct 2006 09:02:25 -0000 1.1.2.1
@@ -0,0 +1,155 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!--
+ JBoss, Home of Professional Open Source
+ Copyright 2006, JBoss Inc., and individual contributors as indicated
+ by the @authors tag. See the copyright.txt in the distribution for a
+ full listing of individual contributors.
+
+ This is free software; you can redistribute it and/or modify it
+ under the terms of the GNU Lesser General Public License as
+ published by the Free Software Foundation; either version 2.1 of
+ the License, or (at your option) any later version.
+
+ This software is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ Lesser General Public License for more details.
+
+ You should have received a copy of the GNU Lesser General Public
+ License along with this software; if not, write to the Free
+ Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+-->
+<!--
+
+ @author Takuro Okada (Nomura Research Institute, Ltd.)
+ Copyright 2006 Nomura Research Institute, Ltd. All Rights Reserved.
+ Copyright(c) Information-technology Promotion Agency, Japan. All rights reserved 2006.
+ Result of Open Source Software Development Activities of Information-technology Promotion Agency, Japan.
+-->
+<library>
+
+ <include href="treegrid.lzx"/>
+ <include href="loadingsplash.lzx"/>
+ <include href="notifytextlistitem.lzx"/>
+
+ <dataset name="concurrencyData"
+ request="false" timeout="5000" type="http"
+ src="../ConcurrencyMetrics"/>
+
+ <class name="concurrencyStatistics" extends="acceptableview"
+ width="${parent.width}" height="${parent.height}">
+
+ <attribute name="inited" type="boolean" value="false"/>
+
+ <basecomponent width="${parent.width}" height="${parent.height}">
+ <simplelayout axis="y" spacing="2"/>
+
+ <view width="${parent.width}">
+ <simplelayout axis="x" spacing="4"/>
+ <text valign="middle" fontsize="11">Category</text>
+ <combobox name="categorySelector"
+ editable="false" fontsize="11" width="400" valign="middle" defaultselection="0">
+ <notifytextlistitem datapath="concurrencyData:/concurrencyMetrics/recordSet"
+ text="$path{'@category'}">
+ <handler name="onclick">
+ parent.changeMainGrid();
+ </handler>
+ </notifytextlistitem>
+ <method name="changeMainGrid">
+ var selectedText = this.getSelection().text;
+ var path = "concurrencyData:/concurrencyMetrics/recordSet[@category='"+selectedText+"']";
+ parent.parent.parent.refreshMainGlid(path);
+ </method>
+ </combobox>
+ <view resource="icon_reload">
+ <handler name="onclick">
+ canvas.concurrencyData.doRequest();
+ parent.parent.parent.refreshMainGlid();
+ </handler>
+ </view>
+ </view>
+ <basecomponent width="${parent.width-18}" height="${parent.height-42}">
+ <treegrid id="concurrencyStatisticsMainGrid"
+ datapath="concurrencyData:/concurrencyMetrics/recordSet[1]"
+ contentdatapath="record"
+ bgcolor="0xffffff"
+ x="${parent.x+1}"
+ width="${parent.width-2}" height="${parent.height-1}"
+ fontsize="10"
+ rowheight="18"
+ showvlines="true" bgcolor0="0xe0e0e0">
+ <gridcolumn width="${parent.width-(6+360)}" sortable="false" resizable="false">
+ Name
+ <hcell y="$once{ parent.height /2 - this.height/2}" datapath="@name" parentGrid="${parent.parent}"/>
+ </gridcolumn>
+ <gridtext width="30" datapath="@bcMax" textalign="right" editable="false" sortable="false">
+ BCH
+ </gridtext>
+ <gridtext width="30" datapath="@bcMin" textalign="right" editable="false" sortable="false">
+ BCL
+ </gridtext>
+ <gridtext width="30" datapath="@bcAvg" textalign="right" editable="false" sortable="false">
+ BCA
+ </gridtext>
+ <gridtext width="30" datapath="@btMax" textalign="right" editable="false" sortable="false">
+ BTH
+ </gridtext>
+ <gridtext width="30" datapath="@btMin" textalign="right" editable="false" sortable="false">
+ BTL
+ </gridtext>
+ <gridtext width="30" datapath="@btAvg" textalign="right" editable="false" sortable="false">
+ BTA
+ </gridtext>
+ <gridtext width="30" datapath="@wcMax" textalign="right" editable="false" sortable="false">
+ WCH
+ </gridtext>
+ <gridtext width="30" datapath="@wcMin" textalign="right" editable="false" sortable="false">
+ WCL
+ </gridtext>
+ <gridtext width="30" datapath="@wcAvg" textalign="right" editable="false" sortable="false">
+ WCA
+ </gridtext>
+ <gridtext width="30" datapath="@wtMax" textalign="right" editable="false" sortable="false">
+ WTH
+ </gridtext>
+ <gridtext width="30" datapath="@wtMin" textalign="right" editable="false" sortable="false">
+ WTL
+ </gridtext>
+ <gridtext width="30" datapath="@wtAvg" textalign="right" editable="false" sortable="false">
+ WTA
+ </gridtext>
+ </treegrid>
+
+ <!--- @keywords private -->
+ <method name="_applystyle" args="s">
+ this.setBGColor(s.bordercolor);
+ </method>
+ </basecomponent>
+
+ </basecomponent>
+
+ <loadingsplash name="splash"/>
+
+ <handler name="onaccept">
+ if(!this.inited) {
+ canvas.concurrencyData.doRequest();
+ refreshMainGlid();
+ this.inited = true;
+ new LzDelegate(this, "onDataLoaded", canvas.concurrencyData, "ondata");
+ }
+ </handler>
+
+ <method name="onDataLoaded">
+ this.splash.close();
+ </method>
+
+ <method name="refreshMainGlid" args="path">
+ if(typeof(path)=="undefined") path="concurrencyData:/concurrencyMetrics/recordSet[1]";
+ concurrencyStatisticsMainGrid.datapath.setXPath(path);
+ concurrencyStatisticsMainGrid.oninit.sendEvent();
+ </method>
+
+ </class>
+
+</library>
\ No newline at end of file
1.1.2.1 +203 -0 jboss-profiler/java/webapp/lzx/Attic/settingdialog.lzx
(In the diff below, changes in quantity of whitespace are not shown.)
Index: settingdialog.lzx
===================================================================
RCS file: settingdialog.lzx
diff -N settingdialog.lzx
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ settingdialog.lzx 26 Oct 2006 09:02:25 -0000 1.1.2.1
@@ -0,0 +1,203 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!--
+ JBoss, Home of Professional Open Source
+ Copyright 2006, JBoss Inc., and individual contributors as indicated
+ by the @authors tag. See the copyright.txt in the distribution for a
+ full listing of individual contributors.
+
+ This is free software; you can redistribute it and/or modify it
+ under the terms of the GNU Lesser General Public License as
+ published by the Free Software Foundation; either version 2.1 of
+ the License, or (at your option) any later version.
+
+ This software is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ Lesser General Public License for more details.
+
+ You should have received a copy of the GNU Lesser General Public
+ License along with this software; if not, write to the Free
+ Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+-->
+<!--
+
+ @author Takuro Okada (Nomura Research Institute, Ltd.)
+ Copyright 2006 Nomura Research Institute, Ltd. All Rights Reserved.
+ Copyright(c) Information-technology Promotion Agency, Japan. All rights reserved 2006.
+ Result of Open Source Software Development Activities of Information-technology Promotion Agency, Japan.
+-->
+<library>
+
+ <include href="borderedpane.lzx"/>
+
+ <dataset name="filterDs">
+ <filter/>
+ </dataset>
+
+ <class name="settingdialog" extends="modaldialog" title="Settings">
+ <tabs width="${parent.width-50}" height="${parent.height-100}">
+ <!-- ##### General Tab ##### -->
+ <tabpane text="Genelral" fontsize="10">
+ <simplelayout axis="y" spacing="4"/>
+ <text>Target Server</text>
+ <borderedpane x="${this.x+4}">
+ <view placement="contents">
+ <simplelayout axis="y" spacing="4"/>
+ <view>
+ <simplelayout axis="x" spacing="8"/>
+ <text valign="middle">Host Name</text>
+ <edittext width="200" height="22">localhost</edittext>
+ </view>
+ <view>
+ <simplelayout axis="x" spacing="8"/>
+ <text valign="middle">Port</text>
+ <edittext width="80" height="22" x="${this.x+34}">1099</edittext>
+ </view>
+ </view>
+ </borderedpane>
+ <view height="4"/>
+ <text>Unit of Statistics</text>
+ <borderedpane x="${this.x+4}">
+ <view placement="contents">
+ <simplelayout axis="y" spacing="4"/>
+ <view>
+ <simplelayout axis="x" spacing="8"/>
+ <text valign="middle">Unit of Time</text>
+ <combobox width="130" editable="false">
+ <textlistitem text="second"/>
+ <textlistitem text="milli second"/>
+ <textlistitem text="nano secoud" selected="true"/>
+ </combobox>
+ </view>
+ <view>
+ <simplelayout axis="x" spacing="8"/>
+ <text valign="middle">Unit of Byte</text>
+ <combobox width="130" editable="false" x="${this.x+1}">
+ <textlistitem text="mega byte"/>
+ <textlistitem text="kilo byte"/>
+ <textlistitem text="byte" selected="true"/>
+ </combobox>
+ </view>
+ </view>
+ </borderedpane>
+ </tabpane>
+ <!-- ##### Filter Tab ##### -->
+ <tabpane text="Filter" fontsize="10">
+ <simplelayout axis="y" spacing="4"/>
+ <text>Signature</text>
+ <borderedpane x="${this.x+4}">
+ <borderedpane placement="contents" padding="0">
+ <view placement="contents">
+ <grid name="signatureGrid" datapath="filterDs:/filter" showhlines="true"
+ y="${this.y-12}"
+ width="400" height="160"
+ rowheight="22">
+ <gridtext datapath="@pattern" showheader="false" width="400"/>
+ </grid>
+ <state name="initialhelp">
+ <borderedpane x="${parent.width/2-this.width/2}" y="${parent.height/2-this.height/2}">
+ <text placement="contents">Double click to insert signature.</text>
+ </borderedpane>
+ </state>
+ <handler name="oninit">
+ this.initialhelp.apply();
+ </handler>
+ <handler name="ondblclick">
+ var filterDp = filterDs.getPointer();
+ filterDp.selectChild();
+ filterDp.addNode("signature", null, {pattern:""});
+ this.initialhelp.remove();
+
+ var rowLength = this.signatureGrid.getNumItems();
+ var firstItem = this.signatureGrid.getItemAt(rowLength>0 ? rowLength-1 : rowLength);
+ LzFocus.setFocus(firstItem);
+ </handler>
+ </view>
+ </borderedpane>
+ </borderedpane>
+ <view height="4"/>
+ <text>Profiling Period</text>
+ <borderedpane x="${this.x+4}">
+ <view placement="contents">
+ <simplelayout axis="x"/>
+ <checkbox y="4">
+ <handler name="onclick">
+ var currentDayStr = "";
+ var currentDate = new Date();
+ currentDayStr += currentDate.getFullYear();
+ currentDayStr += "/"+(currentDate.getMonth()+1);
+ currentDayStr += "/"+currentDate.getDate();
+ parent.period.fromDate.setText(currentDayStr);
+ parent.period.toDate.setText(currentDayStr);
+ </handler>
+ </checkbox>
+ <view name="period" placement="contents">
+ <simplelayout axis="x" spacing="2"/>
+ <edittext name="fromDate" width="60" height="22"/>
+ <edittext name="fromTime" width="60" height="22"/>
+ <text fontsize="24" y="${this.y-4}">-</text>
+ <edittext name="toDate" width="60" height="22"/>
+ <edittext name="toTime" width="60" height="22"/>
+ </view>
+ </view>
+ </borderedpane>
+ </tabpane>
+ <!-- ##### Warning Tab ##### -->
+ <tabpane text="Warning" fontsize="10">
+ <simplelayout axis="y" spacing="4"/>
+ <text>Threshold</text>
+ <borderedpane x="${this.x+4}">
+ <view placement="contents">
+ <simplelayout axis="y" spacing="4"/>
+ <view>
+ <simplelayout axis="x" spacing="8"/>
+ <checkbox text="Execution Time" valign="middle"/>
+ <edittext width="60" height="22" x="${this.x+3}"/>
+ <combobox width="130" editable="false">
+ <textlistitem text="second"/>
+ <textlistitem text="milli second"/>
+ <textlistitem text="nano secoud" selected="true"/>
+ </combobox>
+ </view>
+ <view>
+ <simplelayout axis="x" spacing="8"/>
+ <checkbox text="Coverage Count" valign="middle"/>
+ <edittext width="60" height="22"/>
+ </view>
+ <view>
+ <simplelayout axis="x" spacing="8"/>
+ <checkbox text="Memory Usage" valign="middle"/>
+ <edittext width="60" height="22" x="${this.x+6}"/>
+ <combobox width="130" editable="false">
+ <textlistitem text="mega byte"/>
+ <textlistitem text="kilo byte"/>
+ <textlistitem text="byte" selected="true"/>
+ </combobox>
+ </view>
+ </view>
+ </borderedpane>
+ <view height="4"/>
+ <text>Style</text>
+ <borderedpane x="${this.x+4}">
+ <view placement="contents">
+ <simplelayout axis="x" spacing="4"/>
+ <text valign="middle">Warning Color</text>
+ <combobox width="80" editable="false">
+ <textlistitem text="red" selected="true"/>
+ <textlistitem text="green"/>
+ <textlistitem text="blue"/>
+ </combobox>
+ </view>
+ </borderedpane>
+ </tabpane>
+ </tabs>
+ <button y="${parent.height-90}" align="center">Profile
+ <handler name="onclick">
+ parent.close();
+ parent.parent.mainContents.profilable.apply();
+ </handler>
+ </button>
+ </class>
+
+</library>
1.1.2.1 +48 -0 jboss-profiler/java/webapp/lzx/Attic/acceptableview.lzx
(In the diff below, changes in quantity of whitespace are not shown.)
Index: acceptableview.lzx
===================================================================
RCS file: acceptableview.lzx
diff -N acceptableview.lzx
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ acceptableview.lzx 26 Oct 2006 09:02:25 -0000 1.1.2.1
@@ -0,0 +1,48 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!--
+ JBoss, Home of Professional Open Source
+ Copyright 2006, JBoss Inc., and individual contributors as indicated
+ by the @authors tag. See the copyright.txt in the distribution for a
+ full listing of individual contributors.
+
+ This is free software; you can redistribute it and/or modify it
+ under the terms of the GNU Lesser General Public License as
+ published by the Free Software Foundation; either version 2.1 of
+ the License, or (at your option) any later version.
+
+ This software is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ Lesser General Public License for more details.
+
+ You should have received a copy of the GNU Lesser General Public
+ License along with this software; if not, write to the Free
+ Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+-->
+<!--
+
+ @author Takuro Okada (Nomura Research Institute, Ltd.)
+ Copyright 2006 Nomura Research Institute, Ltd. All Rights Reserved.
+ Copyright(c) Information-technology Promotion Agency, Japan. All rights reserved 2006.
+ Result of Open Source Software Development Activities of Information-technology Promotion Agency, Japan.
+-->
+<library>
+
+ <class name="notifytabsbar" extends="tabsbar">
+ <method name="select" args="item">
+ <![CDATA[
+ super.select(item);
+ var subnodes = item.tabpane.content.subnodes;
+ for(var i=0; i<subnodes.length; i++) {
+ if(typeof(subnodes[i].onaccept)!="undefined") subnodes[i].onaccept.sendEvent();
+ }
+ ]]>
+ </method>
+ </class>
+
+ <class name="acceptableview" extends="basecomponent">
+ <event name="onaccept"/>
+ </class>
+
+</library>
\ No newline at end of file
1.1.2.1 +129 -0 jboss-profiler/java/webapp/lzx/Attic/memorystatistics.lzx
(In the diff below, changes in quantity of whitespace are not shown.)
Index: memorystatistics.lzx
===================================================================
RCS file: memorystatistics.lzx
diff -N memorystatistics.lzx
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ memorystatistics.lzx 26 Oct 2006 09:02:25 -0000 1.1.2.1
@@ -0,0 +1,129 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!--
+ JBoss, Home of Professional Open Source
+ Copyright 2006, JBoss Inc., and individual contributors as indicated
+ by the @authors tag. See the copyright.txt in the distribution for a
+ full listing of individual contributors.
+
+ This is free software; you can redistribute it and/or modify it
+ under the terms of the GNU Lesser General Public License as
+ published by the Free Software Foundation; either version 2.1 of
+ the License, or (at your option) any later version.
+
+ This software is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ Lesser General Public License for more details.
+
+ You should have received a copy of the GNU Lesser General Public
+ License along with this software; if not, write to the Free
+ Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+-->
+<!--
+
+ @author Takuro Okada (Nomura Research Institute, Ltd.)
+ Copyright 2006 Nomura Research Institute, Ltd. All Rights Reserved.
+ Copyright(c) Information-technology Promotion Agency, Japan. All rights reserved 2006.
+ Result of Open Source Software Development Activities of Information-technology Promotion Agency, Japan.
+-->
+<library>
+
+ <include href="treegrid.lzx"/>
+ <include href="loadingsplash.lzx"/>
+ <include href="notifytextlistitem.lzx"/>
+
+ <dataset name="memoryData"
+ request="false" timeout="5000" type="http"
+ src="../MemoryMetrics"/>
+
+ <class name="memoryStatistics" extends="acceptableview"
+ width="${parent.width}" height="${parent.height}">
+
+ <attribute name="inited" type="boolean" value="false"/>
+
+ <basecomponent width="${parent.width}" height="${parent.height}">
+ <simplelayout axis="y" spacing="2"/>
+
+ <view width="${parent.width}">
+ <simplelayout axis="x" spacing="4"/>
+ <text valign="middle" fontsize="11">Category</text>
+ <combobox name="categorySelector"
+ editable="false" fontsize="11" width="400" valign="middle" defaultselection="0">
+ <notifytextlistitem datapath="memoryData:/memoryMetrics/recordSet"
+ text="$path{'@category'}">
+ <handler name="onclick">
+ parent.changeMainGrid();
+ </handler>
+ </notifytextlistitem>
+ <method name="changeMainGrid">
+ var selectedText = this.getSelection().text;
+ var path = "memoryData:/memoryMetrics/recordSet[@category='"+selectedText+"']";
+ parent.parent.parent.refreshMainGlid(path);
+ </method>
+ </combobox>
+ <view resource="icon_reload">
+ <handler name="onclick">
+ canvas.memoryData.doRequest();
+ parent.parent.parent.refreshMainGlid();
+ </handler>
+ </view>
+ </view>
+
+ <basecomponent width="${parent.width-18}" height="${parent.height-42}">
+ <treegrid id="memoryStatisticsMainGrid"
+ datapath="memoryData:/memoryMetrics/recordSet[1]"
+ contentdatapath="record"
+ bgcolor="0xffffff"
+ x="${parent.x+1}"
+ width="${parent.width-2}" height="${parent.height-1}"
+ fontsize="10"
+ rowheight="18"
+ showvlines="true" bgcolor0="0xe0e0e0">
+ <gridcolumn width="${parent.width-(6+360)}" sortable="false" resizable="false">
+ Operation Name
+ <hcell y="$once{ parent.height /2 - this.height/2}" datapath="@name" parentGrid="${parent.parent}"/>
+ </gridcolumn>
+ <gridtext width="120" datapath="@max" textalign="right" editable="false" sortable="false">
+ Max
+ </gridtext>
+ <gridtext width="120" datapath="@min" textalign="right" editable="false" sortable="false">
+ Min
+ </gridtext>
+ <gridtext width="120" datapath="@avg" textalign="right" editable="false" sortable="false">
+ Average
+ </gridtext>
+ </treegrid>
+
+ <!--- @keywords private -->
+ <method name="_applystyle" args="s">
+ this.setBGColor(s.bordercolor);
+ </method>
+ </basecomponent>
+
+ </basecomponent>
+
+ <loadingsplash name="splash"/>
+
+ <handler name="onaccept">
+ if(!this.inited) {
+ canvas.memoryData.doRequest();
+ refreshMainGlid();
+ this.inited = true;
+ new LzDelegate(this, "onDataLoaded", canvas.memoryData, "ondata");
+ }
+ </handler>
+
+ <method name="onDataLoaded">
+ this.splash.close();
+ </method>
+
+ <method name="refreshMainGlid" args="path">
+ if(typeof(path)=="undefined") path="memoryData:/memoryMetrics/recordSet[1]";
+ memoryStatisticsMainGrid.datapath.setXPath(path);
+ memoryStatisticsMainGrid.oninit.sendEvent();
+ </method>
+
+ </class>
+
+</library>
\ No newline at end of file
1.1.2.1 +38 -0 jboss-profiler/java/webapp/lzx/Attic/resources.lzx
(In the diff below, changes in quantity of whitespace are not shown.)
Index: resources.lzx
===================================================================
RCS file: resources.lzx
diff -N resources.lzx
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ resources.lzx 26 Oct 2006 09:02:25 -0000 1.1.2.1
@@ -0,0 +1,38 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!--
+ JBoss, Home of Professional Open Source
+ Copyright 2006, JBoss Inc., and individual contributors as indicated
+ by the @authors tag. See the copyright.txt in the distribution for a
+ full listing of individual contributors.
+
+ This is free software; you can redistribute it and/or modify it
+ under the terms of the GNU Lesser General Public License as
+ published by the Free Software Foundation; either version 2.1 of
+ the License, or (at your option) any later version.
+
+ This software is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ Lesser General Public License for more details.
+
+ You should have received a copy of the GNU Lesser General Public
+ License along with this software; if not, write to the Free
+ Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+-->
+<!--
+
+ @author Takuro Okada (Nomura Research Institute, Ltd.)
+ Copyright 2006 Nomura Research Institute, Ltd. All Rights Reserved.
+ Copyright(c) Information-technology Promotion Agency, Japan. All rights reserved 2006.
+ Result of Open Source Software Development Activities of Information-technology Promotion Agency, Japan.
+-->
+<library>
+
+ <font src="bitstream-vera-1.10/vera.ttf" name="vera"/>
+ <font src="bitstream-vera-1.10/verabd.ttf" name="verabd"/>
+
+ <resource name="icon_reload" src="images/icon_reload.png"/>
+ <resource name="icon_back" src="images/icon_back.png"/>
+
+</library>
\ No newline at end of file
1.1.2.1 +84 -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: dataaccessstatistics.lzx
diff -N dataaccessstatistics.lzx
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ dataaccessstatistics.lzx 26 Oct 2006 09:02:25 -0000 1.1.2.1
@@ -0,0 +1,84 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!--
+ JBoss, Home of Professional Open Source
+ Copyright 2006, JBoss Inc., and individual contributors as indicated
+ by the @authors tag. See the copyright.txt in the distribution for a
+ full listing of individual contributors.
+
+ This is free software; you can redistribute it and/or modify it
+ under the terms of the GNU Lesser General Public License as
+ published by the Free Software Foundation; either version 2.1 of
+ the License, or (at your option) any later version.
+
+ This software is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ Lesser General Public License for more details.
+
+ You should have received a copy of the GNU Lesser General Public
+ License along with this software; if not, write to the Free
+ Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+-->
+<!--
+
+ @author Takuro Okada (Nomura Research Institute, Ltd.)
+ Copyright 2006 Nomura Research Institute, Ltd. All Rights Reserved.
+ Copyright(c) Information-technology Promotion Agency, Japan. All rights reserved 2006.
+ Result of Open Source Software Development Activities of Information-technology Promotion Agency, Japan.
+-->
+<library>
+
+ <include href="treegrid.lzx"/>
+ <include href="loadingsplash.lzx"/>
+ <include href="notifygridtext.lzx"/>
+
+ <class name="dataAccessStatistics" extends="view"
+ width="${parent.width}" height="${parent.height}">
+
+ <event name="onselect"/>
+
+ <basecomponent width="${parent.width-18}" height="${parent.height-42}">
+
+ <simplelayout axis="y" spacing="2"/>
+
+ <grid name="mainGrid"
+ datapath="executionPassageDetailData:/executionPassage/recordSet"
+ contentdatapath="record"
+ bgcolor="0xffffff"
+ x="${parent.x+1}"
+ width="${parent.width-2}" height="${parent.height-1}"
+ fontsize="10"
+ rowheight="18"
+ showvlines="true" bgcolor0="0xe0e0e0"
+ multiselect="false">
+ <notifygridtext width="${parent.width-(6+500)}" datapath="@name"
+ sourceevent="ondblclick"
+ target="${parent.parent.parent}" targetevent="onselect">
+ Operation Name
+ </notifygridtext>
+ <notifygridtext width="400" datapath="@args"
+ sourceevent="ondblclick"
+ target="${parent.parent.parent}" targetevent="onselect"
+ exclude="null">
+ SQL Query
+ </notifygridtext>
+ <notifygridtext width="100" datapath="@value"
+ sourceevent="ondblclick"
+ target="${parent.parent.parent}" targetevent="onselect">
+ Elapsed Time
+ </notifygridtext>
+ </grid>
+ <method name="_applystyle" args="s">
+ this.setBGColor(s.bordercolor);
+ </method>
+
+ </basecomponent>
+
+ <method name="refreshMainGlid" args="path">
+ this.subviews[0].mainGrid.oninit.sendEvent();
+ </method>
+
+ </class>
+
+</library>
\ No newline at end of file
1.1.2.1 +56 -0 jboss-profiler/java/webapp/lzx/Attic/style.lzx
(In the diff below, changes in quantity of whitespace are not shown.)
Index: style.lzx
===================================================================
RCS file: style.lzx
diff -N style.lzx
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ style.lzx 26 Oct 2006 09:02:25 -0000 1.1.2.1
@@ -0,0 +1,56 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!--
+ JBoss, Home of Professional Open Source
+ Copyright 2006, JBoss Inc., and individual contributors as indicated
+ by the @authors tag. See the copyright.txt in the distribution for a
+ full listing of individual contributors.
+
+ This is free software; you can redistribute it and/or modify it
+ under the terms of the GNU Lesser General Public License as
+ published by the Free Software Foundation; either version 2.1 of
+ the License, or (at your option) any later version.
+
+ This software is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ Lesser General Public License for more details.
+
+ You should have received a copy of the GNU Lesser General Public
+ License along with this software; if not, write to the Free
+ Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+-->
+<!--
+
+ @author Takuro Okada (Nomura Research Institute, Ltd.)
+ Copyright 2006 Nomura Research Institute, Ltd. All Rights Reserved.
+ Copyright(c) Information-technology Promotion Agency, Japan. All rights reserved 2006.
+ Result of Open Source Software Development Activities of Information-technology Promotion Agency, Japan.
+-->
+<library>
+
+ <include href="charts/styles/chartstyle.lzx"/>
+
+ <class name="jbpstyle" extends="style"
+
+ canvascolor="0xffffff"
+
+ basecolor="0xffffff"
+
+ bgcolor="0xffffff"
+ textcolor="0x666666"
+
+ textdisabledcolor="0x999999"
+
+ hilitecolor="0xcccccc"
+ texthilitecolor="0x666666"
+
+ selectedcolor="0xb8cce6"
+ textselectedcolor="0x666666"
+
+ textfieldcolor="0xffffff"
+
+ bordercolor="0x999999"
+ bordersize="1"/>
+
+</library>
\ No newline at end of file
More information about the jboss-cvs-commits
mailing list