From: <mu...@us...> - 2009-01-16 10:28:31
|
Revision: 1798 http://jfreechart.svn.sourceforge.net/jfreechart/?rev=1798&view=rev Author: mungady Date: 2009-01-16 10:28:29 +0000 (Fri, 16 Jan 2009) Log Message: ----------- Synchronised with 1.0.x branch. Modified Paths: -------------- trunk/source/org/jfree/chart/demo/BarChartDemo1.java trunk/source/org/jfree/chart/demo/TimeSeriesChartDemo1.java Modified: trunk/source/org/jfree/chart/demo/BarChartDemo1.java =================================================================== --- trunk/source/org/jfree/chart/demo/BarChartDemo1.java 2009-01-16 10:14:07 UTC (rev 1797) +++ trunk/source/org/jfree/chart/demo/BarChartDemo1.java 2009-01-16 10:28:29 UTC (rev 1798) @@ -2,7 +2,7 @@ * JFreeChart : a free chart library for the Java(tm) platform * =========================================================== * - * (C) Copyright 2000-2008, by Object Refinery Limited and Contributors. + * (C) Copyright 2000-2009, by Object Refinery Limited and Contributors. * * Project Info: http://www.jfree.org/jfreechart/index.html * @@ -27,7 +27,7 @@ * ------------------ * BarChartDemo1.java * ------------------ - * (C) Copyright 2003-2008, by Object Refinery Limited and Contributors. + * (C) Copyright 2003-2009, by Object Refinery Limited and Contributors. * * Original Author: David Gilbert (for Object Refinery Limited); * Contributor(s): ; @@ -73,7 +73,8 @@ super(title); CategoryDataset dataset = createDataset(); JFreeChart chart = createChart(dataset); - ChartPanel chartPanel = new ChartPanel(chart, false); + ChartPanel chartPanel = new ChartPanel(chart); + chartPanel.setFillZoomRectangle(true); chartPanel.setPreferredSize(new Dimension(500, 270)); setContentPane(chartPanel); } @@ -150,10 +151,6 @@ // get a reference to the plot for further customisation... CategoryPlot plot = (CategoryPlot) chart.getPlot(); - plot.setBackgroundPaint(Color.lightGray); - plot.setDomainGridlinePaint(Color.white); - plot.setDomainGridlinesVisible(true); - plot.setRangeGridlinePaint(Color.white); // ****************************************************************** // More than 150 demo applications are included with the JFreeChart Modified: trunk/source/org/jfree/chart/demo/TimeSeriesChartDemo1.java =================================================================== --- trunk/source/org/jfree/chart/demo/TimeSeriesChartDemo1.java 2009-01-16 10:14:07 UTC (rev 1797) +++ trunk/source/org/jfree/chart/demo/TimeSeriesChartDemo1.java 2009-01-16 10:28:29 UTC (rev 1798) @@ -79,7 +79,6 @@ super(title); ChartPanel chartPanel = (ChartPanel) createDemoPanel(); chartPanel.setPreferredSize(new java.awt.Dimension(500, 270)); - chartPanel.setMouseZoomable(true, false); setContentPane(chartPanel); } @@ -117,6 +116,7 @@ XYLineAndShapeRenderer renderer = (XYLineAndShapeRenderer) r; renderer.setBaseShapesVisible(true); renderer.setBaseShapesFilled(true); + renderer.setDrawSeriesLineAsPath(true); } DateAxis axis = (DateAxis) plot.getDomainAxis(); @@ -196,7 +196,9 @@ */ public static JPanel createDemoPanel() { JFreeChart chart = createChart(createDataset()); - return new ChartPanel(chart); + ChartPanel panel = new ChartPanel(chart); + panel.setFillZoomRectangle(true); + return panel; } /** This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |