[Laszlo-checkins] r8820 - in openlaszlo/trunk: docs/src/nav lps/components/charts/addon lps/components/charts/barchart lps/components/charts/columnchart lps/components/charts/common lps/components/charts/linechart lps/components/charts/piechart lps/components/charts/styles

dda@openlaszlo.org dda at openlaszlo.org
Tue Apr 22 06:44:31 PDT 2008


Author: dda
Date: 2008-04-22 06:44:17 -0700 (Tue, 22 Apr 2008)
New Revision: 8820

Modified:
   openlaszlo/trunk/docs/src/nav/toc.xml
   openlaszlo/trunk/lps/components/charts/addon/zoomarea.lzx
   openlaszlo/trunk/lps/components/charts/barchart/barchart.lzx
   openlaszlo/trunk/lps/components/charts/columnchart/columnchart.lzx
   openlaszlo/trunk/lps/components/charts/common/dataseries.lzx
   openlaszlo/trunk/lps/components/charts/common/valueline.lzx
   openlaszlo/trunk/lps/components/charts/linechart/linechart.lzx
   openlaszlo/trunk/lps/components/charts/piechart/piechart.lzx
   openlaszlo/trunk/lps/components/charts/piechart/piechartplotarea.lzx
   openlaszlo/trunk/lps/components/charts/piechart/piepiece.lzx
   openlaszlo/trunk/lps/components/charts/styles/chartstyle.lzx
Log:
Change 20080422-dda-K by dda at lester.local on 2008-04-22 09:34:33 EDT
    in /Users/dda/laszlo/src/svn/openlaszlo/trunk-doc2
    for http://svn.openlaszlo.org/openlaszlo/trunk

Summary: doc: Charts and Graphs cleanup

New Features:

Bugs Fixed: LPP-5823

Technical Reviewer: (pending)
QA Reviewer: (pending)
Doc Reviewer: liorio (pending)

Documentation:

Release Notes:

Details:
  - All pages should have the 'Warning: Beta quality' marker.

  - Fixed alphabetical ordering in table of contents

  - In piepiece, fixed compile errors due to 'arc' attribute shadowing a superclass'
    method name 'arc'.  Attribute changed to 'arcvalue'.

Tests:
  - Examined output after building via 'cd docs/src; ant reference'



Modified: openlaszlo/trunk/docs/src/nav/toc.xml
===================================================================
--- openlaszlo/trunk/docs/src/nav/toc.xml	2008-04-22 13:44:00 UTC (rev 8819)
+++ openlaszlo/trunk/docs/src/nav/toc.xml	2008-04-22 13:44:17 UTC (rev 8820)
@@ -223,13 +223,13 @@
     </category>
     
     <category title="Charts and Graphs">
+      <item title="axis" href="lz.axis.html"/>
       <item title="axisstyle" href="lz.axisstyle.html"/>
       <item title="barchart" href="lz.barchart.html"/>
       <item title="basestyle" href="lz.basestyle.html"/>
       <item title="chart" href="lz.chart.html"/>
       <item title="chartbgstyle" href="lz.chartbgstyle.html"/>
       <item title="chartstyle" href="lz.chartstyle.html"/>
-      <item title="axis" href="lz.axis.html"/>
       <item title="columnchart" href="lz.columnchart.html"/>
       <item title="datacolumn" href="lz.datacolumn.html"/>
       <item title="datamarker" href="lz.datamarker.html"/>

Modified: openlaszlo/trunk/lps/components/charts/addon/zoomarea.lzx
===================================================================
--- openlaszlo/trunk/lps/components/charts/addon/zoomarea.lzx	2008-04-22 13:44:00 UTC (rev 8819)
+++ openlaszlo/trunk/lps/components/charts/addon/zoomarea.lzx	2008-04-22 13:44:17 UTC (rev 8820)
@@ -155,6 +155,11 @@
     
     <!--- chart zoom area -->
     <class name="zoomarea" extends="basezoomarea" bgcolor="blue" opacity="0.4">
