You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

The body of the tag is executed in the scope of region.

  
  There are optional plotSet attributes, with default values, e.g.:
        height = "600" (pixels)
        width  = "600" (pixels)
        format = "png"
        indexVar = "index"
        regionVar = "region"
        url = "" (The page to link the browser to)
        id = "some generated unique value" (The id for the browsing when multiple browsers are present in a page)
        allowDownload  = "true"
        createImageMap = "false"
        maxPlots = "9" (maximum number of plots per page)
       
        n Plots     nX x nY
        n<2         1x1
        n=2         1x2
      3<=n<5        2x2
      5<=n<7        2x3
      7<=n<10       3x3

Examples:

 <!-- plot set of IManagedObjects -->
<plotSet plots="${dataArray}" />
<!--
    plot a set of IManagedObjects with a single
    region-level style
-->
<plotSet plots="${dataArray}">
    <style>
        .......
    </style>
</plotSet>
<!--
    plot a set of IManagedObjects with a different
    region-level styles
-->
<plotSet plots="${dataArray}" indexVar="index">
    <c:choose>
        <c:when test="${index%2 == 0}">
            <style>
                .......
            </style>
        </c:when>
        <c:otherwise>
            <style>
                .......
            </style>
        </c:otherwise>
    </c:choose>
</plotSet>
<\!-\-
&nbsp;&nbsp;&nbsp; plot a set of IManagedObjects with overlays and
&nbsp;&nbsp;&nbsp; individual data styles
\-->
<plotSet plots="${dataArray}" indexVar="index">
&nbsp;&nbsp;&nbsp; <style>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .......
&nbsp;&nbsp;&nbsp; </style>

&nbsp;&nbsp;&nbsp; <plot var="${dataArray1\[index\]}">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <style>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .......
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </style>
&nbsp;&nbsp;&nbsp; </plot>
&nbsp;&nbsp;&nbsp; <plot var="${dataArray2\[index\]}">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <style>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .......
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </style>
&nbsp;&nbsp;&nbsp; </plot>
</plotSet>
<\!-\-
&nbsp;&nbsp;&nbsp; plot a set of IManagedObjects with overlays.
&nbsp;&nbsp;&nbsp; Make regions clickable and with unique styles.
&nbsp;&nbsp;&nbsp; \**\* FIXME: don't know how to call setters on an Object\!
\-->
<plotSet plots="${dataArray}" indexVar="index" regionVar="region">
&nbsp;&nbsp;&nbsp; set region.title = "Region ${index}"
&nbsp;&nbsp;&nbsp; set region.href ....
&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp; <plot var="${dataArray1\[index\]}">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <style>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .......
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </style>
&nbsp;&nbsp;&nbsp; </plot>
&nbsp;&nbsp;&nbsp; <plot var="${dataArray2\[index\]}">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <style>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .......
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </style>
&nbsp;&nbsp;&nbsp; </plot>
</plotSet>
  • No labels