You can subscribe to this list here.
2003 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(95) |
Sep
(42) |
Oct
(2) |
Nov
(7) |
Dec
(6) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2004 |
Jan
|
Feb
(34) |
Mar
|
Apr
|
May
(64) |
Jun
(113) |
Jul
(60) |
Aug
(9) |
Sep
(6) |
Oct
(20) |
Nov
(11) |
Dec
|
From: <nat...@us...> - 2003-08-16 20:47:39
|
Update of /cvsroot/jcharts/krysalis-jcharts/src/documentation/content/xdocs/userGuide In directory sc8-pr-cvs1:/tmp/cvs-serv24913 Added Files: antiAliasing.xml Log Message: new --- NEW FILE: antiAliasing.xml --- <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE document PUBLIC "-//APACHE//DTD Documentation V1.1//EN" "document-v11.dtd"> <document> <header> <title>Anti-Aliasing</title> <authors> <person name="Nathaniel Auvil" email="nat...@so..."/> </authors> </header> <body> <section> <title>Toggling</title> <p> When generating charts in PDF format for use in reporting engines such as JasperReports, you should consider disabling anti-aliasing in the charts to get the 'cleanist' looking image. With anti-aliasing enabled, your charts can sometimes look blurry. </p> <p> This flag is set on the <code>ChartProperties</code> Object in all chart types. The default setting for this flag is <code>true</code>. </p> </section> </body> </document> |
From: <nat...@us...> - 2003-08-16 20:47:26
|
Update of /cvsroot/jcharts/krysalis-jcharts/src/documentation/content/xdocs/samples In directory sc8-pr-cvs1:/tmp/cvs-serv24871 Modified Files: book.xml Log Message: added (CVS) to the radar chart label so people would know it is only in cvs Index: book.xml =================================================================== RCS file: /cvsroot/jcharts/krysalis-jcharts/src/documentation/content/xdocs/samples/book.xml,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** book.xml 16 Aug 2003 16:03:43 -0000 1.5 --- book.xml 16 Aug 2003 20:47:18 -0000 1.6 *************** *** 37,41 **** </menu> <menu label="Radar Charts"> ! <menu-item label="Radar Chart" href="radar.html"/> </menu> <menu label="Stock Charts"> --- 37,41 ---- </menu> <menu label="Radar Charts"> ! <menu-item label="Radar Chart (CVS)" href="radar.html"/> </menu> <menu label="Stock Charts"> |
From: <nat...@us...> - 2003-08-16 20:46:46
|
Update of /cvsroot/jcharts/krysalis-jcharts/src/documentation/content/xdocs/samples In directory sc8-pr-cvs1:/tmp/cvs-serv24816 Modified Files: pie3d.xml Log Message: added solid pie 3d Index: pie3d.xml =================================================================== RCS file: /cvsroot/jcharts/krysalis-jcharts/src/documentation/content/xdocs/samples/pie3d.xml,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** pie3d.xml 16 Aug 2003 16:03:20 -0000 1.2 --- pie3d.xml 16 Aug 2003 20:46:43 -0000 1.3 *************** *** 11,19 **** <body> <section> ! <title>Pie 3D - No Legend</title> <p> <img src="images/samples/pie3d/pie3d.png" alt="Pie Chart 3d"/> </p> </section> </body> </document> --- 11,26 ---- <body> <section> ! <title>Pie 3D - Transparent</title> <p> <img src="images/samples/pie3d/pie3d.png" alt="Pie Chart 3d"/> </p> </section> + <section> + <title>Pie 3D - Solid</title> + <p> + <img src="images/samples/pie3d/pie3dSolid.png" alt="Pie Chart 3d Solid"/> + </p> + </section> + </body> </document> |
From: <nat...@us...> - 2003-08-16 20:46:28
|
Update of /cvsroot/jcharts/krysalis-jcharts/src/documentation/content/xdocs In directory sc8-pr-cvs1:/tmp/cvs-serv24789 Modified Files: site.xml Log Message: changes ;) Index: site.xml =================================================================== RCS file: /cvsroot/jcharts/krysalis-jcharts/src/documentation/content/xdocs/site.xml,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** site.xml 16 Aug 2003 16:02:46 -0000 1.5 --- site.xml 16 Aug 2003 20:46:25 -0000 1.6 *************** *** 28,32 **** <credits label="Credits" href="credits.html"/> <changes label="Changes" href="changes.html"/> ! <todo label="Todo" href="todo.html"/> <cvs label="CVS" href="http://sourceforge.net/cvs/?group_id=16161"/> </development> --- 28,32 ---- <credits label="Credits" href="credits.html"/> <changes label="Changes" href="changes.html"/> ! <tasks label="Tasks" href="http://sourceforge.net/pm/?group_id=16161"/> <cvs label="CVS" href="http://sourceforge.net/cvs/?group_id=16161"/> </development> |
From: <nat...@us...> - 2003-08-16 20:46:14
|
Update of /cvsroot/jcharts/krysalis-jcharts/src/documentation/resources/images/samples/pie3d In directory sc8-pr-cvs1:/tmp/cvs-serv24766 Added Files: pie3dSolid.png Log Message: no message --- NEW FILE: pie3dSolid.png --- (This appears to be a binary file; contents omitted.) |
From: <nat...@us...> - 2003-08-16 16:06:56
|
Update of /cvsroot/jcharts/krysalis-jcharts/src/java/org/krysalis/jcharts/test In directory sc8-pr-cvs1:/tmp/cvs-serv18256 Added Files: MultiPaintRenderer.java Log Message: initial --- NEW FILE: MultiPaintRenderer.java --- package org.krysalis.jcharts.test; import org.krysalis.jcharts.axisChart.customRenderers.axisValue.PreAxisValueRenderListener; import org.krysalis.jcharts.axisChart.customRenderers.axisValue.AxisValueRenderEvent; public class MultiPaintRenderer implements PreAxisValueRenderListener { /********************************************************************************* * * @param axisValueRenderEvent *********************************************************************************/ public void preRender( AxisValueRenderEvent axisValueRenderEvent ) { axisValueRenderEvent.getGraphics2D().setPaint( TestDataGenerator.getRandomPaint() ); } } |
From: <nat...@us...> - 2003-08-16 16:05:53
|
Update of /cvsroot/jcharts/krysalis-jcharts/src/documentation/resources/images/samples/radar In directory sc8-pr-cvs1:/tmp/cvs-serv18008 Added Files: radar.png Log Message: no message --- NEW FILE: radar.png --- (This appears to be a binary file; contents omitted.) |
From: <nat...@us...> - 2003-08-16 16:05:18
|
Update of /cvsroot/jcharts/krysalis-jcharts/src/documentation/content/xdocs/userGuide In directory sc8-pr-cvs1:/tmp/cvs-serv18210 Modified Files: exportingImages.xml Log Message: enhanced the code snippet for swing demo code Index: exportingImages.xml =================================================================== RCS file: /cvsroot/jcharts/krysalis-jcharts/src/documentation/content/xdocs/userGuide/exportingImages.xml,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** exportingImages.xml 21 Jun 2003 16:01:43 -0000 1.2 --- exportingImages.xml 16 Aug 2003 16:04:12 -0000 1.3 *************** *** 99,125 **** this.panel.setSize( 500, 500 ); this.getContentPane().add( this.panel ); - this.setVisible( true ); - - String[] labels = {"BMW", "Audi", "Lexus"}; - String title = "Cars that Own"; - Paint[] paints = {Color.blue, Color.gray, Color.red}; - double[] data = {50d, 30d, 20d}; ! PieChart2DProperties pieChart2DProperties = new PieChart2DProperties(); ! PieChartDataSet pieChartDataSet = ! new PieChartDataSet( title, data, labels, paints, ! pieChart2DProperties ); ! ! PieChart2D pieChart2D = ! new PieChart2D( pieChartDataSet, new LegendProperties(), ! new ChartProperties(), 450, 450 ); ! //***** BEGIN SWING SPECIFIC CODE *********************************** ! //---Here is where you set the Chart Graphics2D Object ! pieChart2D.setGraphics2D( (Graphics2D) this.panel.getGraphics() ); - //---now simply call render on the chart - pieChart2D.render(); - //***** END SWING SPECIFIC CODE ************************************* addWindowListener( new java.awt.event.WindowAdapter() --- 99,109 ---- this.panel.setSize( 500, 500 ); this.getContentPane().add( this.panel ); ! this.pieChart2DProperties = new PieChart2DProperties(); ! this.legendProperties= new LegendProperties(); ! this.chartProperties= new ChartProperties(); ! this.setVisible( true ); addWindowListener( new java.awt.event.WindowAdapter() *************** *** 132,135 **** --- 116,154 ---- ); } + + + /************************************************************************ + * + * @param graphics + ***********************************************************************/ + public void paint( Graphics graphics ) + { + try { + String[] labels = {"BMW", "Audi", "Lexus"}; + String title = "Cars that Own"; + Paint[] paints = {Color.blue, Color.gray, Color.red}; + double[] data = {50d, 30d, 20d}; + PieChartDataSet pieChartDataSet = new PieChartDataSet( title, data, + labels, paints, this.pieChart2DProperties ); + Dimension dimension= this.panel.getSize(); + PieChart2D pieChart2D = new PieChart2D( pieChartDataSet, + this.legendProperties, + this.chartProperties, + (int) dimension.getWidth(), + (int) dimension.getHeight() ); + + //***** BEGIN SWING SPECIFIC CODE ******************************* + pieChart2D.setGraphics2D( (Graphics2D) this.panel.getGraphics() ); + pieChart2D.render(); + //***** END SWING SPECIFIC CODE ********************************* + } + catch( ChartDataException chartDataException ) { + chartDataException.printStackTrace(); + } + catch( PropertyException propertyException ) { + propertyException.printStackTrace(); + } + } + private void exitForm( WindowEvent windowEvent ) |
From: <nat...@us...> - 2003-08-16 16:03:47
|
Update of /cvsroot/jcharts/krysalis-jcharts/src/documentation/content/xdocs/samples In directory sc8-pr-cvs1:/tmp/cvs-serv18144 Modified Files: book.xml index.xml Log Message: added links to radar and pie3d, and denoted as cvs only Index: book.xml =================================================================== RCS file: /cvsroot/jcharts/krysalis-jcharts/src/documentation/content/xdocs/samples/book.xml,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** book.xml 9 Aug 2003 19:48:12 -0000 1.4 --- book.xml 16 Aug 2003 16:03:43 -0000 1.5 *************** *** 31,44 **** <menu label="Pie Charts"> <menu-item label="2D Pie" href="pie.html"/> ! <menu-item label="3D Pie" href="pie3d.html"/> </menu> <menu label="Point Charts"> <menu-item label="Point Chart" href="point.html"/> </menu> ! <menu label="XY Scatter Charts"> ! <menu-item label="XY Chart" href="scatter.html"/> </menu> <menu label="Stock Charts"> <menu-item label="Hi/Low Open/Close" href="stock.html"/> </menu> </book> --- 31,47 ---- <menu label="Pie Charts"> <menu-item label="2D Pie" href="pie.html"/> ! <menu-item label="3D Pie (CVS)" href="pie3d.html"/> </menu> <menu label="Point Charts"> <menu-item label="Point Chart" href="point.html"/> </menu> ! <menu label="Radar Charts"> ! <menu-item label="Radar Chart" href="radar.html"/> </menu> <menu label="Stock Charts"> <menu-item label="Hi/Low Open/Close" href="stock.html"/> + </menu> + <menu label="XY Scatter Charts"> + <menu-item label="XY Chart" href="scatter.html"/> </menu> </book> Index: index.xml =================================================================== RCS file: /cvsroot/jcharts/krysalis-jcharts/src/documentation/content/xdocs/samples/index.xml,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** index.xml 9 Aug 2003 19:48:12 -0000 1.3 --- index.xml 16 Aug 2003 16:03:44 -0000 1.4 *************** *** 12,16 **** <section> <title>Sample Charts</title> ! <p>The following pages contain some images of the charts possible with jcharts.</p> <p/> <ul> --- 12,16 ---- <section> <title>Sample Charts</title> ! <p>The following pages contain some images of the charts possible with jCharts.</p> <p/> <ul> *************** *** 27,32 **** <li>Line</li> <li>Pie 2D</li> ! <li>Pie 3D</li> <li>Point</li> <li>XY Plot</li> </ul> --- 27,33 ---- <li>Line</li> <li>Pie 2D</li> ! <li>Pie 3D (current CVS)</li> <li>Point</li> + <li>Radar (current CVS)</li> <li>XY Plot</li> </ul> |
From: <nat...@us...> - 2003-08-16 16:03:22
|
Update of /cvsroot/jcharts/krysalis-jcharts/src/documentation/content/xdocs/samples In directory sc8-pr-cvs1:/tmp/cvs-serv18110 Modified Files: pie3d.xml Log Message: cleaned up Index: pie3d.xml =================================================================== RCS file: /cvsroot/jcharts/krysalis-jcharts/src/documentation/content/xdocs/samples/pie3d.xml,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** pie3d.xml 9 Aug 2003 19:47:57 -0000 1.1 --- pie3d.xml 16 Aug 2003 16:03:20 -0000 1.2 *************** *** 11,22 **** <body> <section> - <title>Pie Chart 3D</title> - <figure src="images/samples/pie/pieChart.jpg" alt="Pie Bar Chart" width="300" height="300"/> - <p/> - </section> - <section> <title>Pie 3D - No Legend</title> ! <figure src="images/samples/pie3d/pie3d.png" alt="Pie Chart 3d"/> ! <p/> </section> </body> --- 11,18 ---- <body> <section> <title>Pie 3D - No Legend</title> ! <p> ! <img src="images/samples/pie3d/pie3d.png" alt="Pie Chart 3d"/> ! </p> </section> </body> |
From: <nat...@us...> - 2003-08-16 16:03:12
|
Update of /cvsroot/jcharts/krysalis-jcharts/src/documentation/content/xdocs/samples In directory sc8-pr-cvs1:/tmp/cvs-serv18092 Added Files: radar.xml Log Message: initial revision --- NEW FILE: radar.xml --- <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE document PUBLIC "-//APACHE//DTD Documentation V1.1//EN" "document-v11.dtd"> <document> <header> <title></title> <authors> <person name="Nathaniel Auvil" email="nat...@us..."/> </authors> </header> <body> <section> <title>Radar Chart</title> <p> <img src="images/samples/radar/radar.png" alt="Radar Chart"/> </p> </section> </body> </document> |
From: <nat...@us...> - 2003-08-16 16:02:52
|
Update of /cvsroot/jcharts/krysalis-jcharts/src/documentation/content/xdocs In directory sc8-pr-cvs1:/tmp/cvs-serv18050 Modified Files: site.xml Log Message: added a link to the mail lists page Index: site.xml =================================================================== RCS file: /cvsroot/jcharts/krysalis-jcharts/src/documentation/content/xdocs/site.xml,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** site.xml 31 May 2003 12:58:11 -0000 1.4 --- site.xml 16 Aug 2003 16:02:46 -0000 1.5 *************** *** 21,24 **** --- 21,25 ---- <downloads label="Downloads" href="downloads.html"/> <license label="License" href="license.html"/> + <mailLists label="Mailing Lists" href="http://sourceforge.net/mail/?group_id=16161"/> </about> |
From: <nat...@us...> - 2003-08-16 16:02:02
|
Update of /cvsroot/jcharts/krysalis-jcharts/src/documentation/resources/images/samples/radar In directory sc8-pr-cvs1:/tmp/cvs-serv17889/radar Log Message: Directory /cvsroot/jcharts/krysalis-jcharts/src/documentation/resources/images/samples/radar added to the repository |
From: <nat...@us...> - 2003-08-16 16:01:48
|
Update of /cvsroot/jcharts/krysalis-jcharts In directory sc8-pr-cvs1:/tmp/cvs-serv17855 Modified Files: build.xml Log Message: added target to build the website chart samples Index: build.xml =================================================================== RCS file: /cvsroot/jcharts/krysalis-jcharts/build.xml,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** build.xml 31 May 2003 18:18:34 -0000 1.2 --- build.xml 16 Aug 2003 16:01:45 -0000 1.3 *************** *** 81,84 **** --- 81,98 ---- + + <!--===============================================================================--> + <!-- generates the samples used on the web site. --> + <target name="websiteSamples" depends="compile"> + <java classname="org.krysalis.jcharts.demo.samples.Sample"> + <arg value="./src/documentation/resources/images" /> + <classpath> + <pathelement path="${dir.build}"/> + <pathelement path="../lib"/> + </classpath> + </java> + </target> + + <!--===============================================================================--> <target name="jar" depends="compile"> |
From: <nic...@us...> - 2003-08-16 00:59:31
|
Update of /cvsroot/jcharts/krysalis-jcharts/legal In directory sc8-pr-cvs1:/tmp/cvs-serv14335/legal Log Message: Directory /cvsroot/jcharts/krysalis-jcharts/legal added to the repository |
From: <nic...@us...> - 2003-08-16 00:56:38
|
Update of /cvsroot/jcharts/krysalis-jcharts/legal In directory sc8-pr-cvs1:/tmp/cvs-serv14505/legal Added Files: LICENSE.apache.txt LICENSE.jcharts.txt Log Message: Adding licenses --- NEW FILE: LICENSE.apache.txt --- ============================================================================ The Apache Software License, Version 1.1 ============================================================================ Copyright (C) 2000 The Apache Software Foundation. All rights reserved. Redistribution and use in source and binary forms, with or without modifica- tion, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. 3. The end-user documentation included with the redistribution, if any, must include the following acknowledgment: "This product includes software developed by the Apache Software Foundation (http://www.apache.org/)." Alternately, this acknowledgment may appear in the software itself, if and wherever such third-party acknowledgments normally appear. 4. The names "Batik" and "Apache Software Foundation" must not be used to endorse or promote products derived from this software without prior written permission. For written permission, please contact ap...@ap.... 5. Products derived from this software may not be called "Apache", nor may "Apache" appear in their name, without prior written permission of the Apache Software Foundation. THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLU- DING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. This software consists of voluntary contributions made by many individuals on behalf of the Apache Software Foundation. For more information on the Apache Software Foundation, please see <http://www.apache.org/>. --- NEW FILE: LICENSE.jcharts.txt --- CVS Info: $Id: LICENSE.jcharts.txt,v 1.1 2003/08/15 16:06:44 nicolaken Exp $ jCharts License ---------------------------------------------------------------------------------------- * Copyright 2002 (C) Nathaniel G. Auvil. All Rights Reserved. * * Redistribution and use of this software and associated documentation * ("Software"), with or without modification, are permitted provided * that the following conditions are met: * * 1. Redistributions of source code must retain copyright * statements and notices. Redistributions must also contain a * copy of this document. * * 2. Redistributions in binary form must reproduce the * above copyright notice, this list of conditions and the * following disclaimer in the documentation and/or other * materials provided with the distribution. * * 3. The name "jCharts" or "Nathaniel G. Auvil" must not be used to * endorse or promote products derived from this Software without * prior written permission of Nathaniel G. Auvil. For written * permission, please contact nat...@us... * * 4. Products derived from this Software may not be called "jCharts" * nor may "jCharts" appear in their names without prior written * permission of Nathaniel G. Auvil. jCharts is a registered * trademark of Nathaniel G. Auvil. * * 5. Due credit should be given to the jCharts Project * (http://jcharts.sourceforge.net/). * * THIS SOFTWARE IS PROVIDED BY Nathaniel G. Auvil AND CONTRIBUTORS * ``AS IS'' AND ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT * NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND * FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL * jCharts OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED * OF THE POSSIBILITY OF SUCH DAMAGE. |
From: <nat...@us...> - 2003-08-14 00:34:17
|
Update of /cvsroot/jcharts/krysalis-jcharts/src/java/org/krysalis/jcharts/demo/swing In directory sc8-pr-cvs1:/tmp/cvs-serv14177 Modified Files: SwingDemo.java Log Message: made so repaints chart when component resizes Index: SwingDemo.java =================================================================== RCS file: /cvsroot/jcharts/krysalis-jcharts/src/java/org/krysalis/jcharts/demo/swing/SwingDemo.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** SwingDemo.java 15 Jun 2003 14:29:07 -0000 1.1 --- SwingDemo.java 14 Aug 2003 00:26:21 -0000 1.2 *************** *** 59,62 **** --- 59,66 ---- private JPanel panel; + private PieChart2DProperties pieChart2DProperties; + private LegendProperties legendProperties; + private ChartProperties chartProperties; + /******************************************************************************* *************** *** 72,76 **** * ********************************************************************************/ ! private void initComponents() throws ChartDataException, PropertyException { this.setSize( 500, 500 ); --- 76,80 ---- * ********************************************************************************/ ! private void initComponents() { this.setSize( 500, 500 ); *************** *** 78,94 **** this.panel.setSize( 500, 500 ); this.getContentPane().add( this.panel ); - this.setVisible( true ); - - String[] labels = {"BMW", "Audi", "Lexus"}; - String title = "Cars that Own"; - Paint[] paints = {Color.blue, Color.gray, Color.red}; - double[] data = {50d, 30d, 20d}; ! PieChart2DProperties pieChart2DProperties = new PieChart2DProperties(); ! PieChartDataSet pieChartDataSet = new PieChartDataSet( title, data, labels, paints, pieChart2DProperties ); ! PieChart2D pieChart2D = new PieChart2D( pieChartDataSet, new LegendProperties(), new ChartProperties(), 450, 450 ); ! pieChart2D.setGraphics2D( (Graphics2D) this.panel.getGraphics() ); ! pieChart2D.render(); addWindowListener( new java.awt.event.WindowAdapter() --- 82,91 ---- this.panel.setSize( 500, 500 ); this.getContentPane().add( this.panel ); ! this.pieChart2DProperties = new PieChart2DProperties(); ! this.legendProperties= new LegendProperties(); ! this.chartProperties= new ChartProperties(); ! this.setVisible( true ); addWindowListener( new java.awt.event.WindowAdapter() *************** *** 104,111 **** /********************************************************************************* * Exit the Application * * @param windowEvent ! ***********************************************************************************/ private void exitForm( WindowEvent windowEvent ) { --- 101,143 ---- /********************************************************************************* + * + * @param graphics + ********************************************************************************/ + public void paint( Graphics graphics ) + { + try { + String[] labels = {"BMW", "Audi", "Lexus"}; + String title = "Cars that Own"; + Paint[] paints = {Color.blue, Color.gray, Color.red}; + double[] data = {50d, 30d, 20d}; + PieChartDataSet pieChartDataSet = new PieChartDataSet( title, + data, + labels, + paints, + this.pieChart2DProperties ); + + Dimension dimension= this.panel.getSize(); + PieChart2D pieChart2D = new PieChart2D( pieChartDataSet, + this.legendProperties, + this.chartProperties, + (int) dimension.getWidth(), + (int) dimension.getHeight() ); + pieChart2D.setGraphics2D( (Graphics2D) this.panel.getGraphics() ); + pieChart2D.render(); + } + catch( ChartDataException chartDataException ) { + chartDataException.printStackTrace(); + } + catch( PropertyException propertyException ) { + propertyException.printStackTrace(); + } + } + + + /******************************************************************************* * Exit the Application * * @param windowEvent ! ******************************************************************************/ private void exitForm( WindowEvent windowEvent ) { *************** *** 114,120 **** ! /********************************************************************************* * ! ***********************************************************************************/ public static void main( String args[] ) throws ChartDataException, PropertyException { --- 146,152 ---- ! /****************************************************************************** * ! ******************************************************************************/ public static void main( String args[] ) throws ChartDataException, PropertyException { |
From: <nat...@us...> - 2003-08-09 19:48:15
|
Update of /cvsroot/jcharts/krysalis-jcharts/src/documentation/content/xdocs/samples In directory sc8-pr-cvs1:/tmp/cvs-serv31998 Modified Files: book.xml index.xml Log Message: added pie3d Index: book.xml =================================================================== RCS file: /cvsroot/jcharts/krysalis-jcharts/src/documentation/content/xdocs/samples/book.xml,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** book.xml 28 May 2003 23:41:12 -0000 1.3 --- book.xml 9 Aug 2003 19:48:12 -0000 1.4 *************** *** 31,34 **** --- 31,35 ---- <menu label="Pie Charts"> <menu-item label="2D Pie" href="pie.html"/> + <menu-item label="3D Pie" href="pie3d.html"/> </menu> <menu label="Point Charts"> Index: index.xml =================================================================== RCS file: /cvsroot/jcharts/krysalis-jcharts/src/documentation/content/xdocs/samples/index.xml,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** index.xml 28 May 2003 02:38:46 -0000 1.2 --- index.xml 9 Aug 2003 19:48:12 -0000 1.3 *************** *** 26,30 **** <li>Hi/Low Open/Close</li> <li>Line</li> ! <li>Pie</li> <li>Point</li> <li>XY Plot</li> --- 26,31 ---- <li>Hi/Low Open/Close</li> <li>Line</li> ! <li>Pie 2D</li> ! <li>Pie 3D</li> <li>Point</li> <li>XY Plot</li> |
From: <nat...@us...> - 2003-08-09 19:48:00
|
Update of /cvsroot/jcharts/krysalis-jcharts/src/documentation/content/xdocs/samples In directory sc8-pr-cvs1:/tmp/cvs-serv31946 Added Files: pie3d.xml Log Message: initial revision --- NEW FILE: pie3d.xml --- <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE document PUBLIC "-//APACHE//DTD Documentation V1.1//EN" "document-v11.dtd"> <document> <header> <title></title> <authors> <person name="Nathaniel Auvil" email="nat...@us..."/> </authors> </header> <body> <section> <title>Pie Chart 3D</title> <figure src="images/samples/pie/pieChart.jpg" alt="Pie Bar Chart" width="300" height="300"/> <p/> </section> <section> <title>Pie 3D - No Legend</title> <figure src="images/samples/pie3d/pie3d.png" alt="Pie Chart 3d"/> <p/> </section> </body> </document> |
From: <nat...@us...> - 2003-08-09 19:47:35
|
Update of /cvsroot/jcharts/krysalis-jcharts/src/documentation/resources/images/samples/pie3d In directory sc8-pr-cvs1:/tmp/cvs-serv31884 Added Files: pie3d.png Log Message: initial revision --- NEW FILE: pie3d.png --- (This appears to be a binary file; contents omitted.) |
From: <nat...@us...> - 2003-08-09 19:47:04
|
Update of /cvsroot/jcharts/krysalis-jcharts/src/documentation/resources/images/samples/pie3d In directory sc8-pr-cvs1:/tmp/cvs-serv31730/pie3d Log Message: Directory /cvsroot/jcharts/krysalis-jcharts/src/documentation/resources/images/samples/pie3d added to the repository |
From: <nat...@us...> - 2003-08-09 19:46:49
|
Update of /cvsroot/jcharts/krysalis-jcharts/src/java/org/krysalis/jcharts/nonAxisChart In directory sc8-pr-cvs1:/tmp/cvs-serv31647 Modified Files: PieChart3D.java Log Message: fixed positioning bug if no Legend Index: PieChart3D.java =================================================================== RCS file: /cvsroot/jcharts/krysalis-jcharts/src/java/org/krysalis/jcharts/nonAxisChart/PieChart3D.java,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** PieChart3D.java 7 Aug 2003 22:10:27 -0000 1.7 --- PieChart3D.java 9 Aug 2003 19:46:43 -0000 1.8 *************** *** 318,322 **** //---center the pie vertically ! this.pieY = halfImageHeight - halfDiameter; } --- 318,324 ---- //---center the pie vertically ! //this.pieY = halfImageHeight - halfDiameter; ! ! this.pieY = halfImageHeight - ( ( this.pie3dHeight + properties.getDepth() ) / 2 ); } |
From: <nat...@us...> - 2003-08-09 19:46:18
|
Update of /cvsroot/jcharts/krysalis-jcharts/src/java/org/krysalis/jcharts/demo/samples In directory sc8-pr-cvs1:/tmp/cvs-serv31565 Modified Files: Sample.java Log Message: added some usage information Index: Sample.java =================================================================== RCS file: /cvsroot/jcharts/krysalis-jcharts/src/java/org/krysalis/jcharts/demo/samples/Sample.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** Sample.java 9 Aug 2003 19:01:20 -0000 1.1 --- Sample.java 9 Aug 2003 19:46:14 -0000 1.2 *************** *** 21,25 **** * registered trademark of Nathaniel G. Auvil. * ! * 5. Due credit should be given to the jCharts Project (http://jcharts.sourceforge.net/). * * THIS SOFTWARE IS PROVIDED BY Nathaniel G. Auvil AND CONTRIBUTORS ``AS IS'' AND ANY --- 21,25 ---- * registered trademark of Nathaniel G. Auvil. * ! * 5. Due credit should be given to the jCharts Project (http://jcharts.krysalis.org/). * * THIS SOFTWARE IS PROVIDED BY Nathaniel G. Auvil AND CONTRIBUTORS ``AS IS'' AND ANY *************** *** 61,65 **** /************************************************************************************* ! * * * @param args --- 61,66 ---- /************************************************************************************* ! * path to the images directory under the documentation for forrest as in: ! * /jcharts/krysalis-jcharts/src/documentation/resources/images * * @param args *************** *** 71,75 **** new AreaChartSamples().render(); ! } --- 72,76 ---- new AreaChartSamples().render(); ! new Pie3DSamples().render(); } |
From: <nat...@us...> - 2003-08-09 19:45:55
|
Update of /cvsroot/jcharts/krysalis-jcharts/src/java/org/krysalis/jcharts/demo/samples In directory sc8-pr-cvs1:/tmp/cvs-serv31468 Added Files: Pie3DSamples.java Log Message: initial revision --- NEW FILE: Pie3DSamples.java --- package org.krysalis.jcharts.demo.samples; import org.krysalis.jcharts.chartData.ChartDataException; import org.krysalis.jcharts.chartData.PieChartDataSet; import org.krysalis.jcharts.properties.PieChart3DProperties; import org.krysalis.jcharts.properties.LegendProperties; import org.krysalis.jcharts.properties.LegendAreaProperties; import org.krysalis.jcharts.properties.ChartProperties; import org.krysalis.jcharts.properties.util.ChartStroke; import org.krysalis.jcharts.types.PieLabelType; import org.krysalis.jcharts.nonAxisChart.PieChart3D; import org.krysalis.jcharts.test.ChartTestDriver; import java.awt.*; /************************************************************************************* * * @author Nathaniel Auvil * @version $Id: Pie3DSamples.java,v 1.1 2003/08/09 19:45:51 nathaniel_auvil Exp $ ************************************************************************************/ public class Pie3DSamples extends Sample { protected String getSubdir() { return "pie3d/"; } public void render() throws ChartDataException { double[] data = {45.00d, 90.00d, 45.00d, 180d}; String[] labels = {"Equities", "Bonds", "Money Market", "Alternative Investments"}; Paint[] paints = { new Color( 200, 0, 0, 20 ), new Color( 0, 200, 0, 20 ), new Color( 0, 0, 200, 20 ), new Color( 200, 200, 0, 20 ) }; PieChart3DProperties pieChart3DProperties = new PieChart3DProperties(); pieChart3DProperties.setPieLabelType( PieLabelType.LEGEND_LABELS ); pieChart3DProperties.setTickLength( 5 ); pieChart3DProperties.setZeroDegreeOffset( 60 ); pieChart3DProperties.setDepth( 15 ); LegendProperties legendProperties = null; /* LegendProperties legendProperties = new LegendProperties(); legendProperties.setPlacement( LegendAreaProperties.RIGHT ); legendProperties.setNumColumns( 1 ); */ PieChartDataSet pieChartDataSet = new PieChartDataSet( "Investment Categories", data, labels, paints, pieChart3DProperties ); ChartProperties chartProperties = new ChartProperties(); chartProperties.setBorderStroke( ChartStroke.DEFAULT_CHART_OUTLINE ); PieChart3D pieChart = new PieChart3D( pieChartDataSet, legendProperties, chartProperties, 500, 400 ); super.encode( pieChart, "pie3d" ); } } |
From: <nat...@us...> - 2003-08-09 19:01:23
|
Update of /cvsroot/jcharts/krysalis-jcharts/src/java/org/krysalis/jcharts/demo/samples In directory sc8-pr-cvs1:/tmp/cvs-serv25793 Added Files: AreaChartSamples.java Sample.java Log Message: initial revision --- NEW FILE: AreaChartSamples.java --- /*********************************************************************************************** * Copyright 2002 (C) Nathaniel G. Auvil. All Rights Reserved. * * Redistribution and use of this software and associated documentation ("Software"), with or * without modification, are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain copyright statements and notices. * Redistributions must also contain a copy of this document. * * 2. Redistributions in binary form must reproduce the above copyright notice, this list of * conditions and the following disclaimer in the documentation and/or other materials * provided with the distribution. * * 3. The name "jCharts" or "Nathaniel G. Auvil" must not be used to endorse or promote * products derived from this Software without prior written permission of Nathaniel G. * Auvil. For written permission, please contact nat...@us... * * 4. Products derived from this Software may not be called "jCharts" nor may "jCharts" appear * in their names without prior written permission of Nathaniel G. Auvil. jCharts is a * registered trademark of Nathaniel G. Auvil. * * 5. Due credit should be given to the jCharts Project (http://jcharts.sourceforge.net/). * * THIS SOFTWARE IS PROVIDED BY Nathaniel G. Auvil AND CONTRIBUTORS ``AS IS'' AND ANY * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL * jCharts OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,STRICT LIABILITY, OR TORT * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN * IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE ************************************************************************************************/ package org.krysalis.jcharts.demo.samples; import org.krysalis.jcharts.axisChart.AxisChart; import org.krysalis.jcharts.chartData.AxisChartDataSet; import org.krysalis.jcharts.chartData.ChartDataException; import org.krysalis.jcharts.chartData.DataSeries; import org.krysalis.jcharts.properties.AreaChartProperties; import org.krysalis.jcharts.properties.AxisProperties; import org.krysalis.jcharts.properties.AxisTypeProperties; import org.krysalis.jcharts.properties.ChartProperties; import org.krysalis.jcharts.properties.LegendProperties; import org.krysalis.jcharts.properties.StackedAreaChartProperties; import org.krysalis.jcharts.properties.util.ChartFont; import org.krysalis.jcharts.test.TestDataGenerator; import org.krysalis.jcharts.types.ChartType; import java.awt.*; /************************************************************************************* * * @author Nathaniel Auvil * @version $Id: AreaChartSamples.java,v 1.1 2003/08/09 19:01:20 nathaniel_auvil Exp $ ************************************************************************************/ public class AreaChartSamples extends Sample { protected String getSubdir() { return "area/"; } private AxisChart getAreaChartVerticalLabels() throws ChartDataException { double[][] data= TestDataGenerator.getRandomNumbers( 3, 10, 0, 5000 ); Paint[] paints= TestDataGenerator.getRandomPaints( 3 ); String[] legendLabels= { "Bugs", "Security Holes", "Backdoors" }; AreaChartProperties areaChartProperties= new AreaChartProperties(); AxisChartDataSet axisChartDataSet = new AxisChartDataSet( data, legendLabels, paints, ChartType.AREA, areaChartProperties ); String[] xAxisLabels= { "1995", "1996", "1997", "1998", "1999", "2000", "2001", "2002", "2003", "2004" }; DataSeries dataSeries = new DataSeries( xAxisLabels, "Years", "Incidence", "Micro$oft At Work" ); dataSeries.addIAxisPlotDataSet( axisChartDataSet ); ChartProperties chartProperties= new ChartProperties(); chartProperties.setEdgePadding( 20 ); chartProperties.setTitleFont( new ChartFont( new Font( "Georgia Negreta cursiva", Font.PLAIN, 14 ), Color.black ) ); AxisProperties axisProperties= new AxisProperties( false ); axisProperties.setXAxisLabelsAreVertical( true ); axisProperties.getYAxisProperties().setShowGridLines( AxisTypeProperties.GRID_LINES_ALL ); ChartFont scaleFont= new ChartFont( new Font( "Georgia Negreta cursiva", Font.PLAIN, 13 ), Color.black ); axisProperties.getXAxisProperties().setScaleChartFont( scaleFont ); axisProperties.getYAxisProperties().setScaleChartFont( scaleFont ); ChartFont axisTitleFont= new ChartFont( new Font( "Arial Narrow", Font.PLAIN, 12 ), Color.black ); axisProperties.getXAxisProperties().setAxisTitleChartFont( axisTitleFont ); axisProperties.getYAxisProperties().setAxisTitleChartFont( axisTitleFont ); LegendProperties legendProperties= new LegendProperties(); AxisChart axisChart= new AxisChart( dataSeries, chartProperties, axisProperties, legendProperties, 500, 400 ); return axisChart; } private AxisChart getStackedAreaChart() throws ChartDataException { double[][] data= TestDataGenerator.getRandomNumbers( 3, 10, 0, 5000 ); Paint[] paints= TestDataGenerator.getRandomPaints( 3 ); String[] legendLabels= { "Bugs", "Security Holes", "Backdoors" }; StackedAreaChartProperties stackedAreaChartProperties= new StackedAreaChartProperties(); AxisChartDataSet axisChartDataSet = new AxisChartDataSet( data, legendLabels, paints, ChartType.AREA_STACKED, stackedAreaChartProperties ); String[] xAxisLabels= { "1995", "1996", "1997", "1998", "1999", "2000", "2001", "2002", "2003", "2004" }; DataSeries dataSeries = new DataSeries( xAxisLabels, "Years", "Incidence", "Micro$oft At Work" ); dataSeries.addIAxisPlotDataSet( axisChartDataSet ); ChartProperties chartProperties= new ChartProperties(); chartProperties.setEdgePadding( 20 ); chartProperties.setTitleFont( new ChartFont( new Font( "Georgia Negreta cursiva", Font.PLAIN, 14 ), Color.black ) ); AxisProperties axisProperties= new AxisProperties( false ); axisProperties.setXAxisLabelsAreVertical( true ); axisProperties.getYAxisProperties().setShowGridLines( AxisTypeProperties.GRID_LINES_ALL ); ChartFont scaleFont= new ChartFont( new Font( "Georgia Negreta cursiva", Font.PLAIN, 13 ), Color.black ); axisProperties.getXAxisProperties().setScaleChartFont( scaleFont ); axisProperties.getYAxisProperties().setScaleChartFont( scaleFont ); ChartFont axisTitleFont= new ChartFont( new Font( "Arial Narrow", Font.PLAIN, 12 ), Color.black ); axisProperties.getXAxisProperties().setAxisTitleChartFont( axisTitleFont ); axisProperties.getYAxisProperties().setAxisTitleChartFont( axisTitleFont ); LegendProperties legendProperties= new LegendProperties(); AxisChart axisChart= new AxisChart( dataSeries, chartProperties, axisProperties, legendProperties, 500, 400 ); return axisChart; } protected void render() throws ChartDataException { super.encode( this.getAreaChartVerticalLabels(), "areaChartVertical" ); super.encode( this.getStackedAreaChart(), "stackedAreaChart" ); } } --- NEW FILE: Sample.java --- /*********************************************************************************************** * Copyright 2002 (C) Nathaniel G. Auvil. All Rights Reserved. * * Redistribution and use of this software and associated documentation ("Software"), with or * without modification, are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain copyright statements and notices. * Redistributions must also contain a copy of this document. * * 2. Redistributions in binary form must reproduce the above copyright notice, this list of * conditions and the following disclaimer in the documentation and/or other materials * provided with the distribution. * * 3. The name "jCharts" or "Nathaniel G. Auvil" must not be used to endorse or promote * products derived from this Software without prior written permission of Nathaniel G. * Auvil. For written permission, please contact nat...@us... * * 4. Products derived from this Software may not be called "jCharts" nor may "jCharts" appear * in their names without prior written permission of Nathaniel G. Auvil. jCharts is a * registered trademark of Nathaniel G. Auvil. * * 5. Due credit should be given to the jCharts Project (http://jcharts.sourceforge.net/). * * THIS SOFTWARE IS PROVIDED BY Nathaniel G. Auvil AND CONTRIBUTORS ``AS IS'' AND ANY * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL * jCharts OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,STRICT LIABILITY, OR TORT * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN * IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE ************************************************************************************************/ package org.krysalis.jcharts.demo.samples; import org.krysalis.jcharts.Chart; import org.krysalis.jcharts.chartData.ChartDataException; import org.krysalis.jcharts.encoders.PNGEncoder; import java.io.FileOutputStream; /************************************************************************************* * * @author Nathaniel Auvil * @version $Id: Sample.java,v 1.1 2003/08/09 19:01:20 nathaniel_auvil Exp $ ************************************************************************************/ public abstract class Sample { private static String path; private static final String dir= "/samples/"; protected abstract void render() throws ChartDataException; protected abstract String getSubdir(); /************************************************************************************* * * * @param args * @throws ChartDataException ************************************************************************************/ public static void main( String[] args ) throws ChartDataException { Sample.path= args[ 0 ]; new AreaChartSamples().render(); } /****************************************************************************************** * * @param chart * @param filename *****************************************************************************************/ protected void encode( Chart chart, String filename ) { FileOutputStream fileOutputStream; try { fileOutputStream = new FileOutputStream( path + dir + this.getSubdir() + filename + ".png" ); PNGEncoder.encode( chart, fileOutputStream ); fileOutputStream.flush(); fileOutputStream.close(); } catch( Throwable throwable ) { throwable.printStackTrace(); } } } |