[jboss-cvs] jboss-seam/examples/itext/view ...
Norman Richards
norman.richards at jboss.com
Wed May 2 22:37:08 EDT 2007
User: nrichards
Date: 07/05/02 22:37:08
Modified: examples/itext/view chart.xhtml
Log:
improve chart style
Revision Changes Path
1.3 +21 -8 jboss-seam/examples/itext/view/chart.xhtml
(In the diff below, changes in quantity of whitespace are not shown.)
Index: chart.xhtml
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/examples/itext/view/chart.xhtml,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -b -r1.2 -r1.3
--- chart.xhtml 28 Apr 2007 23:50:42 -0000 1.2
+++ chart.xhtml 3 May 2007 02:37:08 -0000 1.3
@@ -2,21 +2,34 @@
xmlns:p="http://jboss.com/products/seam/pdf"
xmlns:s="http://jboss.com/products/seam/taglib">
<p:image alignment="right" wrap="true" value="/jboss.jpg" />
- <p:font size="24"><p:paragraph spacingAfter="50">Chart</p:paragraph></p:font>
+ <p:font id="test" size="24"><p:paragraph spacingAfter="50">Chart</p:paragraph></p:font>
+ <p:stroke id="dot1" width="2" cap="round" join="bevel" dash="1 2 3 4" />
+ <p:stroke id="dot2" width="2" cap="round" join="bevel" dash="2 3" />
- <p:piechart title="Pie Chart" width="500" height="500" legend="true">
- <ui:repeat value="#{data.pieData}" var="item">
- <p:data key="#{item.name}" value="#{item.value}" />
- </ui:repeat>
- </p:piechart>
+ <p:color id="foo" color="#0ff00f"/>
+ <p:color id="bar" color="#ff00ff" color2="#00ff00" point="50 50" point2="300 300"/>
+ <p:piechart title="Pie Chart" width="500" height="500" legend="true"
+ borderBackgroundPaint="#ffffff" borderStroke="dot1" borderPaint="blue" borderVisible="false"
+ plotBackgroundPaint="#ffffff" plotBackgroundAlpha="1" plotForegroundAlpha="1"
+ plotOutlinePaint="blue" plotOutlineStroke="dot1"
+ labelBackgroundPaint="gray" labelPaint="white" labelLinkStroke="dot2"
+ direction="anticlockwise" >
+ <ui:repeat value="#{data.pieData}" var="item">
+ <p:data key="#{item.name}" value="#{item.value}" sectionPaint="#777777" sectionOutlineStroke="dot2" />
+ </ui:repeat>
+ <p:data key="foo" value="20" explodedPercent=".2" sectionPaint="#111111" />
+ <p:data key="bar" value="20" explodedPercent=".3" sectionPaint="#333333" />
+ <p:data key="baz" value="20" sectionPaint="#555555" sectionOutlineStroke="dot2" />
+ </p:piechart>
- <p:piechart3d title="3d Pie Chart" width="500" height="500" legend="true">
+ <p:piechart title="3d Pie Chart" width="500" height="500" legend="true" is3D="true" backgroundPaint="bar"
+ plotForegroundAlpha=".2">
<ui:repeat value="#{data.pieData}" var="item">
<p:data key="#{item.name}" value="#{item.value}" />
</ui:repeat>
- </p:piechart3d>
+ </p:piechart>
<p:barchart title="Bar Chart" width="500" height="500" orientation="horizontal">
<ui:repeat value="#{data.pieData}" var="item">
More information about the jboss-cvs-commits
mailing list