Zbavíme se závislosti na Log4J, který se stejně nepoužívá.
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
5 <meta name="author" content="Guido Laures">
6 <link href="cewolf.css" rel="stylesheet" type="text/css">
10 <p class="Body"> Cewolf can be used inside a Servlet/JSP based web
11 application to embed complex graphical charts of all kinds (e.g. line,
12 pie, bar chart, plots, etc.) into a web page. Therefore it provides a
13 full featured tag library to define all properties of the chart (colors,
14 strokes, legend, etc.). Thus the JSP which embedds the chart is not
15 polluted with any java code. Everything is described with XML conform
17 <p> Cewolf is based on <a
18 href="http://www.object-refinery.com/jfreechart/">JFreeChart</a> and
19 uses it's rendering engine to render the final chart image into the
20 clients response stream. No files are created on server side. Everything
21 is based on lightweight session objects and dynamic data analysis.
22 Cewolf consists of one servlet which handles the chart rendering and a
23 taglibrary which translates the chart definition included in the JSP
24 into an HTML img tag which consults the rendering servlet for retrieval
25 of the appropriate chart. </p>
26 <p> Simce the project has been funded in the middle of 2002 there have
27 been <b>more then 150.000 page views and 16.000 downloads</b>
28 (Sourceforge activity max: >99,7%). </p>
30 <table border="1" cellpadding="5">
33 <th class="featureGroup">Fully free and open</th>
34 <th class="featureGroup">100% Java compliant</th>
41 <li>no restrictions</li>
43 href="http://sourceforge.net/projects/cewolf">SourceForge Forums</a></li>
44 <li>short development and upgrade circles</li>
49 <li>no usage of native libraries</li>
50 <li>should run in every J2EE compliant server or servlet
52 <li>extensive usage of available open source projects</li>
57 <th class="featureGroup">Full featured Chart Tag Library</th>
58 <th class="featureGroup">Huge number of different Charts</th>
63 <li>no java coding inside the JSP needed</li>
64 <li>XML description of a chart</li>
65 <li>design time validation of chart tags</li>
66 <li>extensive <a href="taglib.html">tag documentation</a></li>
73 <li>[3D] Horizonal Bar</li>
74 <li>[3D] Vertical [XY] Bar</li>
75 <li>[3D] Stacked Vertical Bar</li>
92 <p> You can simply define a chart by including a chart tag into your JSP
94 <pre><cewolf:chart <br> id="XYChart"<br> type="xy"<br> title="XYChart" <br> <cewolf:gradient><br> <cewolf:point x="0" y="0" color="#FFFFFF"/><br> <cewolf:point x="0" y="300" color="#C8C8C8"/><br> </cewolf:gradient><br> <cewolf:data><br> <cewolf:producer id="xyData"/><br> </cewolf:data><br></cewolf:chart><br><cewolf:img chartid="XYChart" renderer="cewolf" width="400" height="300"/><br></pre>
95 <p> This results in a rendered chart like this: </p>
96 <img alt="examplechart" src="img/examplexy.png">
97 <p> As you can see only the view is defined in the JSP page. The model
98 is produced by a so called DataProducer which must be available in the
99 pageContext of the JSP. </p>
100 <a href="http://sourceforge.net" target="new" height="30"><img
101 src="http://sourceforge.net/sflogo.php?group_id=57282&type=5"
102 height="30" border="0" alt="SourceForge Logo"></a>