+        <doc>
+          <text>
+            <warning>This component is of Beta quality and is subject to change.</warning>
+          </text>
+        </doc>
         <!--- change the chart to the virtual boundary 
             @param Number minx: min x of the zooomarea
             @param Number miny: min y of the zooomarea

Modified: openlaszlo/trunk/lps/components/charts/barchart/barchart.lzx
===================================================================
--- openlaszlo/trunk/lps/components/charts/barchart/barchart.lzx	2008-04-22 13:44:00 UTC (rev 8819)
+++ openlaszlo/trunk/lps/components/charts/barchart/barchart.lzx	2008-04-22 13:44:17 UTC (rev 8820)
@@ -105,6 +105,7 @@
                 </text>
             </tag>
             <text>
+                <warning>This component is of Beta quality and is subject to change.</warning>
                 <p>The following is a barchart that uses series data.</p>
 
                 <example title="Simple barchart">

Modified: openlaszlo/trunk/lps/components/charts/columnchart/columnchart.lzx
===================================================================
--- openlaszlo/trunk/lps/components/charts/columnchart/columnchart.lzx	2008-04-22 13:44:00 UTC (rev 8819)
+++ openlaszlo/trunk/lps/components/charts/columnchart/columnchart.lzx	2008-04-22 13:44:17 UTC (rev 8820)
@@ -102,6 +102,7 @@
                 </text>
             </tag>
             <text>
+                <warning>This component is of Beta quality and is subject to change.</warning>
                 <p>The following is a columnchart that uses series data.</p>
 
                 <example title="Simple columnchart">

Modified: openlaszlo/trunk/lps/components/charts/common/dataseries.lzx
===================================================================
--- openlaszlo/trunk/lps/components/charts/common/dataseries.lzx	2008-04-22 13:44:00 UTC (rev 8819)
+++ openlaszlo/trunk/lps/components/charts/common/dataseries.lzx	2008-04-22 13:44:17 UTC (rev 8820)
@@ -193,6 +193,11 @@
         @access public
     -->               
     <class name="dataseries">
+        <doc>
+          <text>
+            <warning>This component is of Beta quality and is subject to change.</warning>
+          </text>
+        </doc>
         <!--- enable the dataseries -->       
         <attribute name="enabled" value="true"/>
         <!--- label of the dataseries -->

Modified: openlaszlo/trunk/lps/components/charts/common/valueline.lzx
===================================================================
--- openlaszlo/trunk/lps/components/charts/common/valueline.lzx	2008-04-22 13:44:00 UTC (rev 8819)
+++ openlaszlo/trunk/lps/components/charts/common/valueline.lzx	2008-04-22 13:44:17 UTC (rev 8820)
@@ -12,6 +12,11 @@
        @access public
        -->
     <class name="valueline" extends="drawview">       
+        <doc>
+          <text>
+            <warning>This component is of Beta quality and is subject to change.</warning>
+          </text>
+        </doc>
         <!--- the value will be draw -->
         <attribute name="data" type="string" value=""/>
         <!--- the label will be display next to the line -->

Modified: openlaszlo/trunk/lps/components/charts/linechart/linechart.lzx
===================================================================
--- openlaszlo/trunk/lps/components/charts/linechart/linechart.lzx	2008-04-22 13:44:00 UTC (rev 8819)
+++ openlaszlo/trunk/lps/components/charts/linechart/linechart.lzx	2008-04-22 13:44:17 UTC (rev 8820)
@@ -99,6 +99,7 @@
                 </text>
             </tag>
             <text>
+                <warning>This component is of Beta quality and is subject to change.</warning>
                 <p>The following is a linechart that uses series data.</p>
 
                 <example title="Simple linechart">

Modified: openlaszlo/trunk/lps/components/charts/piechart/piechart.lzx
===================================================================
--- openlaszlo/trunk/lps/components/charts/piechart/piechart.lzx	2008-04-22 13:44:00 UTC (rev 8819)
+++ openlaszlo/trunk/lps/components/charts/piechart/piechart.lzx	2008-04-22 13:44:17 UTC (rev 8820)
@@ -108,6 +108,7 @@
                 </text>
             </tag>
             <text>
