Author: norman.richards(a)jboss.com
Date: 2009-05-05 15:40:42 -0400 (Tue, 05 May 2009)
New Revision: 10797
Modified:
branches/community/Seam_2_1/doc/Seam_Reference_Guide/en-US/Itext.xml
Log:
JBSEAM-4157
Modified: branches/community/Seam_2_1/doc/Seam_Reference_Guide/en-US/Itext.xml
===================================================================
--- branches/community/Seam_2_1/doc/Seam_Reference_Guide/en-US/Itext.xml 2009-05-05
18:59:31 UTC (rev 10796)
+++ branches/community/Seam_2_1/doc/Seam_Reference_Guide/en-US/Itext.xml 2009-05-05
19:40:42 UTC (rev 10797)
@@ -17,9 +17,6 @@
<para> The <literal>examples/itext</literal> project contains
an example of the PDF support in action. It
demonstrates proper deployment packaging, and it contains a number examples
that demonstrate the key PDF
generation features current supported. </para>
-
-
-
<section id="itext.document">
<title>Creating a document</title>
@@ -1361,10 +1358,14 @@
<para> Charting support is also provided with
<literal>jboss-seam-pdf.jar</literal>. Charts can be used in PDF
documents or can be used as images in an HTML page. Charting requires the
JFreeChart library
(<literal>jfreechart.jar</literal> and
<literal>jcommon.jar</literal>) to be added to the
- <literal>WEB-INF/lib</literal> directory. Three types of
charts are currently supported: pie charts, bar
- charts and line charts. </para>
+ <literal>WEB-INF/lib</literal> directory.
+ Four types of charts are currently supported: pie charts, bar
+ charts and line charts. Where greater variety or control is needed, it is
possible to construct charts
+ using Java code.</para>
- <informaltable id="itext.barchart">
+
+
+ <informaltable id="itext.charttags">
<tgroup cols="2">
<colspec colnum="1" colwidth="1*"/>
<colspec colnum="2" colwidth="3*"/>
@@ -1373,6 +1374,48 @@
<row>
<entry valign="top">
<para>
+ <literal><p:chart></literal>
+ </para>
+ </entry>
+ <entry valign="top">
+ <para>
+ <emphasis>Description</emphasis>
+ </para>
+ <para>Displays a chart created in Java by a Seam
component.</para>
+ <para>
+ <emphasis>Attributes</emphasis>
+ </para>
+
+ <itemizedlist>
+ <listitem>
+ <para>
+ <literal>chart</literal> —
The chart object to display. </para>
+ </listitem>
+
+ <listitem>
+ <para>
+ <literal>height</literal> —
The height of the chart. </para>
+ </listitem>
+
+ <listitem>
+ <para>
+ <literal>width</literal> —
The width of the chart. </para>
+ </listitem>
+
+ </itemizedlist>
+ <para>
+ <emphasis>Usage</emphasis>
+ </para>
+ <programlisting
role="XHTML"><![CDATA[<p:chart chart="#{mycomponent.chart}"
width="500" height="500" />
+ ]]></programlisting>
+
+ </entry>
+ </row>
+
+
+ <row>
+ <entry valign="top">
+ <para>
<literal><p:barchart></literal>
</para>
</entry>
@@ -1388,6 +1431,19 @@
<itemizedlist>
<listitem>
<para>
+ <literal>chart</literal> —
The chart object to display, if programmatic
+ chart creation is being used.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <literal>dataset</literal>
— The dataset to be displayed, if programmatic
+ dataset is being used.
+ </para>
+ </listitem>
+
+ <listitem>
+ <para>
<literal>borderVisible</literal>
— Controls whether or not a border is
displayed around the entire chart. </para>
</listitem>
@@ -1604,6 +1660,19 @@
<itemizedlist>
<listitem>
<para>
+ <literal>chart</literal> —
The chart object to display, if programmatic
+ chart creation is being used.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <literal>dataset</literal>
— The dataset to be displayed, if programmatic
+ dataset is being used.
+ </para>
+ </listitem>
+
+ <listitem>
+ <para>
<literal>borderVisible</literal>
— Controls whether or not a border is
displayed around the entire chart. </para>
</listitem>
@@ -1824,6 +1893,18 @@
</listitem>
<listitem>
<para>
+ <literal>chart</literal> —
The chart object to display, if programmatic
+ chart creation is being used.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <literal>dataset</literal>
— The dataset to be displayed, if programmatic
+ dataset is being used.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
<literal>label</literal> —
The default label text for pie sections.
</para>
</listitem>
@@ -1953,6 +2034,9 @@
</entry>
</row>
+
+
+
<row>
<entry valign="top">
<para>
@@ -2205,10 +2289,12 @@
</tbody>
</tgroup>
</informaltable>
+ </section>
- </section>
+
+
<section id="itext.barcodes">
<title>Bar codes</title>
<para>Seam can use iText to generate barcodes in a wide variety of formats.
These barcodes can
Show replies by date