+                <warning>This component is of Beta quality and is subject to change.</warning>
                 <p>The following is a piechart that uses series data.</p>
 
                 <example title="Simple piechart">

Modified: openlaszlo/trunk/lps/components/charts/piechart/piechartplotarea.lzx
===================================================================
--- openlaszlo/trunk/lps/components/charts/piechart/piechartplotarea.lzx	2008-04-22 13:44:00 UTC (rev 8819)
+++ openlaszlo/trunk/lps/components/charts/piechart/piechartplotarea.lzx	2008-04-22 13:44:17 UTC (rev 8820)
@@ -13,6 +13,11 @@
          @access public
          -->
         <class name="piechartplotarea"   extends="drawview">
+        <doc>
+          <text>
+            <warning>This component is of Beta quality and is subject to change.</warning>
+          </text>
+        </doc>
         <!--- Array that holds the attributes regarding the dimension and position
               of the pie slices
               TODO::Change type - html
@@ -84,7 +89,7 @@
                     v.setAttribute( "x", lx );
                     v.setAttribute( "y", ly );
                     v.setAttribute( "angle", angle );
-                    v.setAttribute( "arc", arc );
+                    v.setAttribute( "arcvalue", arc );
                     v.setAttribute( "radius", radius );
                       
                     v.setAttribute( "style", parent.style.getDataStyle(i));

Modified: openlaszlo/trunk/lps/components/charts/piechart/piepiece.lzx
===================================================================
--- openlaszlo/trunk/lps/components/charts/piechart/piepiece.lzx	2008-04-22 13:44:00 UTC (rev 8819)
+++ openlaszlo/trunk/lps/components/charts/piechart/piepiece.lzx	2008-04-22 13:44:17 UTC (rev 8820)
@@ -13,7 +13,7 @@
               default = 0 -->
         <!-- attribute name="startAngle" type="number" value="0"/-->
         <!--- The segment of the circle that defines the current pie slice -->
-        <attribute name="arc" type="number" value="10"/>
+        <attribute name="arcvalue" type="number" value="10"/>
         <!--- The y radius of the slice. default = null -->
         <attribute name="yRadius" type="number" value="${null}"/>
         <!--- The strokestyle object that is applied to the pie slice border -->
@@ -154,7 +154,7 @@
         <![CDATA[
             this.clear();
             this.beginPath();                                 
-            this.renderCircleSegment(0, 0, this.angle, this.arc, this.radius, null);
+            this.renderCircleSegment(0, 0, this.angle, this.arcvalue, this.radius, null);
             this.closePath();
             
             this.fillStyle = this.style.region.color;
@@ -177,7 +177,7 @@
             if (this.style.region.gradient == 'linear') {           
             
                 var angle = this.angle;
-                var arc = this.arc;
+                var arc = this.arcvalue;
                 var radius = this.radius;
                 
                 var halfAngle, halfRadius, positionX, positionY;
@@ -217,14 +217,14 @@
                 this.objStroke.strokeColor = this.style.line.color;
                 this.objStroke.dottedLength = 5;
                 this.objStroke.spaceLength = 5;
-                this.renderCircleLines(0,0,this.angle, this.radius, this.radius, this.arc);            
+                this.renderCircleLines(0,0,this.angle, this.radius, this.radius, this.arcvalue);            
                 this.closePath();
             
                 var myarc, mystep;
                 myarc=1.5;
                 mystep=3;
                 // render the dotted circle
-                for (var i=this.angle; i<=this.arc+this.angle; i+=mystep) {
+                for (var i=this.angle; i<=this.arcvalue+this.angle; i+=mystep) {
                     this.renderMyCircle(0, 0, i, myarc, this.radius, this.radius);
                 }
             
@@ -237,14 +237,14 @@
                 this.objStroke.strokeColor = this.style.line.color;
                 this.objStroke.dottedLength = 10;
                 this.objStroke.spaceLength = 10;
-                this.renderCircleLines(0,0,this.angle, this.radius, this.radius, this.arc);
+                this.renderCircleLines(0,0,this.angle, this.radius, this.radius, this.arcvalue);
                 this.closePath();
             
                 var myarc, mystep;
                 myarc=3;
                 mystep=7;
                 // render the dotted circle
-                for (var i=this.angle; i<=this.arc+this.angle; i+=mystep) {
+                for (var i=this.angle; i<=this.arcvalue+this.angle; i+=mystep) {
                     this.renderMyCircle(0, 0, i, myarc, this.radius, this.radius);
                 }
             
@@ -260,10 +260,10 @@
       <method name="renderOutlineWedge" args="offset">
         var angle, miniRadius, positionX, positionY, startRadius;
         // cut the angle of the piece to the half
-        var midAngle = arc/2 + this.angle;
+        var midAngle = arcvalue/2 + this.angle;
 
         // reduce the radius of the inner piece
-        startRadius = offset / Math.sin(arc/2/180*Math.PI);
+        startRadius = offset / Math.sin(arcvalue/2/180*Math.PI);
 
         if (!isFinite(startRadius))
             return;
@@ -277,7 +277,7 @@
         positionX = Math.cos(midAngle/180*Math.PI)*startRadius;
         positionY = Math.sin(-midAngle/180*Math.PI)*startRadius;
 
-        this.renderCircleSegment(positionX, positionY, this.angle, this.arc, miniRadius, null);
+        this.renderCircleSegment(positionX, positionY, this.angle, this.arcvalue, miniRadius, null);
 
       </method>
       <!--- @keyword private -->

Modified: openlaszlo/trunk/lps/components/charts/styles/chartstyle.lzx
===================================================================
--- openlaszlo/trunk/lps/components/charts/styles/chartstyle.lzx	2008-04-22 13:44:00 UTC (rev 8819)
+++ openlaszlo/trunk/lps/components/charts/styles/chartstyle.lzx	2008-04-22 13:44:17 UTC (rev 8820)
@@ -9,6 +9,9 @@
   -->
 <class name="basestyle"  extends="view" opacity="0">
 
+    <doc><text>
+        <warning>This component is of Beta quality and is subject to change.</warning>
+    </text></doc>
     <!-- below are the methods copied over from the style class of basecomponents -->
 
     <!--- set a specific style attribute, generating an onstylechanged event
@@ -85,6 +88,11 @@
       @access public
       -->
 <class name="pointstyle" extends="basestyle" width="5" height="5">
+    <doc>
+      <text>
+        <warning>This component is of Beta quality and is subject to change.</warning>
+      </text>
+    </doc>
     <!--- RGB color -->
     <attribute name="color" type="color" value="black"/> 
     <!--- 'circle','square','triangle', [name of resource] -->
@@ -105,6 +113,11 @@
       @access public
       -->
 <class name="linestyle" extends="basestyle" >
+    <doc>
+      <text>
+        <warning>This component is of Beta quality and is subject to change.</warning>
+      </text>
+    </doc>
     <!--- pixel size for the stroke of the line -->
     <attribute name="size" type="number" value="1"/> 
     <!--- RGB color on the axis line -->
@@ -119,6 +132,11 @@
       @access public
       -->
 <class name="regionstyle" extends="basestyle"  stretches="both">
+    <doc>
+      <text>
+        <warning>This component is of Beta quality and is subject to change.</warning>
+      </text>
+    </doc>
     <!--- RGB color on the axis line -->
     <attribute name="color" type="color" value="0xFF0000"/>
     <!--- value between 0-1 --> 
@@ -134,6 +152,11 @@
       @access public
       -->
 <class name="labelstyle" extends="basestyle" >
+    <doc>
+      <text>
+        <warning>This component is of Beta quality and is subject to change.</warning>
+      </text>
+    </doc>
     <!--- size of border of label background  -->                  
     <attribute name="linesize" type="number" value="null"/> 
     <!--- color of bounding box border -->
@@ -163,6 +186,11 @@
      @access public
      -->
 <class name="tickstyle" extends="linestyle" >
+    <doc>
+      <text>
+        <warning>This component is of Beta quality and is subject to change.</warning>
+      </text>
+    </doc>
     <!--- length of tick in pixels perpendicualr to the axis -->
     <attribute  name="length" type="number" value="5"/> 
     <!--- inside | outside | centered | none  --> 
@@ -177,6 +205,11 @@
      @access public
      -->
 <class name="valuelinestyle" extends="basestyle" >
+    <doc>
+      <text>
+        <warning>This component is of Beta quality and is subject to change.</warning>
+      </text>
+    </doc>
   <?STRUCTURE ... 
     <linestyle  name="line" /> <!--- instance of linestyle -->
     <labelstyle name="label" /> <!--- an instance of labelstyle -->
@@ -189,6 +222,11 @@
      @access public
      -->
 <class name="valuepointstyle" extends="basestyle" >
+    <doc>
+      <text>
+        <warning>This component is of Beta quality and is subject to change.</warning>
+      </text>
+    </doc>
   <?STRUCTURE ... 
     <pointstyle name="point"/> <!--- an instance of pointstyle -->
     <labelstyle name="label" /> <!--- an instance of labelstyle -->
@@ -200,6 +238,11 @@
       @access public
   -->
 <class name="axisstyle" extends="basestyle" >
+    <doc>
+      <text>
+        <warning>This component is of Beta quality and is subject to change.</warning>
+      </text>
+    </doc>
     <!--- direction of the axis: x or y -->
     <attribute name="direction" value="y | x" type="string" />
 
@@ -218,6 +261,11 @@
       @access public
       -->
 <class name="plotstyle" extends="basestyle">
+    <doc>
+      <text>
+        <warning>This component is of Beta quality and is subject to change.</warning>
+      </text>
+    </doc>
     <!--- size of border of the plot area -->
     <attribute name="linesize" type="number" value="0"/> 
     <!--- color of the border for the plot area -->
@@ -232,6 +280,11 @@
       @access public
       -->
 <class name="chartbgstyle" extends="basestyle">
+    <doc>
+      <text>
+        <warning>This component is of Beta quality and is subject to change.</warning>
+      </text>
+    </doc>
     <?STRUCTURE ...
         <linestyle name="line"/>        <!--- instance of linestyle -->
         <regionstyle name="region"/>    <!--- instance of regionstyle -->
@@ -242,6 +295,11 @@
       @access public
   -->
 <class name="datastyle" extends="basestyle" >
+    <doc>
+      <text>
+        <warning>This component is of Beta quality and is subject to change.</warning>
+      </text>
+    </doc>
 
   <?STRUCTURE ... 
     <pointstyle  name="point"   /> <!--- instance of pointstyle -->
@@ -258,6 +316,11 @@
       @access public
   -->
 <class name="valueregionstyle" extends="basestyle" >
+    <doc>
+      <text>
+        <warning>This component is of Beta quality and is subject to change.</warning>
+      </text>
+    </doc>
 
   <?STRUCTURE ... 
     <linestyle   name="line"    /> <!--- instance of linestyle -->
@@ -272,6 +335,11 @@
       @access public
   -->
 <class name="chartstyle" extends="basestyle"  >
+    <doc>
+      <text>
+        <warning>This component is of Beta quality and is subject to change.</warning>
+      </text>
+    </doc>
     <!--- @keyword private -->
     <attribute name="datastyleindex" value="0" type="number"/>
     <attribute name="version" value="0" type="number"/>
@@ -339,6 +407,11 @@
       @access public
   -->
 <class name="datastylelist" extends="basestyle">
+    <doc>
+      <text>
+        <warning>This component is of Beta quality and is subject to change.</warning>
+      </text>
+    </doc>
 </class>
 
 </library>



More information about the Laszlo-checkins mailing list