You can subscribe to this list here.
2005 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(165) |
Nov
(296) |
Dec
(92) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2006 |
Jan
(84) |
Feb
(20) |
Mar
(20) |
Apr
(42) |
May
(26) |
Jun
(30) |
Jul
(77) |
Aug
(151) |
Sep
(61) |
Oct
(259) |
Nov
(160) |
Dec
(76) |
2007 |
Jan
(159) |
Feb
(155) |
Mar
(183) |
Apr
(113) |
May
(110) |
Jun
(178) |
Jul
(56) |
Aug
(21) |
Sep
(50) |
Oct
(251) |
Nov
(218) |
Dec
(42) |
2008 |
Jan
(14) |
Feb
(37) |
Mar
(60) |
Apr
(77) |
May
(146) |
Jun
(256) |
Jul
(72) |
Aug
(51) |
Sep
(283) |
Oct
(22) |
Nov
(55) |
Dec
(53) |
2009 |
Jan
(56) |
Feb
(45) |
Mar
(56) |
Apr
(98) |
May
(84) |
Jun
(87) |
Jul
(32) |
Aug
(6) |
Sep
(19) |
Oct
|
Nov
(10) |
Dec
(6) |
2010 |
Jan
(2) |
Feb
(6) |
Mar
(2) |
Apr
|
May
|
Jun
|
Jul
(1) |
Aug
(1) |
Sep
|
Oct
(1) |
Nov
|
Dec
|
2011 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(1) |
Oct
(158) |
Nov
(17) |
Dec
(15) |
2012 |
Jan
(9) |
Feb
(3) |
Mar
(1) |
Apr
|
May
(1) |
Jun
(1) |
Jul
(22) |
Aug
(1) |
Sep
(29) |
Oct
(1) |
Nov
|
Dec
|
2013 |
Jan
(5) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
(259) |
Aug
(125) |
Sep
(24) |
Oct
(8) |
Nov
(132) |
Dec
(3) |
2014 |
Jan
(3) |
Feb
(26) |
Mar
(17) |
Apr
(8) |
May
|
Jun
(31) |
Jul
(126) |
Aug
(22) |
Sep
(1) |
Oct
|
Nov
|
Dec
|
2015 |
Jan
(1) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(21) |
Oct
|
Nov
(1) |
Dec
|
2016 |
Jan
(19) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: David G. <mu...@us...> - 2005-11-02 14:10:40
|
Update of /cvsroot/jfreechart/jcommon In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12333 Modified Files: CHANGELOG.txt Log Message: Fixed bug 1344319. Index: CHANGELOG.txt =================================================================== RCS file: /cvsroot/jfreechart/jcommon/CHANGELOG.txt,v retrieving revision 1.43 retrieving revision 1.44 diff -C2 -d -r1.43 -r1.44 *** CHANGELOG.txt 21 Sep 2005 14:37:57 -0000 1.43 --- CHANGELOG.txt 2 Nov 2005 14:10:32 -0000 1.44 *************** *** 4,7 **** --- 4,10 ---- Please add new items at the top: + 02-Nov-2005 : [BUG] Fixed a bug in the DateChooserPanel - see bug id + 1344319 (DG); + 07-Sep-2005 : [API] Fixed the logging initialization code and slightly modified the HierarchicalConfiguration. Its old design |
From: David G. <mu...@us...> - 2005-11-02 13:33:56
|
Update of /cvsroot/jfreechart/jfreechart In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5111 Modified Files: ChangeLog Log Message: 02-11-2005 David Gilbert <dav...@ob...> * source/org/jfree/data/time/Month.java (Month(int, Year)): changed '&&' to '||' in argument check, fixes bug 1345383. Index: ChangeLog =================================================================== RCS file: /cvsroot/jfreechart/jfreechart/ChangeLog,v retrieving revision 1.40 retrieving revision 1.41 diff -C2 -d -r1.40 -r1.41 *** ChangeLog 2 Nov 2005 13:13:13 -0000 1.40 --- ChangeLog 2 Nov 2005 13:33:44 -0000 1.41 *************** *** 1,3 **** ! 02-11-2005 David Gilbert <dav...@ob...> * source/org/jfree/chart/ChartRenderingInfo.java --- 1,9 ---- ! 2005-11-02 David Gilbert <dav...@ob...> ! ! * source/org/jfree/data/time/Month.java ! (Month(int, Year)): changed '&&' to '||' in argument check, fixes ! bug 1345383. ! ! 2005-11-02 David Gilbert <dav...@ob...> * source/org/jfree/chart/ChartRenderingInfo.java *************** *** 10,14 **** (owner): removed transient keyword. ! 01-11-2005 David Gilbert <dav...@ob...> * ant/build.xml: exclude SunJPEGEncoderAdapter.java from the build if --- 16,20 ---- (owner): removed transient keyword. ! 2005-11-01 David Gilbert <dav...@ob...> * ant/build.xml: exclude SunJPEGEncoderAdapter.java from the build if *************** *** 20,24 **** (encode): use ImageIO, not com.sun.* classes. ! 01-11-2005 David Gilbert <dav...@ob...> * source/org/jfree/chart/renderer/xy/HighLowRenderer.java --- 26,30 ---- (encode): use ImageIO, not com.sun.* classes. ! 2005-11-01 David Gilbert <dav...@ob...> * source/org/jfree/chart/renderer/xy/HighLowRenderer.java *************** *** 38,47 **** (testSerialization): updated for new fields. ! 01-11-2005 David Gilbert <dav...@ob...> * source/org/jfree/chart/renderer/xy/HighLow.java: Removed unused class. ! 28-10-2005 David Gilbert <dav...@ob...> * source/org/jfree/chart/block/ACIUtilities.java --- 44,53 ---- (testSerialization): updated for new fields. ! 2005-11-01 David Gilbert <dav...@ob...> * source/org/jfree/chart/renderer/xy/HighLow.java: Removed unused class. ! 2005-10-28 David Gilbert <dav...@ob...> * source/org/jfree/chart/block/ACIUtilities.java *************** *** 60,68 **** (createTextLine): replace constants with new fields. ! 28-10-2005 David Gilbert <dav...@ob...> * source/org/jfree/chart/block/ACIUtilities.java: reformatted. ! 28-10-2005 David Gilbert <dav...@ob...> * source/org/jfree/chart/block/LabelBlock.java --- 66,74 ---- (createTextLine): replace constants with new fields. ! 2005-10-28 David Gilbert <dav...@ob...> * source/org/jfree/chart/block/ACIUtilities.java: reformatted. ! 2005-20-28 David Gilbert <dav...@ob...> * source/org/jfree/chart/block/LabelBlock.java *************** *** 80,84 **** (arrangeNN): new method. ! 28-10-2005 David Gilbert <dav...@ob...> * source/org/jfree/chart/block/ColumnArrangement.java --- 86,90 ---- (arrangeNN): new method. ! 2005-10-28 David Gilbert <dav...@ob...> * source/org/jfree/chart/block/ColumnArrangement.java *************** *** 87,91 **** (arrangeNF): updated for new arrange() method return type. ! 28-10-2005 David Gilbert <dav...@ob...> * source/org/jfree/chart/block/BlockPanel.java --- 93,97 ---- (arrangeNF): updated for new arrange() method return type. ! 2005-10-28 David Gilbert <dav...@ob...> * source/org/jfree/chart/block/BlockPanel.java *************** *** 94,98 **** (paintComponent): reformatted for 80 columns. ! 28-10-2005 David Gilbert <dav...@ob...> * source/org/jfree/chart/title/LegendTitle.java --- 100,104 ---- (paintComponent): reformatted for 80 columns. ! 2005-10-28 David Gilbert <dav...@ob...> * source/org/jfree/chart/title/LegendTitle.java *************** *** 103,112 **** (arrange): removed redundant code. ! 28-10-2005 David Gilbert <dav...@ob...> * source/org/jfree/chart/block/BlockContainer.java (arrange): fetch recyclable result after content is arranged. ! 28-10-2005 David Gilbert <dav...@ob...> * source/org/jfree/chart/title/LegendGraphic.java: now implements --- 109,118 ---- (arrange): removed redundant code. ! 2005-10-28 David Gilbert <dav...@ob...> * source/org/jfree/chart/block/BlockContainer.java (arrange): fetch recyclable result after content is arranged. ! 2005-10-28 David Gilbert <dav...@ob...> * source/org/jfree/chart/title/LegendGraphic.java: now implements *************** *** 124,133 **** (readObject): new method. ! 28-10-2005 David Gilbert <dav...@ob...> * source/org/jfree/chart/title/AttributedTextTitle.java (arrangeFF): add message logging. ! 28-10-2005 David Gilbert <dav...@ob...> * source/org/jfree/chart/LegendItem.java --- 130,139 ---- (readObject): new method. ! 2005-10-28 David Gilbert <dav...@ob...> * source/org/jfree/chart/title/AttributedTextTitle.java (arrangeFF): add message logging. ! 2005-10-28 David Gilbert <dav...@ob...> * source/org/jfree/chart/LegendItem.java *************** *** 138,147 **** (readObject): handle serialization of attributedLabel. ! 28-10-2005 David Gilbert <dav...@ob...> * source/org/jfree/chart/NestedGrid.java (arrangeNN): added null check for messages. ! 28-10-2005 David Gilbert <dav...@ob...> * source/org/jfree/chart/block/ArrangeParams.java --- 144,153 ---- (readObject): handle serialization of attributedLabel. ! 2005-10-28 David Gilbert <dav...@ob...> * source/org/jfree/chart/NestedGrid.java (arrangeNN): added null check for messages. ! 2005-10-28 David Gilbert <dav...@ob...> * source/org/jfree/chart/block/ArrangeParams.java *************** *** 150,154 **** (toString): new method. ! 27-10-2005 David Gilbert <dav...@ob...> * source/org/jfree/chart/plot/PiePlot.java --- 156,160 ---- (toString): new method. ! 2005-10-28 David Gilbert <dav...@ob...> * source/org/jfree/chart/plot/PiePlot.java *************** *** 163,167 **** into StandardPieSectionLabelGenerator and StandardPieToolTipGenerator. ! 27-10-2005 David Gilbert <dav...@ob...> * source/org/jfree/chart/plot/RingPlot.java --- 169,173 ---- into StandardPieSectionLabelGenerator and StandardPieToolTipGenerator. ! 2005-10-28 David Gilbert <dav...@ob...> * source/org/jfree/chart/plot/RingPlot.java *************** *** 180,184 **** (testEquals): updated for renamed methods. ! 27-10-2005 David Gilbert <dav...@ob...> * source/org/jfree/chart/plot/Marker.java --- 186,190 ---- (testEquals): updated for renamed methods. ! 2005-10-27 David Gilbert <dav...@ob...> * source/org/jfree/chart/plot/Marker.java *************** *** 186,190 **** private. ! 27-10-2005 David Gilbert <dav...@ob...> * source/org/jfree/chart/labels/junit/LabelsPackageTests.java --- 192,196 ---- private. ! 2005-10-27 David Gilbert <dav...@ob...> * source/org/jfree/chart/labels/junit/LabelsPackageTests.java *************** *** 196,200 **** new file. ! 27-10-2005 David Gilbert <dav...@ob...> * source/org/jfree/chart/labels/PieSectionLabelGenerator.java --- 202,206 ---- new file. ! 2005-10-27 David Gilbert <dav...@ob...> * source/org/jfree/chart/labels/PieSectionLabelGenerator.java *************** *** 209,223 **** (generateToolTip): removed. ! 27-10-2005 David Gilbert <dav...@ob...> * source/org/jfree/chart/axis/SymbolicTickUnit.java: removed this class as it is no longer used. ! 27-10-2005 David Gilbert <dav...@ob...> * source/org/jfree/chart/axis/SymbolicAxis.java: removed this file, it has been renamed SymbolAxis.java. ! 27-10-2005 David Gilbert <dav...@ob...> * source/org/jfree/chart/axis/NumberTickUnit.java --- 215,229 ---- (generateToolTip): removed. ! 2005-10-27 David Gilbert <dav...@ob...> * source/org/jfree/chart/axis/SymbolicTickUnit.java: removed this class as it is no longer used. ! 2005-10-27 David Gilbert <dav...@ob...> * source/org/jfree/chart/axis/SymbolicAxis.java: removed this file, it has been renamed SymbolAxis.java. ! 2005-10-27 David Gilbert <dav...@ob...> * source/org/jfree/chart/axis/NumberTickUnit.java *************** *** 225,229 **** IllegalArgumentException for consistency. ! 27-10-2005 David Gilbert <dav...@ob...> * source/org/jfree/chart/title/junit/LegendGraphicTests.java: --- 231,235 ---- IllegalArgumentException for consistency. ! 2005-10-27 David Gilbert <dav...@ob...> * source/org/jfree/chart/title/junit/LegendGraphicTests.java: *************** *** 232,241 **** (suite): add LegendGraphicTests. ! 27-10-2005 David Gilbert <dav...@ob...> * source/org/jfree/data/general/junit/DatasetUtilitiesTests.java (testIteratorXYRangeBounds2): new test. ! 25-10-2005 David Gilbert <dav...@ob...> * source/org/jfree/data/category/DefaultIntervalCategoryDataset.java --- 238,247 ---- (suite): add LegendGraphicTests. ! 2005-10-27 David Gilbert <dav...@ob...> * source/org/jfree/data/general/junit/DatasetUtilitiesTests.java (testIteratorXYRangeBounds2): new test. ! 2005-10-27 David Gilbert <dav...@ob...> * source/org/jfree/data/category/DefaultIntervalCategoryDataset.java *************** *** 255,259 **** (getRowKey(int)): likewise. ! 25-10-2005 David Gilbert <dav...@ob...> * source/org/jfree/chart/plot/PolarPlot.java: now implements Zoomable --- 261,265 ---- (getRowKey(int)): likewise. ! 2005-10-25 David Gilbert <dav...@ob...> * source/org/jfree/chart/plot/PolarPlot.java: now implements Zoomable *************** *** 278,302 **** (drawRadialGridLines): removed commented out code. ! 20-10-2005 David Gilbert <dav...@ob...> * source/org/jfree/chart/axis/TickUnits.java (getCeilingTickUnit): don't pass null to NumberTickUnit constructor. ! 14-10-2005 David Gilbert <dav...@ob...> * source/org/jfree/chart/renderer/xy/XYBarRenderer.java (drawItem): fixed bar coordinates to work with inverted axes. ! 14-10-2005 David Gilbert <dav...@ob...> * source/org/jfree/chart/ChartPanel.java (chartChanged): check chart orientation, which may have changed. ! 06-10-2005 David Gilbert <dav...@ob...> * source/org/jfree/chart/renderer/xy/XYBoxAndWhiskerRenderer.java (drawItem): removed setPaint() call. ! 06-10-2005 David Gilbert <dav...@ob...> * source/org/jfree/data/junit/DefaultKeyedValues2DTests.java --- 284,308 ---- (drawRadialGridLines): removed commented out code. ! 2005-10-20 David Gilbert <dav...@ob...> * source/org/jfree/chart/axis/TickUnits.java (getCeilingTickUnit): don't pass null to NumberTickUnit constructor. ! 2005-10-14 David Gilbert <dav...@ob...> * source/org/jfree/chart/renderer/xy/XYBarRenderer.java (drawItem): fixed bar coordinates to work with inverted axes. ! 2005-10-14 David Gilbert <dav...@ob...> * source/org/jfree/chart/ChartPanel.java (chartChanged): check chart orientation, which may have changed. ! 2005-10-06 David Gilbert <dav...@ob...> * source/org/jfree/chart/renderer/xy/XYBoxAndWhiskerRenderer.java (drawItem): removed setPaint() call. ! 2005-10-06 David Gilbert <dav...@ob...> * source/org/jfree/data/junit/DefaultKeyedValues2DTests.java *************** *** 360,369 **** (testEquals): updated for method name change. ! 03-10-2005 David Gilbert <dav...@ob...> * source/org/jfree/chart/renderer/xy/StackedXYAreaRenderer2.java (drawItem): add an entity to the collection if supplied. ! 30-09-2005 David Gilbert <dav...@ob...> * source/org/jfree/chart/renderer/category/LineAndShapeRenderer.java --- 366,375 ---- (testEquals): updated for method name change. ! 2005-10-03 David Gilbert <dav...@ob...> * source/org/jfree/chart/renderer/xy/StackedXYAreaRenderer2.java (drawItem): add an entity to the collection if supplied. ! 2005-09-30 David Gilbert <dav...@ob...> * source/org/jfree/chart/renderer/category/LineAndShapeRenderer.java *************** *** 416,420 **** (checkIndependence): updated for new fields. ! 30-09-2005 David Gilbert <dav...@ob...> * source/org/jfree/chart/ChartFactory.java --- 422,426 ---- (checkIndependence): updated for new fields. ! 2005-09-30 David Gilbert <dav...@ob...> * source/org/jfree/chart/ChartFactory.java *************** *** 428,432 **** (updatePlotProperties): likewise. ! 30-09-2005 David Gilbert <dav...@ob...> * source/org/jfree/chart/renderer/xy/StandardXYItemRenderer.java --- 434,438 ---- (updatePlotProperties): likewise. ! 2005-09-30 David Gilbert <dav...@ob...> * source/org/jfree/chart/renderer/xy/StandardXYItemRenderer.java *************** *** 466,470 **** likewise. ! 30-09-2005 David Gilbert <dav...@ob...> * source/org/jfree/chart/ChartFactory.java --- 472,476 ---- likewise. ! 2005-09-30 David Gilbert <dav...@ob...> * source/org/jfree/chart/ChartFactory.java *************** *** 477,481 **** (createMultiplePieChart3D): likewise. ! 30-09-2005 David Gilbert <dav...@ob...> * source/org/jfree/chart/renderer/category/GroupedStackedBarRenderer.java --- 483,487 ---- (createMultiplePieChart3D): likewise. ! 2005-09-30 David Gilbert <dav...@ob...> * source/org/jfree/chart/renderer/category/GroupedStackedBarRenderer.java *************** *** 485,489 **** (drawItem): use base field. ! 30-09-2005 David Gilbert <dav...@ob...> * source/org/jfree/chart/renderer/category/BarRenderer.java --- 491,495 ---- (drawItem): use base field. ! 2005-09-30 David Gilbert <dav...@ob...> * source/org/jfree/chart/renderer/category/BarRenderer.java *************** *** 498,502 **** (findStackedRangeBounds(CategoryDataset, double): new method. ! 30-09-2005 David Gilbert <dav...@ob...> * source/org/jfree/chart/renderer/category/StackedBarRenderer.java --- 504,508 ---- (findStackedRangeBounds(CategoryDataset, double): new method. ! 2005-09-30 David Gilbert <dav...@ob...> * source/org/jfree/chart/renderer/category/StackedBarRenderer.java |
From: David G. <mu...@us...> - 2005-11-02 13:33:55
|
Update of /cvsroot/jfreechart/jfreechart/source/org/jfree/data/time In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5111/source/org/jfree/data/time Modified Files: Month.java Log Message: 02-11-2005 David Gilbert <dav...@ob...> * source/org/jfree/data/time/Month.java (Month(int, Year)): changed '&&' to '||' in argument check, fixes bug 1345383. Index: Month.java =================================================================== RCS file: /cvsroot/jfreechart/jfreechart/source/org/jfree/data/time/Month.java,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** Month.java 19 May 2005 10:35:27 -0000 1.7 --- Month.java 2 Nov 2005 13:33:44 -0000 1.8 *************** *** 52,55 **** --- 52,56 ---- * Serializable (DG); * 21-Oct-2003 : Added hashCode() method (DG); + * 02-Nov-2005 : Fixed bug 1345383 (argument check in constructor) (DG); * */ *************** *** 105,109 **** public Month(int month, Year year) { ! if ((month < 1) && (month > 12)) { throw new IllegalArgumentException("Month outside valid range."); } --- 106,110 ---- public Month(int month, Year year) { ! if ((month < 1) || (month > 12)) { throw new IllegalArgumentException("Month outside valid range."); } |
From: David G. <mu...@us...> - 2005-11-02 13:20:37
|
Update of /cvsroot/jfreechart/jfreechart/source/org/jfree/data/time In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1321/source/org/jfree/data/time Modified Files: Tag: STABLE_1-0-0 Month.java Log Message: 02-11-2005 David Gilbert <dav...@ob...> * source/org/jfree/data/time/Month.java (Month(int, Year)): changed '&&' to '||' in argument check, fixes bug 1345383. Index: Month.java =================================================================== RCS file: /cvsroot/jfreechart/jfreechart/source/org/jfree/data/time/Month.java,v retrieving revision 1.7.2.1 retrieving revision 1.7.2.2 diff -C2 -d -r1.7.2.1 -r1.7.2.2 *** Month.java 25 Oct 2005 21:35:24 -0000 1.7.2.1 --- Month.java 2 Nov 2005 13:20:29 -0000 1.7.2.2 *************** *** 53,56 **** --- 53,57 ---- * Serializable (DG); * 21-Oct-2003 : Added hashCode() method (DG); + * 01-Nov-2005 : Fixed bug 1345383 (argument check in constructor) (DG); * */ *************** *** 106,110 **** public Month(int month, Year year) { ! if ((month < 1) && (month > 12)) { throw new IllegalArgumentException("Month outside valid range."); } --- 107,111 ---- public Month(int month, Year year) { ! if ((month < 1) || (month > 12)) { throw new IllegalArgumentException("Month outside valid range."); } |
From: David G. <mu...@us...> - 2005-11-02 13:20:37
|
Update of /cvsroot/jfreechart/jfreechart In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1321 Modified Files: Tag: STABLE_1-0-0 ChangeLog Log Message: 02-11-2005 David Gilbert <dav...@ob...> * source/org/jfree/data/time/Month.java (Month(int, Year)): changed '&&' to '||' in argument check, fixes bug 1345383. Index: ChangeLog =================================================================== RCS file: /cvsroot/jfreechart/jfreechart/ChangeLog,v retrieving revision 1.1.2.19 retrieving revision 1.1.2.20 diff -C2 -d -r1.1.2.19 -r1.1.2.20 *** ChangeLog 2 Nov 2005 12:56:09 -0000 1.1.2.19 --- ChangeLog 2 Nov 2005 13:20:29 -0000 1.1.2.20 *************** *** 1,4 **** --- 1,10 ---- 02-11-2005 David Gilbert <dav...@ob...> + * source/org/jfree/data/time/Month.java + (Month(int, Year)): changed '&&' to '||' in argument check, fixes + bug 1345383. + + 02-11-2005 David Gilbert <dav...@ob...> + * source/org/jfree/chart/ChartRenderingInfo.java (equals): updated to include plotArea and plotInfo, |
From: David G. <mu...@us...> - 2005-11-02 13:13:28
|
Update of /cvsroot/jfreechart/jfreechart In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31657 Modified Files: ChangeLog Log Message: 02-11-2005 David Gilbert <dav...@ob...> * source/org/jfree/chart/ChartRenderingInfo.java (equals): updated to include plotArea and plotInfo, * source/org/jfree/chart/junit/ChartRenderingInfoTests.java (testEquals): expanded to test all fields, (testSerialization): changed initialisation of object to be serialized, (testSerialization2): new test, * source/org/jfree/chart/plot/PlotRenderingInfo.java (owner): removed transient keyword. ---------------------------------------------------------------------- Index: ChangeLog =================================================================== RCS file: /cvsroot/jfreechart/jfreechart/ChangeLog,v retrieving revision 1.39 retrieving revision 1.40 diff -C2 -d -r1.39 -r1.40 *** ChangeLog 1 Nov 2005 17:04:16 -0000 1.39 --- ChangeLog 2 Nov 2005 13:13:13 -0000 1.40 *************** *** 1,2 **** --- 1,13 ---- + 02-11-2005 David Gilbert <dav...@ob...> + + * source/org/jfree/chart/ChartRenderingInfo.java + (equals): updated to include plotArea and plotInfo, + * source/org/jfree/chart/junit/ChartRenderingInfoTests.java + (testEquals): expanded to test all fields, + (testSerialization): changed initialisation of object to be serialized, + (testSerialization2): new test, + * source/org/jfree/chart/plot/PlotRenderingInfo.java + (owner): removed transient keyword. + 01-11-2005 David Gilbert <dav...@ob...> |
From: David G. <mu...@us...> - 2005-11-02 13:13:28
|
Update of /cvsroot/jfreechart/jfreechart/source/org/jfree/chart In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31657/source/org/jfree/chart Modified Files: ChartRenderingInfo.java Log Message: 02-11-2005 David Gilbert <dav...@ob...> * source/org/jfree/chart/ChartRenderingInfo.java (equals): updated to include plotArea and plotInfo, * source/org/jfree/chart/junit/ChartRenderingInfoTests.java (testEquals): expanded to test all fields, (testSerialization): changed initialisation of object to be serialized, (testSerialization2): new test, * source/org/jfree/chart/plot/PlotRenderingInfo.java (owner): removed transient keyword. ---------------------------------------------------------------------- Index: ChartRenderingInfo.java =================================================================== RCS file: /cvsroot/jfreechart/jfreechart/source/org/jfree/chart/ChartRenderingInfo.java,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** ChartRenderingInfo.java 19 May 2005 15:40:56 -0000 1.4 --- ChartRenderingInfo.java 2 Nov 2005 13:13:13 -0000 1.5 *************** *** 17,23 **** * License for more details. * ! * You should have received a copy of the GNU Lesser General Public License ! * along with this library; if not, write to the Free Software Foundation, ! * Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA. * * [Java is a trademark or registered trademark of Sun Microsystems, Inc. --- 17,24 ---- * License for more details. * ! * You should have received a copy of the GNU Lesser General Public ! * License along with this library; if not, write to the Free Software ! * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, ! * USA. * * [Java is a trademark or registered trademark of Sun Microsystems, Inc. *************** *** 42,45 **** --- 43,47 ---- * 26-Sep-2002 : Fixed errors reported by Checkstyle (DG); * 17-Sep-2003 : Added PlotRenderingInfo (DG); + * 01-Nov-2005 : Updated equals() method (DG); * */ *************** *** 205,216 **** return true; } ! if (obj instanceof ChartRenderingInfo) { ! ChartRenderingInfo cri = (ChartRenderingInfo) obj; ! if (!ObjectUtilities.equal(this.chartArea, cri.chartArea)) { ! return false; ! } ! return true; } ! return false; } --- 207,224 ---- return true; } ! if (!(obj instanceof ChartRenderingInfo)) { ! return false; } ! ChartRenderingInfo that = (ChartRenderingInfo) obj; ! if (!ObjectUtilities.equal(this.chartArea, that.chartArea)) { ! return false; ! } ! if (!ObjectUtilities.equal(this.plotArea, that.plotArea)) { ! return false; ! } ! if (!ObjectUtilities.equal(this.plotInfo, that.plotInfo)) { ! return false; ! } ! return true; } |
From: David G. <mu...@us...> - 2005-11-02 13:13:27
|
Update of /cvsroot/jfreechart/jfreechart/source/org/jfree/chart/junit In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31657/source/org/jfree/chart/junit Modified Files: ChartRenderingInfoTests.java Log Message: 02-11-2005 David Gilbert <dav...@ob...> * source/org/jfree/chart/ChartRenderingInfo.java (equals): updated to include plotArea and plotInfo, * source/org/jfree/chart/junit/ChartRenderingInfoTests.java (testEquals): expanded to test all fields, (testSerialization): changed initialisation of object to be serialized, (testSerialization2): new test, * source/org/jfree/chart/plot/PlotRenderingInfo.java (owner): removed transient keyword. ---------------------------------------------------------------------- Index: ChartRenderingInfoTests.java =================================================================== RCS file: /cvsroot/jfreechart/jfreechart/source/org/jfree/chart/junit/ChartRenderingInfoTests.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** ChartRenderingInfoTests.java 18 Mar 2005 22:37:26 -0000 1.2 --- ChartRenderingInfoTests.java 2 Nov 2005 13:13:13 -0000 1.3 *************** *** 17,23 **** * License for more details. * ! * You should have received a copy of the GNU Lesser General Public License ! * along with this library; if not, write to the Free Software Foundation, ! * Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA. * * [Java is a trademark or registered trademark of Sun Microsystems, Inc. --- 17,24 ---- * License for more details. * ! * You should have received a copy of the GNU Lesser General Public ! * License along with this library; if not, write to the Free Software ! * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, ! * USA. * * [Java is a trademark or registered trademark of Sun Microsystems, Inc. *************** *** 42,45 **** --- 43,47 ---- package org.jfree.chart.junit; + import java.awt.geom.Rectangle2D; import java.io.ByteArrayInputStream; import java.io.ByteArrayOutputStream; *************** *** 86,90 **** ChartRenderingInfo i2 = new ChartRenderingInfo(); assertTrue(i1.equals(i2)); ! } --- 88,106 ---- ChartRenderingInfo i2 = new ChartRenderingInfo(); assertTrue(i1.equals(i2)); ! ! i1.setChartArea(new Rectangle2D.Double(1.0, 2.0, 3.0, 4.0)); ! assertFalse(i1.equals(i2)); ! i2.setChartArea(new Rectangle2D.Double(1.0, 2.0, 3.0, 4.0)); ! assertTrue(i1.equals(i2)); ! ! i1.setPlotArea(new Rectangle2D.Double(5.0, 6.0, 7.0, 8.0)); ! assertFalse(i1.equals(i2)); ! i2.setPlotArea(new Rectangle2D.Double(5.0, 6.0, 7.0, 8.0)); ! assertTrue(i1.equals(i2)); ! ! i1.getPlotInfo().setDataArea(new Rectangle2D.Double(1.0, 1.0, 1.0, 1.0)); ! assertFalse(i1.equals(i2)); ! i2.getPlotInfo().setDataArea(new Rectangle2D.Double(1.0, 1.0, 1.0, 1.0)); ! assertTrue(i1.equals(i2)); } *************** *** 112,115 **** --- 128,133 ---- ChartRenderingInfo i1 = new ChartRenderingInfo(); + i1.setChartArea(new Rectangle2D.Double(1.0, 2.0, 3.0, 4.0)); + i1.setPlotArea(new Rectangle2D.Double(5.0, 6.0, 7.0, 8.0)); ChartRenderingInfo i2 = null; try { *************** *** 126,130 **** } catch (Exception e) { ! System.out.println(e.toString()); } assertEquals(i1, i2); --- 144,148 ---- } catch (Exception e) { ! e.printStackTrace(); } assertEquals(i1, i2); *************** *** 132,134 **** --- 150,180 ---- } + /** + * Serialize an instance, restore it, and check for equality. + */ + public void testSerialization2() { + + ChartRenderingInfo i1 = new ChartRenderingInfo(); + i1.getPlotInfo().setDataArea(new Rectangle2D.Double(1.0, 2.0, 3.0, + 4.0)); + ChartRenderingInfo i2 = null; + try { + ByteArrayOutputStream buffer = new ByteArrayOutputStream(); + ObjectOutput out = new ObjectOutputStream(buffer); + out.writeObject(i1); + out.close(); + + ObjectInput in = new ObjectInputStream( + new ByteArrayInputStream(buffer.toByteArray()) + ); + i2 = (ChartRenderingInfo) in.readObject(); + in.close(); + } + catch (Exception e) { + e.printStackTrace(); + } + assertEquals(i1, i2); + assertEquals(i2, i2.getPlotInfo().getOwner()); + + } } \ No newline at end of file |
From: David G. <mu...@us...> - 2005-11-02 13:13:27
|
Update of /cvsroot/jfreechart/jfreechart/source/org/jfree/chart/plot In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31657/source/org/jfree/chart/plot Modified Files: PlotRenderingInfo.java Log Message: 02-11-2005 David Gilbert <dav...@ob...> * source/org/jfree/chart/ChartRenderingInfo.java (equals): updated to include plotArea and plotInfo, * source/org/jfree/chart/junit/ChartRenderingInfoTests.java (testEquals): expanded to test all fields, (testSerialization): changed initialisation of object to be serialized, (testSerialization2): new test, * source/org/jfree/chart/plot/PlotRenderingInfo.java (owner): removed transient keyword. ---------------------------------------------------------------------- Index: PlotRenderingInfo.java =================================================================== RCS file: /cvsroot/jfreechart/jfreechart/source/org/jfree/chart/plot/PlotRenderingInfo.java,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** PlotRenderingInfo.java 19 May 2005 14:03:40 -0000 1.5 --- PlotRenderingInfo.java 2 Nov 2005 13:13:14 -0000 1.6 *************** *** 17,23 **** * License for more details. * ! * You should have received a copy of the GNU Lesser General Public License ! * along with this library; if not, write to the Free Software Foundation, ! * Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA. * * [Java is a trademark or registered trademark of Sun Microsystems, Inc. --- 17,24 ---- * License for more details. * ! * You should have received a copy of the GNU Lesser General Public ! * License along with this library; if not, write to the Free Software ! * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, ! * USA. * * [Java is a trademark or registered trademark of Sun Microsystems, Inc. *************** *** 27,31 **** * PlotRenderingInfo.java * ---------------------- ! * (C) Copyright 2003, 2004, by Object Refinery Limited. * * Original Author: David Gilbert (for Object Refinery Limited); --- 28,32 ---- * PlotRenderingInfo.java * ---------------------- ! * (C) Copyright 2003-2005, by Object Refinery Limited. * * Original Author: David Gilbert (for Object Refinery Limited); *************** *** 39,42 **** --- 40,44 ---- * 23-Sep-2003 : Added Javadocs (DG); * 12-Nov-2004 : Added getSubplotCount() and findSubplot() methods (DG); + * 01-Nov-2005 : Made 'owner' non-transient to fix bug 1344048 (DG); * */ *************** *** 65,69 **** /** The owner of this info. */ ! private transient ChartRenderingInfo owner; /** The plot area. */ --- 67,71 ---- /** The owner of this info. */ ! private ChartRenderingInfo owner; /** The plot area. */ |
From: David G. <mu...@us...> - 2005-11-02 12:56:21
|
Update of /cvsroot/jfreechart/jfreechart In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23329 Modified Files: Tag: STABLE_1-0-0 ChangeLog Log Message: 02-11-2005 David Gilbert <dav...@ob...> * source/org/jfree/chart/ChartRenderingInfo.java (equals): updated to include plotArea and plotInfo, * source/org/jfree/chart/junit/ChartRenderingInfoTests.java (testEquals): expanded to test all fields, (testSerialization): changed initialisation of object to be serialized, (testSerialization2): new test, * source/org/jfree/chart/plot/PlotRenderingInfo.java (owner): removed transient keyword. Index: ChangeLog =================================================================== RCS file: /cvsroot/jfreechart/jfreechart/ChangeLog,v retrieving revision 1.1.2.18 retrieving revision 1.1.2.19 diff -C2 -d -r1.1.2.18 -r1.1.2.19 *** ChangeLog 1 Nov 2005 21:39:53 -0000 1.1.2.18 --- ChangeLog 2 Nov 2005 12:56:09 -0000 1.1.2.19 *************** *** 1,2 **** --- 1,13 ---- + 02-11-2005 David Gilbert <dav...@ob...> + + * source/org/jfree/chart/ChartRenderingInfo.java + (equals): updated to include plotArea and plotInfo, + * source/org/jfree/chart/junit/ChartRenderingInfoTests.java + (testEquals): expanded to test all fields, + (testSerialization): changed initialisation of object to be serialized, + (testSerialization2): new test, + * source/org/jfree/chart/plot/PlotRenderingInfo.java + (owner): removed transient keyword. + 01-11-2005 David Gilbert <dav...@ob...> |
From: David G. <mu...@us...> - 2005-11-02 12:56:21
|
Update of /cvsroot/jfreechart/jfreechart/source/org/jfree/chart/plot In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23329/source/org/jfree/chart/plot Modified Files: Tag: STABLE_1-0-0 PlotRenderingInfo.java Log Message: 02-11-2005 David Gilbert <dav...@ob...> * source/org/jfree/chart/ChartRenderingInfo.java (equals): updated to include plotArea and plotInfo, * source/org/jfree/chart/junit/ChartRenderingInfoTests.java (testEquals): expanded to test all fields, (testSerialization): changed initialisation of object to be serialized, (testSerialization2): new test, * source/org/jfree/chart/plot/PlotRenderingInfo.java (owner): removed transient keyword. Index: PlotRenderingInfo.java =================================================================== RCS file: /cvsroot/jfreechart/jfreechart/source/org/jfree/chart/plot/PlotRenderingInfo.java,v retrieving revision 1.5.2.1 retrieving revision 1.5.2.2 diff -C2 -d -r1.5.2.1 -r1.5.2.2 *** PlotRenderingInfo.java 25 Oct 2005 20:52:08 -0000 1.5.2.1 --- PlotRenderingInfo.java 2 Nov 2005 12:56:10 -0000 1.5.2.2 *************** *** 28,32 **** * PlotRenderingInfo.java * ---------------------- ! * (C) Copyright 2003, 2004, by Object Refinery Limited. * * Original Author: David Gilbert (for Object Refinery Limited); --- 28,32 ---- * PlotRenderingInfo.java * ---------------------- ! * (C) Copyright 2003-2005, by Object Refinery Limited. * * Original Author: David Gilbert (for Object Refinery Limited); *************** *** 40,43 **** --- 40,44 ---- * 23-Sep-2003 : Added Javadocs (DG); * 12-Nov-2004 : Added getSubplotCount() and findSubplot() methods (DG); + * 01-Nov-2005 : Made 'owner' non-transient to fix bug 1344048 (DG); * */ *************** *** 66,70 **** /** The owner of this info. */ ! private transient ChartRenderingInfo owner; /** The plot area. */ --- 67,71 ---- /** The owner of this info. */ ! private ChartRenderingInfo owner; /** The plot area. */ |
From: David G. <mu...@us...> - 2005-11-02 12:56:18
|
Update of /cvsroot/jfreechart/jfreechart/source/org/jfree/chart/junit In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23329/source/org/jfree/chart/junit Modified Files: Tag: STABLE_1-0-0 ChartRenderingInfoTests.java Log Message: 02-11-2005 David Gilbert <dav...@ob...> * source/org/jfree/chart/ChartRenderingInfo.java (equals): updated to include plotArea and plotInfo, * source/org/jfree/chart/junit/ChartRenderingInfoTests.java (testEquals): expanded to test all fields, (testSerialization): changed initialisation of object to be serialized, (testSerialization2): new test, * source/org/jfree/chart/plot/PlotRenderingInfo.java (owner): removed transient keyword. Index: ChartRenderingInfoTests.java =================================================================== RCS file: /cvsroot/jfreechart/jfreechart/source/org/jfree/chart/junit/ChartRenderingInfoTests.java,v retrieving revision 1.2.2.1 retrieving revision 1.2.2.2 diff -C2 -d -r1.2.2.1 -r1.2.2.2 *** ChartRenderingInfoTests.java 25 Oct 2005 20:43:31 -0000 1.2.2.1 --- ChartRenderingInfoTests.java 2 Nov 2005 12:56:10 -0000 1.2.2.2 *************** *** 43,46 **** --- 43,47 ---- package org.jfree.chart.junit; + import java.awt.geom.Rectangle2D; import java.io.ByteArrayInputStream; import java.io.ByteArrayOutputStream; *************** *** 87,91 **** ChartRenderingInfo i2 = new ChartRenderingInfo(); assertTrue(i1.equals(i2)); ! } --- 88,106 ---- ChartRenderingInfo i2 = new ChartRenderingInfo(); assertTrue(i1.equals(i2)); ! ! i1.setChartArea(new Rectangle2D.Double(1.0, 2.0, 3.0, 4.0)); ! assertFalse(i1.equals(i2)); ! i2.setChartArea(new Rectangle2D.Double(1.0, 2.0, 3.0, 4.0)); ! assertTrue(i1.equals(i2)); ! ! i1.setPlotArea(new Rectangle2D.Double(5.0, 6.0, 7.0, 8.0)); ! assertFalse(i1.equals(i2)); ! i2.setPlotArea(new Rectangle2D.Double(5.0, 6.0, 7.0, 8.0)); ! assertTrue(i1.equals(i2)); ! ! i1.getPlotInfo().setDataArea(new Rectangle2D.Double(1.0, 1.0, 1.0, 1.0)); ! assertFalse(i1.equals(i2)); ! i2.getPlotInfo().setDataArea(new Rectangle2D.Double(1.0, 1.0, 1.0, 1.0)); ! assertTrue(i1.equals(i2)); } *************** *** 113,116 **** --- 128,133 ---- ChartRenderingInfo i1 = new ChartRenderingInfo(); + i1.setChartArea(new Rectangle2D.Double(1.0, 2.0, 3.0, 4.0)); + i1.setPlotArea(new Rectangle2D.Double(5.0, 6.0, 7.0, 8.0)); ChartRenderingInfo i2 = null; try { *************** *** 127,131 **** } catch (Exception e) { ! System.out.println(e.toString()); } assertEquals(i1, i2); --- 144,148 ---- } catch (Exception e) { ! e.printStackTrace(); } assertEquals(i1, i2); *************** *** 133,135 **** --- 150,180 ---- } + /** + * Serialize an instance, restore it, and check for equality. + */ + public void testSerialization2() { + + ChartRenderingInfo i1 = new ChartRenderingInfo(); + i1.getPlotInfo().setDataArea(new Rectangle2D.Double(1.0, 2.0, 3.0, + 4.0)); + ChartRenderingInfo i2 = null; + try { + ByteArrayOutputStream buffer = new ByteArrayOutputStream(); + ObjectOutput out = new ObjectOutputStream(buffer); + out.writeObject(i1); + out.close(); + + ObjectInput in = new ObjectInputStream( + new ByteArrayInputStream(buffer.toByteArray()) + ); + i2 = (ChartRenderingInfo) in.readObject(); + in.close(); + } + catch (Exception e) { + e.printStackTrace(); + } + assertEquals(i1, i2); + assertEquals(i2, i2.getPlotInfo().getOwner()); + + } } \ No newline at end of file |
From: David G. <mu...@us...> - 2005-11-02 12:56:18
|
Update of /cvsroot/jfreechart/jfreechart/source/org/jfree/chart In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23329/source/org/jfree/chart Modified Files: Tag: STABLE_1-0-0 ChartRenderingInfo.java Log Message: 02-11-2005 David Gilbert <dav...@ob...> * source/org/jfree/chart/ChartRenderingInfo.java (equals): updated to include plotArea and plotInfo, * source/org/jfree/chart/junit/ChartRenderingInfoTests.java (testEquals): expanded to test all fields, (testSerialization): changed initialisation of object to be serialized, (testSerialization2): new test, * source/org/jfree/chart/plot/PlotRenderingInfo.java (owner): removed transient keyword. Index: ChartRenderingInfo.java =================================================================== RCS file: /cvsroot/jfreechart/jfreechart/source/org/jfree/chart/ChartRenderingInfo.java,v retrieving revision 1.4.2.1 retrieving revision 1.4.2.2 diff -C2 -d -r1.4.2.1 -r1.4.2.2 *** ChartRenderingInfo.java 25 Oct 2005 16:50:20 -0000 1.4.2.1 --- ChartRenderingInfo.java 2 Nov 2005 12:56:09 -0000 1.4.2.2 *************** *** 43,46 **** --- 43,47 ---- * 26-Sep-2002 : Fixed errors reported by Checkstyle (DG); * 17-Sep-2003 : Added PlotRenderingInfo (DG); + * 01-Nov-2005 : Updated equals() method (DG); * */ *************** *** 206,217 **** return true; } ! if (obj instanceof ChartRenderingInfo) { ! ChartRenderingInfo cri = (ChartRenderingInfo) obj; ! if (!ObjectUtilities.equal(this.chartArea, cri.chartArea)) { ! return false; ! } ! return true; } ! return false; } --- 207,224 ---- return true; } ! if (!(obj instanceof ChartRenderingInfo)) { ! return false; } ! ChartRenderingInfo that = (ChartRenderingInfo) obj; ! if (!ObjectUtilities.equal(this.chartArea, that.chartArea)) { ! return false; ! } ! if (!ObjectUtilities.equal(this.plotArea, that.plotArea)) { ! return false; ! } ! if (!ObjectUtilities.equal(this.plotInfo, that.plotInfo)) { ! return false; ! } ! return true; } |
From: David G. <mu...@us...> - 2005-11-01 21:40:02
|
Update of /cvsroot/jfreechart/jfreechart/source/org/jfree/chart/title/junit In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6105/source/org/jfree/chart/title/junit Modified Files: Tag: STABLE_1-0-0 ImageTitleTests.java Log Message: 01-11-2005 David Gilbert <dav...@ob...> * source/org/jfree/chart/title/ImageTitle.java (height): removed field, (width): removed field, (ImageTitle(Image, int, int, RectangleEdge, HorizontalAlignment, VerticalAlignment, RectangleInsets)): set width and height for block, (drawHorizontal): use block width and height, (drawVertical): use block width and height, * source/org/jfree/chart/title/junit/ImageTitleTests.java (testWidthAndHeight): new method. Index: ImageTitleTests.java =================================================================== RCS file: /cvsroot/jfreechart/jfreechart/source/org/jfree/chart/title/junit/ImageTitleTests.java,v retrieving revision 1.3.2.1 retrieving revision 1.3.2.2 diff -C2 -d -r1.3.2.1 -r1.3.2.2 *** ImageTitleTests.java 25 Oct 2005 20:58:52 -0000 1.3.2.1 --- ImageTitleTests.java 1 Nov 2005 21:39:54 -0000 1.3.2.2 *************** *** 119,122 **** --- 119,133 ---- } + + private static final double EPSILON = 0.00000001; + + /** + * Check the width and height. + */ + public void testWidthAndHeight() { + ImageTitle t1 = new ImageTitle(JFreeChart.INFO.getLogo()); + assertEquals(100, t1.getWidth(), EPSILON); + assertEquals(100, t1.getHeight(), EPSILON); + } } |
From: David G. <mu...@us...> - 2005-11-01 21:40:02
|
Update of /cvsroot/jfreechart/jfreechart In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6105 Modified Files: Tag: STABLE_1-0-0 ChangeLog Log Message: 01-11-2005 David Gilbert <dav...@ob...> * source/org/jfree/chart/title/ImageTitle.java (height): removed field, (width): removed field, (ImageTitle(Image, int, int, RectangleEdge, HorizontalAlignment, VerticalAlignment, RectangleInsets)): set width and height for block, (drawHorizontal): use block width and height, (drawVertical): use block width and height, * source/org/jfree/chart/title/junit/ImageTitleTests.java (testWidthAndHeight): new method. Index: ChangeLog =================================================================== RCS file: /cvsroot/jfreechart/jfreechart/ChangeLog,v retrieving revision 1.1.2.17 retrieving revision 1.1.2.18 diff -C2 -d -r1.1.2.17 -r1.1.2.18 *** ChangeLog 1 Nov 2005 16:37:01 -0000 1.1.2.17 --- ChangeLog 1 Nov 2005 21:39:53 -0000 1.1.2.18 *************** *** 1,4 **** --- 1,16 ---- 01-11-2005 David Gilbert <dav...@ob...> + * source/org/jfree/chart/title/ImageTitle.java + (height): removed field, + (width): removed field, + (ImageTitle(Image, int, int, RectangleEdge, HorizontalAlignment, + VerticalAlignment, RectangleInsets)): set width and height for block, + (drawHorizontal): use block width and height, + (drawVertical): use block width and height, + * source/org/jfree/chart/title/junit/ImageTitleTests.java + (testWidthAndHeight): new method. + + 01-11-2005 David Gilbert <dav...@ob...> + * ant/build.xml: exclude SunJPEGEncoderAdapter.java from the build if ImageIO is not present, |
From: David G. <mu...@us...> - 2005-11-01 21:40:02
|
Update of /cvsroot/jfreechart/jfreechart/source/org/jfree/chart/title In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6105/source/org/jfree/chart/title Modified Files: Tag: STABLE_1-0-0 ImageTitle.java Log Message: 01-11-2005 David Gilbert <dav...@ob...> * source/org/jfree/chart/title/ImageTitle.java (height): removed field, (width): removed field, (ImageTitle(Image, int, int, RectangleEdge, HorizontalAlignment, VerticalAlignment, RectangleInsets)): set width and height for block, (drawHorizontal): use block width and height, (drawVertical): use block width and height, * source/org/jfree/chart/title/junit/ImageTitleTests.java (testWidthAndHeight): new method. Index: ImageTitle.java =================================================================== RCS file: /cvsroot/jfreechart/jfreechart/source/org/jfree/chart/title/ImageTitle.java,v retrieving revision 1.8.2.1 retrieving revision 1.8.2.2 diff -C2 -d -r1.8.2.1 -r1.8.2.2 *** ImageTitle.java 25 Oct 2005 20:58:34 -0000 1.8.2.1 --- ImageTitle.java 1 Nov 2005 21:39:53 -0000 1.8.2.2 *************** *** 86,112 **** private Image image; - /** The height used to draw the image (may involve scaling). */ - private int height; - - /** The width used to draw the image (may involve scaling). */ - private int width; - /** * Creates a new image title. * ! * @param image the image. */ public ImageTitle(Image image) { ! ! this( ! image, ! image.getHeight(null), ! image.getWidth(null), ! Title.DEFAULT_POSITION, ! Title.DEFAULT_HORIZONTAL_ALIGNMENT, ! Title.DEFAULT_VERTICAL_ALIGNMENT, ! Title.DEFAULT_PADDING ! ); ! } --- 86,98 ---- private Image image; /** * Creates a new image title. * ! * @param image the image (<code>null</code> not permitted). */ public ImageTitle(Image image) { ! this(image, image.getHeight(null), image.getWidth(null), ! Title.DEFAULT_POSITION, Title.DEFAULT_HORIZONTAL_ALIGNMENT, ! Title.DEFAULT_VERTICAL_ALIGNMENT, Title.DEFAULT_PADDING); } *************** *** 114,118 **** * Creates a new image title. * ! * @param image the image. * @param position the title position. * @param horizontalAlignment the horizontal alignment. --- 100,104 ---- * Creates a new image title. * ! * @param image the image (<code>null</code> not permitted). * @param position the title position. * @param horizontalAlignment the horizontal alignment. *************** *** 123,136 **** VerticalAlignment verticalAlignment) { ! this( ! image, ! image.getHeight(null), ! image.getWidth(null), ! position, ! horizontalAlignment, ! verticalAlignment, ! Title.DEFAULT_PADDING ! ); ! } --- 109,115 ---- VerticalAlignment verticalAlignment) { ! this(image, image.getHeight(null), image.getWidth(null), ! position, horizontalAlignment, verticalAlignment, ! Title.DEFAULT_PADDING); } *************** *** 139,143 **** * width and height in the given location. * ! * @param image the image (not null). * @param height the height used to draw the image. * @param width the width used to draw the image. --- 118,122 ---- * width and height in the given location. * ! * @param image the image (<code>null</code> not permitted). * @param height the height used to draw the image. * @param width the width used to draw the image. *************** *** 159,164 **** } this.image = image; ! this.height = height; ! this.width = width; } --- 138,143 ---- } this.image = image; ! setHeight(height); ! setWidth(width); } *************** *** 167,171 **** * Returns the image for the title. * ! * @return The image for the title. */ public Image getImage() { --- 146,150 ---- * Returns the image for the title. * ! * @return The image for the title (never <code>null</code>). */ public Image getImage() { *************** *** 228,236 **** double rightSpace = 0.0; RectangleInsets padding = getPadding(); ! topSpace = padding.calculateTopOutset(this.height); ! bottomSpace = padding.calculateBottomOutset(this.height); ! leftSpace = padding.calculateLeftOutset(this.width); ! rightSpace = padding.calculateRightOutset(this.width); if (getPosition() == RectangleEdge.TOP) { --- 207,217 ---- double rightSpace = 0.0; + double w = getWidth(); + double h = getHeight(); RectangleInsets padding = getPadding(); ! topSpace = padding.calculateTopOutset(h); ! bottomSpace = padding.calculateBottomOutset(h); ! leftSpace = padding.calculateLeftOutset(w); ! rightSpace = padding.calculateRightOutset(w); if (getPosition() == RectangleEdge.TOP) { *************** *** 238,243 **** } else { ! startY = chartArea.getY() + chartArea.getHeight() - bottomSpace ! - this.height; } --- 219,223 ---- } else { ! startY = chartArea.getY() + chartArea.getHeight() - bottomSpace - h; } *************** *** 247,251 **** if (horizontalAlignment == HorizontalAlignment.CENTER) { startX = chartArea.getX() + leftSpace + chartArea.getWidth() / 2.0 ! - this.width / 2.0; } else if (horizontalAlignment == HorizontalAlignment.LEFT) { --- 227,231 ---- if (horizontalAlignment == HorizontalAlignment.CENTER) { startX = chartArea.getX() + leftSpace + chartArea.getWidth() / 2.0 ! - w / 2.0; } else if (horizontalAlignment == HorizontalAlignment.LEFT) { *************** *** 253,268 **** } else if (horizontalAlignment == HorizontalAlignment.RIGHT) { ! startX = chartArea.getX() + chartArea.getWidth() - rightSpace ! - this.width; } ! g2.drawImage( ! this.image, (int) startX, (int) startY, ! this.width, this.height, null ! ); ! return new Size2D( ! chartArea.getWidth() + leftSpace + rightSpace, ! this.height + topSpace + bottomSpace ! ); } --- 233,243 ---- } else if (horizontalAlignment == HorizontalAlignment.RIGHT) { ! startX = chartArea.getX() + chartArea.getWidth() - rightSpace - w; } ! g2.drawImage(this.image, (int) startX, (int) startY, (int) w, (int) h, ! null); ! return new Size2D(chartArea.getWidth() + leftSpace + rightSpace, ! h + topSpace + bottomSpace); } *************** *** 286,295 **** double rightSpace = 0.0; RectangleInsets padding = getPadding(); if (padding != null) { ! topSpace = padding.calculateTopOutset(this.height); ! bottomSpace = padding.calculateBottomOutset(this.height); ! leftSpace = padding.calculateLeftOutset(this.width); ! rightSpace = padding.calculateRightOutset(this.width); } --- 261,273 ---- double rightSpace = 0.0; + double w = getWidth(); + double h = getHeight(); + RectangleInsets padding = getPadding(); if (padding != null) { ! topSpace = padding.calculateTopOutset(h); ! bottomSpace = padding.calculateBottomOutset(h); ! leftSpace = padding.calculateLeftOutset(w); ! rightSpace = padding.calculateRightOutset(w); } *************** *** 298,302 **** } else { ! startX = chartArea.getMaxX() - rightSpace - this.width; } --- 276,280 ---- } else { ! startX = chartArea.getMaxX() - rightSpace - w; } *************** *** 306,311 **** if (alignment == VerticalAlignment.CENTER) { startY = chartArea.getMinY() + topSpace ! + chartArea.getHeight() / 2.0 ! - this.height / 2.0; } else if (alignment == VerticalAlignment.TOP) { --- 284,288 ---- if (alignment == VerticalAlignment.CENTER) { startY = chartArea.getMinY() + topSpace ! + chartArea.getHeight() / 2.0 - h / 2.0; } else if (alignment == VerticalAlignment.TOP) { *************** *** 313,328 **** } else if (alignment == VerticalAlignment.BOTTOM) { ! startY = chartArea.getMaxY() - bottomSpace - this.height; } ! g2.drawImage( ! this.image, (int) startX, (int) startY, ! this.width, this.height, null ! ); ! return new Size2D( ! chartArea.getWidth() + leftSpace + rightSpace, ! this.height + topSpace + bottomSpace ! ); } --- 290,301 ---- } else if (alignment == VerticalAlignment.BOTTOM) { ! startY = chartArea.getMaxY() - bottomSpace - h; } ! g2.drawImage(this.image, (int) startX, (int) startY, (int) w, (int) h, ! null); ! return new Size2D(chartArea.getWidth() + leftSpace + rightSpace, ! h + topSpace + bottomSpace); } |
From: David G. <mu...@us...> - 2005-11-01 17:04:29
|
Update of /cvsroot/jfreechart/jfreechart In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv28927 Modified Files: ChangeLog Log Message: 01-11-2005 David Gilbert <dav...@ob...> * ant/build.xml: exclude SunJPEGEncoderAdapter.java from the build if ImageIO is not present, * source/org/jfree/chart/encoders/ImageEncoderFactory.java (init): only add 'jpeg' encoder if JFreeChart was compiled, and is being run, with JDK 1.4 or later, * source/org/jfree/chart/encoders/SunJPEGEncoderAdapter.java (encode): use ImageIO, not com.sun.* classes. Index: ChangeLog =================================================================== RCS file: /cvsroot/jfreechart/jfreechart/ChangeLog,v retrieving revision 1.38 retrieving revision 1.39 diff -C2 -d -r1.38 -r1.39 *** ChangeLog 1 Nov 2005 11:46:00 -0000 1.38 --- ChangeLog 1 Nov 2005 17:04:16 -0000 1.39 *************** *** 1,4 **** --- 1,14 ---- 01-11-2005 David Gilbert <dav...@ob...> + * ant/build.xml: exclude SunJPEGEncoderAdapter.java from the build if + ImageIO is not present, + * source/org/jfree/chart/encoders/ImageEncoderFactory.java + (init): only add 'jpeg' encoder if JFreeChart was compiled, and is + being run, with JDK 1.4 or later, + * source/org/jfree/chart/encoders/SunJPEGEncoderAdapter.java + (encode): use ImageIO, not com.sun.* classes. + + 01-11-2005 David Gilbert <dav...@ob...> + * source/org/jfree/chart/renderer/xy/HighLowRenderer.java (openTickPaint): new field, |
From: David G. <mu...@us...> - 2005-11-01 17:04:29
|
Update of /cvsroot/jfreechart/jfreechart/source/org/jfree/chart/encoders In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv28927/source/org/jfree/chart/encoders Modified Files: ImageEncoderFactory.java SunJPEGEncoderAdapter.java Log Message: 01-11-2005 David Gilbert <dav...@ob...> * ant/build.xml: exclude SunJPEGEncoderAdapter.java from the build if ImageIO is not present, * source/org/jfree/chart/encoders/ImageEncoderFactory.java (init): only add 'jpeg' encoder if JFreeChart was compiled, and is being run, with JDK 1.4 or later, * source/org/jfree/chart/encoders/SunJPEGEncoderAdapter.java (encode): use ImageIO, not com.sun.* classes. Index: ImageEncoderFactory.java =================================================================== RCS file: /cvsroot/jfreechart/jfreechart/source/org/jfree/chart/encoders/ImageEncoderFactory.java,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** ImageEncoderFactory.java 28 Mar 2005 19:38:57 -0000 1.3 --- ImageEncoderFactory.java 1 Nov 2005 17:04:16 -0000 1.4 *************** *** 17,23 **** * License for more details. * ! * You should have received a copy of the GNU Lesser General Public License ! * along with this library; if not, write to the Free Software Foundation, ! * Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA. * * [Java is a trademark or registered trademark of Sun Microsystems, Inc. --- 17,24 ---- * License for more details. * ! * You should have received a copy of the GNU Lesser General Public ! * License along with this library; if not, write to the Free Software ! * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, ! * USA. * * [Java is a trademark or registered trademark of Sun Microsystems, Inc. *************** *** 27,34 **** * ImageEncoderFactory.java * ------------------------ ! * (C) Copyright 2004, by Richard Atkinson and Contributors. * * Original Author: Richard Atkinson; ! * Contributor(s): -; * * $Id$ --- 28,35 ---- * ImageEncoderFactory.java * ------------------------ ! * (C) Copyright 2004, 2005, by Richard Atkinson and Contributors. * * Original Author: Richard Atkinson; ! * Contributor(s): David Gilbert (for Object Refinery Limited); * * $Id$ *************** *** 37,40 **** --- 38,44 ---- * ------- * 01-Aug-2004 : Initial version (RA); + * 01-Nov-2005 : Now using ImageIO for JPEG encoding, so we no longer have a + * dependency on com.sun.* which isn't available on all + * implementations (DG); * */ *************** *** 69,80 **** // Test for JFreeChart being compiled under JDK 1.4+ Class.forName("org.jfree.chart.encoders.SunPNGEncoderAdapter"); ! encoders.put( ! "png", "org.jfree.chart.encoders.SunPNGEncoderAdapter" ! ); } catch (ClassNotFoundException e) { ! encoders.put( ! "png", "org.jfree.chart.encoders.KeypointPNGEncoderAdapter" ! ); } } --- 73,84 ---- // Test for JFreeChart being compiled under JDK 1.4+ Class.forName("org.jfree.chart.encoders.SunPNGEncoderAdapter"); ! encoders.put("png", ! "org.jfree.chart.encoders.SunPNGEncoderAdapter"); ! encoders.put("jpeg", ! "org.jfree.chart.encoders.SunJPEGEncoderAdapter"); } catch (ClassNotFoundException e) { ! encoders.put("png", ! "org.jfree.chart.encoders.KeypointPNGEncoderAdapter"); } } *************** *** 102,108 **** String className = (String) encoders.get(format); if (className == null) { ! throw new IllegalArgumentException( ! "Unsupported image format - " + format ! ); } try { --- 106,111 ---- String className = (String) encoders.get(format); if (className == null) { ! throw new IllegalArgumentException("Unsupported image format - " ! + format); } try { Index: SunJPEGEncoderAdapter.java =================================================================== RCS file: /cvsroot/jfreechart/jfreechart/source/org/jfree/chart/encoders/SunJPEGEncoderAdapter.java,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** SunJPEGEncoderAdapter.java 28 Mar 2005 19:38:57 -0000 1.3 --- SunJPEGEncoderAdapter.java 1 Nov 2005 17:04:16 -0000 1.4 *************** *** 17,34 **** * License for more details. * ! * You should have received a copy of the GNU Lesser General Public License ! * along with this library; if not, write to the Free Software Foundation, ! * Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA. * * [Java is a trademark or registered trademark of Sun Microsystems, Inc. * in the United States and other countries.] * ! * ------------------- * SunJPEGEncoderAdapter.java ! * ------------------- ! * (C) Copyright 2004, by Richard Atkinson and Contributors. * * Original Author: Richard Atkinson; ! * Contributor(s): -; * * $Id$ --- 17,35 ---- * License for more details. * ! * You should have received a copy of the GNU Lesser General Public ! * License along with this library; if not, write to the Free Software ! * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, ! * USA. * * [Java is a trademark or registered trademark of Sun Microsystems, Inc. * in the United States and other countries.] * ! * -------------------------- * SunJPEGEncoderAdapter.java ! * -------------------------- ! * (C) Copyright 2004, 2005, by Richard Atkinson and Contributors. * * Original Author: Richard Atkinson; ! * Contributor(s): David Gilbert (for Object Refinery Limited); * * $Id$ *************** *** 37,40 **** --- 38,44 ---- * ------- * 01-Aug-2004 : Initial version (RA); + * 01-Nov-2005 : To remove the dependency on non-supported APIs, use ImageIO + * instead of com.sun.image.codec.jpeg.JPEGImageEncoder - this + * adapter will only be available on JDK 1.4 or later (DG); * */ *************** *** 42,60 **** package org.jfree.chart.encoders; - import com.sun.image.codec.jpeg.JPEGImageEncoder; - import com.sun.image.codec.jpeg.JPEGCodec; - import com.sun.image.codec.jpeg.JPEGEncodeParam; - import java.awt.image.BufferedImage; import java.io.IOException; import java.io.OutputStream; ! import java.io.ByteArrayOutputStream; /** ! * Adapter class for the Sun JPEG Encoder. * * @author Richard Atkinson */ public class SunJPEGEncoderAdapter implements ImageEncoder { private float quality = 0.75f; --- 46,65 ---- package org.jfree.chart.encoders; import java.awt.image.BufferedImage; + import java.io.ByteArrayOutputStream; import java.io.IOException; import java.io.OutputStream; ! ! import javax.imageio.ImageIO; /** ! * Adapter class for the Sun JPEG Encoder. The ImageEncoderFactory will only ! * return a reference to this class by default if the library has been compiled ! * under a JDK 1.4+ and is being run using a JDK 1.4+. * * @author Richard Atkinson */ public class SunJPEGEncoderAdapter implements ImageEncoder { + private float quality = 0.75f; *************** *** 75,79 **** /** ! * Set the quality of the image encoding (supported). * * @param quality A float representing the quality. --- 80,84 ---- /** ! * Set the quality of the image encoding (ignored). * * @param quality A float representing the quality. *************** *** 133,141 **** throw new IllegalArgumentException("Null 'outputStream' argument."); } ! JPEGImageEncoder encoder = JPEGCodec.createJPEGEncoder(outputStream); ! JPEGEncodeParam param ! = encoder.getDefaultJPEGEncodeParam(bufferedImage); ! param.setQuality(this.quality, true); ! encoder.encode(bufferedImage, param); } --- 138,142 ---- throw new IllegalArgumentException("Null 'outputStream' argument."); } ! ImageIO.write(bufferedImage, ImageFormat.JPEG, outputStream); } |
From: David G. <mu...@us...> - 2005-11-01 17:04:29
|
Update of /cvsroot/jfreechart/jfreechart/ant In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv28927/ant Modified Files: build.xml Log Message: 01-11-2005 David Gilbert <dav...@ob...> * ant/build.xml: exclude SunJPEGEncoderAdapter.java from the build if ImageIO is not present, * source/org/jfree/chart/encoders/ImageEncoderFactory.java (init): only add 'jpeg' encoder if JFreeChart was compiled, and is being run, with JDK 1.4 or later, * source/org/jfree/chart/encoders/SunJPEGEncoderAdapter.java (encode): use ImageIO, not com.sun.* classes. Index: build.xml =================================================================== RCS file: /cvsroot/jfreechart/jfreechart/ant/build.xml,v retrieving revision 1.15 retrieving revision 1.16 diff -C2 -d -r1.15 -r1.16 *** build.xml 30 Sep 2005 10:55:27 -0000 1.15 --- build.xml 1 Nov 2005 17:04:16 -0000 1.16 *************** *** 56,59 **** --- 56,60 ---- <exclude name="org/jfree/chart/xml/**"/> <exclude name="org/jfree/chart/encoders/SunPNGEncoderAdapter.java" unless="ImageIO.present"/> + <exclude name="org/jfree/chart/encoders/SunJPEGEncoderAdapter.java" unless="ImageIO.present"/> </javac> |
From: David G. <mu...@us...> - 2005-11-01 16:37:12
|
Update of /cvsroot/jfreechart/jfreechart/source/org/jfree/chart/encoders In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21745/source/org/jfree/chart/encoders Modified Files: Tag: STABLE_1-0-0 ImageEncoderFactory.java SunJPEGEncoderAdapter.java Log Message: 01-11-2005 David Gilbert <dav...@ob...> * ant/build.xml: exclude SunJPEGEncoderAdapter.java from the build if ImageIO is not present, * source/org/jfree/chart/encoders/ImageEncoderFactory.java (init): only add 'jpeg' encoder if JFreeChart was compiled, and is being run, with JDK 1.4 or later, * source/org/jfree/chart/encoders/SunJPEGEncoderAdapter.java (encode): use ImageIO, not com.sun.* classes. ---------------------------------------------------------------------- Index: ImageEncoderFactory.java =================================================================== RCS file: /cvsroot/jfreechart/jfreechart/source/org/jfree/chart/encoders/ImageEncoderFactory.java,v retrieving revision 1.3.2.1 retrieving revision 1.3.2.2 diff -C2 -d -r1.3.2.1 -r1.3.2.2 *** ImageEncoderFactory.java 25 Oct 2005 20:41:46 -0000 1.3.2.1 --- ImageEncoderFactory.java 1 Nov 2005 16:37:01 -0000 1.3.2.2 *************** *** 28,35 **** * ImageEncoderFactory.java * ------------------------ ! * (C) Copyright 2004, by Richard Atkinson and Contributors. * * Original Author: Richard Atkinson; ! * Contributor(s): -; * * $Id$ --- 28,35 ---- * ImageEncoderFactory.java * ------------------------ ! * (C) Copyright 2004, 2005, by Richard Atkinson and Contributors. * * Original Author: Richard Atkinson; ! * Contributor(s): David Gilbert (for Object Refinery Limited); * * $Id$ *************** *** 38,41 **** --- 38,44 ---- * ------- * 01-Aug-2004 : Initial version (RA); + * 01-Nov-2005 : Now using ImageIO for JPEG encoding, so we no longer have a + * dependency on com.sun.* which isn't available on all + * implementations (DG); * */ *************** *** 70,81 **** // Test for JFreeChart being compiled under JDK 1.4+ Class.forName("org.jfree.chart.encoders.SunPNGEncoderAdapter"); ! encoders.put( ! "png", "org.jfree.chart.encoders.SunPNGEncoderAdapter" ! ); } catch (ClassNotFoundException e) { ! encoders.put( ! "png", "org.jfree.chart.encoders.KeypointPNGEncoderAdapter" ! ); } } --- 73,84 ---- // Test for JFreeChart being compiled under JDK 1.4+ Class.forName("org.jfree.chart.encoders.SunPNGEncoderAdapter"); ! encoders.put("png", ! "org.jfree.chart.encoders.SunPNGEncoderAdapter"); ! encoders.put("jpeg", ! "org.jfree.chart.encoders.SunJPEGEncoderAdapter"); } catch (ClassNotFoundException e) { ! encoders.put("png", ! "org.jfree.chart.encoders.KeypointPNGEncoderAdapter"); } } *************** *** 103,109 **** String className = (String) encoders.get(format); if (className == null) { ! throw new IllegalArgumentException( ! "Unsupported image format - " + format ! ); } try { --- 106,111 ---- String className = (String) encoders.get(format); if (className == null) { ! throw new IllegalArgumentException("Unsupported image format - " ! + format); } try { Index: SunJPEGEncoderAdapter.java =================================================================== RCS file: /cvsroot/jfreechart/jfreechart/source/org/jfree/chart/encoders/SunJPEGEncoderAdapter.java,v retrieving revision 1.3.2.1 retrieving revision 1.3.2.2 diff -C2 -d -r1.3.2.1 -r1.3.2.2 *** SunJPEGEncoderAdapter.java 25 Oct 2005 20:41:46 -0000 1.3.2.1 --- SunJPEGEncoderAdapter.java 1 Nov 2005 16:37:01 -0000 1.3.2.2 *************** *** 25,35 **** * in the United States and other countries.] * ! * ------------------- * SunJPEGEncoderAdapter.java ! * ------------------- ! * (C) Copyright 2004, by Richard Atkinson and Contributors. * * Original Author: Richard Atkinson; ! * Contributor(s): -; * * $Id$ --- 25,35 ---- * in the United States and other countries.] * ! * -------------------------- * SunJPEGEncoderAdapter.java ! * -------------------------- ! * (C) Copyright 2004, 2005, by Richard Atkinson and Contributors. * * Original Author: Richard Atkinson; ! * Contributor(s): David Gilbert (for Object Refinery Limited); * * $Id$ *************** *** 38,41 **** --- 38,44 ---- * ------- * 01-Aug-2004 : Initial version (RA); + * 01-Nov-2005 : To remove the dependency on non-supported APIs, use ImageIO + * instead of com.sun.image.codec.jpeg.JPEGImageEncoder - this + * adapter will only be available on JDK 1.4 or later (DG); * */ *************** *** 43,61 **** package org.jfree.chart.encoders; - import com.sun.image.codec.jpeg.JPEGImageEncoder; - import com.sun.image.codec.jpeg.JPEGCodec; - import com.sun.image.codec.jpeg.JPEGEncodeParam; - import java.awt.image.BufferedImage; import java.io.IOException; import java.io.OutputStream; ! import java.io.ByteArrayOutputStream; /** ! * Adapter class for the Sun JPEG Encoder. * * @author Richard Atkinson */ public class SunJPEGEncoderAdapter implements ImageEncoder { private float quality = 0.75f; --- 46,65 ---- package org.jfree.chart.encoders; import java.awt.image.BufferedImage; + import java.io.ByteArrayOutputStream; import java.io.IOException; import java.io.OutputStream; ! ! import javax.imageio.ImageIO; /** ! * Adapter class for the Sun JPEG Encoder. The ImageEncoderFactory will only ! * return a reference to this class by default if the library has been compiled ! * under a JDK 1.4+ and is being run using a JDK 1.4+. * * @author Richard Atkinson */ public class SunJPEGEncoderAdapter implements ImageEncoder { + private float quality = 0.75f; *************** *** 76,80 **** /** ! * Set the quality of the image encoding (supported). * * @param quality A float representing the quality. --- 80,84 ---- /** ! * Set the quality of the image encoding (ignored). * * @param quality A float representing the quality. *************** *** 134,142 **** throw new IllegalArgumentException("Null 'outputStream' argument."); } ! JPEGImageEncoder encoder = JPEGCodec.createJPEGEncoder(outputStream); ! JPEGEncodeParam param ! = encoder.getDefaultJPEGEncodeParam(bufferedImage); ! param.setQuality(this.quality, true); ! encoder.encode(bufferedImage, param); } --- 138,142 ---- throw new IllegalArgumentException("Null 'outputStream' argument."); } ! ImageIO.write(bufferedImage, ImageFormat.JPEG, outputStream); } |
From: David G. <mu...@us...> - 2005-11-01 16:37:12
|
Update of /cvsroot/jfreechart/jfreechart/ant In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21745/ant Modified Files: Tag: STABLE_1-0-0 build.xml Log Message: 01-11-2005 David Gilbert <dav...@ob...> * ant/build.xml: exclude SunJPEGEncoderAdapter.java from the build if ImageIO is not present, * source/org/jfree/chart/encoders/ImageEncoderFactory.java (init): only add 'jpeg' encoder if JFreeChart was compiled, and is being run, with JDK 1.4 or later, * source/org/jfree/chart/encoders/SunJPEGEncoderAdapter.java (encode): use ImageIO, not com.sun.* classes. ---------------------------------------------------------------------- Index: build.xml =================================================================== RCS file: /cvsroot/jfreechart/jfreechart/ant/build.xml,v retrieving revision 1.13.2.1 retrieving revision 1.13.2.2 diff -C2 -d -r1.13.2.1 -r1.13.2.2 *** build.xml 20 Sep 2005 09:24:20 -0000 1.13.2.1 --- build.xml 1 Nov 2005 16:37:01 -0000 1.13.2.2 *************** *** 57,60 **** --- 57,61 ---- <exclude name="org/jfree/chart/xml/**"/> <exclude name="org/jfree/chart/encoders/SunPNGEncoderAdapter.java" unless="ImageIO.present"/> + <exclude name="org/jfree/chart/encoders/SunJPEGEncoderAdapter.java" unless="ImageIO.present"/> </javac> |
From: David G. <mu...@us...> - 2005-11-01 16:37:12
|
Update of /cvsroot/jfreechart/jfreechart In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21745 Modified Files: Tag: STABLE_1-0-0 ChangeLog Log Message: 01-11-2005 David Gilbert <dav...@ob...> * ant/build.xml: exclude SunJPEGEncoderAdapter.java from the build if ImageIO is not present, * source/org/jfree/chart/encoders/ImageEncoderFactory.java (init): only add 'jpeg' encoder if JFreeChart was compiled, and is being run, with JDK 1.4 or later, * source/org/jfree/chart/encoders/SunJPEGEncoderAdapter.java (encode): use ImageIO, not com.sun.* classes. ---------------------------------------------------------------------- Index: ChangeLog =================================================================== RCS file: /cvsroot/jfreechart/jfreechart/ChangeLog,v retrieving revision 1.1.2.16 retrieving revision 1.1.2.17 diff -C2 -d -r1.1.2.16 -r1.1.2.17 *** ChangeLog 1 Nov 2005 11:30:11 -0000 1.1.2.16 --- ChangeLog 1 Nov 2005 16:37:01 -0000 1.1.2.17 *************** *** 1,4 **** --- 1,14 ---- 01-11-2005 David Gilbert <dav...@ob...> + * ant/build.xml: exclude SunJPEGEncoderAdapter.java from the build if + ImageIO is not present, + * source/org/jfree/chart/encoders/ImageEncoderFactory.java + (init): only add 'jpeg' encoder if JFreeChart was compiled, and is + being run, with JDK 1.4 or later, + * source/org/jfree/chart/encoders/SunJPEGEncoderAdapter.java + (encode): use ImageIO, not com.sun.* classes. + + 01-11-2005 David Gilbert <dav...@ob...> + * source/org/jfree/chart/renderer/xy/HighLowRenderer.java (openTickPaint): new field, |
From: David G. <mu...@us...> - 2005-11-01 11:46:43
|
Update of /cvsroot/jfreechart/jfreechart/source/org/jfree/chart/renderer/xy In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5471/source/org/jfree/chart/renderer/xy Modified Files: HighLowRenderer.java Log Message: 01-11-2005 David Gilbert <dav...@ob...> * source/org/jfree/chart/renderer/xy/HighLowRenderer.java (openTickPaint): new field, (closeTickPaint): new field, (getOpenTickPaint): new method, (setOpenTickPaint): new method, (getCloseTickPaint): new method, (setCloseTickPaint): new method, (drawItem): use openTickPaint and closeTickPaint if non-null, (equals): implemented, (readObject): new method to support serialization, (writeObject): new method to support serialization, * source/org/jfree/chart/renderer/xy/junit/HighLowRendererTests.java (testEquals): add checks for all fields, (testCloning): updated for new fields, (testSerialization): updated for new fields. Index: HighLowRenderer.java =================================================================== RCS file: /cvsroot/jfreechart/jfreechart/source/org/jfree/chart/renderer/xy/HighLowRenderer.java,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** HighLowRenderer.java 19 May 2005 14:01:50 -0000 1.5 --- HighLowRenderer.java 1 Nov 2005 11:46:00 -0000 1.6 *************** *** 17,23 **** * License for more details. * ! * You should have received a copy of the GNU Lesser General Public License ! * along with this library; if not, write to the Free Software Foundation, ! * Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA. * * [Java is a trademark or registered trademark of Sun Microsystems, Inc. --- 17,24 ---- * License for more details. * ! * You should have received a copy of the GNU Lesser General Public ! * License along with this library; if not, write to the Free Software ! * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, ! * USA. * * [Java is a trademark or registered trademark of Sun Microsystems, Inc. *************** *** 27,31 **** * HighLowRenderer.java * -------------------- ! * (C) Copyright 2001-2004, by Object Refinery Limited. * * Original Author: David Gilbert (for Object Refinery Limited); --- 28,32 ---- * HighLowRenderer.java * -------------------- ! * (C) Copyright 2001-2005, by Object Refinery Limited. * * Original Author: David Gilbert (for Object Refinery Limited); *************** *** 59,62 **** --- 60,64 ---- * 15-Jul-2004 : Switched getX() with getXValue() and getY() with * getYValue() (DG); + * 01-Nov-2005 : Added optional openTickPaint and closeTickPaint settings (DG); * */ *************** *** 70,73 **** --- 72,78 ---- import java.awt.geom.Line2D; import java.awt.geom.Rectangle2D; + import java.io.IOException; + import java.io.ObjectInputStream; + import java.io.ObjectOutputStream; import java.io.Serializable; *************** *** 83,87 **** --- 88,94 ---- import org.jfree.data.xy.OHLCDataset; import org.jfree.data.xy.XYDataset; + import org.jfree.io.SerialUtilities; import org.jfree.ui.RectangleEdge; + import org.jfree.util.PaintUtilities; import org.jfree.util.PublicCloneable; *************** *** 105,108 **** --- 112,127 ---- /** A flag that controls whether the close ticks are drawn. */ private boolean drawCloseTicks; + + /** + * The paint used for the open ticks (if <code>null</code>, the series + * paint is used instead). + */ + private transient Paint openTickPaint; + + /** + * The paint used for the close ticks (if <code>null</code>, the series + * paint is used instead). + */ + private transient Paint closeTickPaint; /** *************** *** 156,159 **** --- 175,224 ---- /** + * Returns the paint used to draw the ticks for the open values. + * + * @return The paint used to draw the ticks for the open values (possibly + * <code>null</code>). + */ + public Paint getOpenTickPaint() { + return this.openTickPaint; + } + + /** + * Sets the paint used to draw the ticks for the open values and sends a + * {@link RendererChangeEvent} to all registered listeners. If you set + * this to <code>null</code> (the default), the series paint is used + * instead. + * + * @param paint the paint (<code>null</code> permitted). + */ + public void setOpenTickPaint(Paint paint) { + this.openTickPaint = paint; + notifyListeners(new RendererChangeEvent(this)); + } + + /** + * Returns the paint used to draw the ticks for the close values. + * + * @return The paint used to draw the ticks for the close values (possibly + * <code>null</code>). + */ + public Paint getCloseTickPaint() { + return this.closeTickPaint; + } + + /** + * Sets the paint used to draw the ticks for the close values and sends a + * {@link RendererChangeEvent} to all registered listeners. If you set + * this to <code>null</code> (the default), the series paint is used + * instead. + * + * @param paint the paint (<code>null</code> permitted). + */ + public void setCloseTickPaint(Paint paint) { + this.closeTickPaint = paint; + notifyListeners(new RendererChangeEvent(this)); + } + + /** * Draws the visual representation of a single data item. * *************** *** 195,201 **** return; // the x value is not within the axis range } ! double xx = domainAxis.valueToJava2D( ! xdouble, dataArea, plot.getDomainAxisEdge() ! ); // setup for collecting optional entity info... --- 260,265 ---- return; // the x value is not within the axis range } ! double xx = domainAxis.valueToJava2D(xdouble, dataArea, ! plot.getDomainAxisEdge()); // setup for collecting optional entity info... *************** *** 209,216 **** RectangleEdge location = plot.getRangeAxisEdge(); ! Paint p = getItemPaint(series, item); ! Stroke s = getItemStroke(series, item); ! g2.setPaint(p); ! g2.setStroke(s); if (dataset instanceof OHLCDataset) { --- 273,280 ---- RectangleEdge location = plot.getRangeAxisEdge(); ! Paint itemPaint = getItemPaint(series, item); ! Stroke itemStroke = getItemStroke(series, item); ! g2.setPaint(itemPaint); ! g2.setStroke(itemStroke); if (dataset instanceof OHLCDataset) { *************** *** 220,240 **** double yLow = hld.getLowValue(series, item); if (!Double.isNaN(yHigh) && !Double.isNaN(yLow)) { ! double yyHigh ! = rangeAxis.valueToJava2D(yHigh, dataArea, location); ! double yyLow ! = rangeAxis.valueToJava2D(yLow, dataArea, location); if (orientation == PlotOrientation.HORIZONTAL) { g2.draw(new Line2D.Double(yyLow, xx, yyHigh, xx)); ! entityArea = new Rectangle2D.Double( ! Math.min(yyLow, yyHigh), xx - 1.0, ! Math.abs(yyHigh - yyLow), 2.0 ! ); } else if (orientation == PlotOrientation.VERTICAL) { g2.draw(new Line2D.Double(xx, yyLow, xx, yyHigh)); ! entityArea = new Rectangle2D.Double( ! xx - 1.0, Math.min(yyLow, yyHigh), 2.0, ! Math.abs(yyHigh - yyLow) ! ); } } --- 284,301 ---- double yLow = hld.getLowValue(series, item); if (!Double.isNaN(yHigh) && !Double.isNaN(yLow)) { ! double yyHigh = rangeAxis.valueToJava2D(yHigh, dataArea, ! location); ! double yyLow = rangeAxis.valueToJava2D(yLow, dataArea, ! location); if (orientation == PlotOrientation.HORIZONTAL) { g2.draw(new Line2D.Double(yyLow, xx, yyHigh, xx)); ! entityArea = new Rectangle2D.Double(Math.min(yyLow, yyHigh), ! xx - 1.0, Math.abs(yyHigh - yyLow), 2.0); } else if (orientation == PlotOrientation.VERTICAL) { g2.draw(new Line2D.Double(xx, yyLow, xx, yyHigh)); ! entityArea = new Rectangle2D.Double(xx - 1.0, ! Math.min(yyLow, yyHigh), 2.0, ! Math.abs(yyHigh - yyLow)); } } *************** *** 245,262 **** } if (getDrawOpenTicks()) { ! double yOpen = hld.getOpenValue(series, item); if (!Double.isNaN(yOpen)) { ! double yyOpen = rangeAxis.valueToJava2D( ! yOpen, dataArea, location ! ); if (orientation == PlotOrientation.HORIZONTAL) { ! g2.draw( ! new Line2D.Double(yyOpen, xx + delta, yyOpen, xx) ! ); } else if (orientation == PlotOrientation.VERTICAL) { ! g2.draw( ! new Line2D.Double(xx - delta, yyOpen, xx, yyOpen) ! ); } } --- 306,326 ---- } if (getDrawOpenTicks()) { ! double yOpen = hld.getOpenValue(series, item); if (!Double.isNaN(yOpen)) { ! double yyOpen = rangeAxis.valueToJava2D(yOpen, dataArea, ! location); ! if (this.openTickPaint != null) { ! g2.setPaint(this.openTickPaint); ! } ! else { ! g2.setPaint(itemPaint); ! } if (orientation == PlotOrientation.HORIZONTAL) { ! g2.draw(new Line2D.Double(yyOpen, xx + delta, yyOpen, ! xx)); } else if (orientation == PlotOrientation.VERTICAL) { ! g2.draw(new Line2D.Double(xx - delta, yyOpen, xx, ! yyOpen)); } } *************** *** 267,281 **** if (!Double.isNaN(yClose)) { double yyClose = rangeAxis.valueToJava2D( ! yClose, dataArea, location ! ); if (orientation == PlotOrientation.HORIZONTAL) { ! g2.draw( ! new Line2D.Double(yyClose, xx, yyClose, xx - delta) ! ); } else if (orientation == PlotOrientation.VERTICAL) { ! g2.draw( ! new Line2D.Double(xx, yyClose, xx + delta, yyClose) ! ); } } --- 331,348 ---- if (!Double.isNaN(yClose)) { double yyClose = rangeAxis.valueToJava2D( ! yClose, dataArea, location); ! if (this.closeTickPaint != null) { ! g2.setPaint(this.closeTickPaint); ! } ! else { ! g2.setPaint(itemPaint); ! } if (orientation == PlotOrientation.HORIZONTAL) { ! g2.draw(new Line2D.Double(yyClose, xx, yyClose, ! xx - delta)); } else if (orientation == PlotOrientation.VERTICAL) { ! g2.draw(new Line2D.Double(xx, yyClose, xx + delta, ! yyClose)); } } *************** *** 293,305 **** return; } ! double xx0 = domainAxis.valueToJava2D( ! x0.doubleValue(), dataArea, plot.getDomainAxisEdge() ! ); ! double yy0 = rangeAxis.valueToJava2D( ! y0.doubleValue(), dataArea, location ! ); ! double yy = rangeAxis.valueToJava2D( ! y.doubleValue(), dataArea, location ! ); if (orientation == PlotOrientation.HORIZONTAL) { g2.draw(new Line2D.Double(yy0, xx0, yy, xx)); --- 360,369 ---- return; } ! double xx0 = domainAxis.valueToJava2D(x0.doubleValue(), ! dataArea, plot.getDomainAxisEdge()); ! double yy0 = rangeAxis.valueToJava2D(y0.doubleValue(), ! dataArea, location); ! double yy = rangeAxis.valueToJava2D(y.doubleValue(), dataArea, ! location); if (orientation == PlotOrientation.HORIZONTAL) { g2.draw(new Line2D.Double(yy0, xx0, yy, xx)); *************** *** 322,328 **** url = getURLGenerator().generateURL(dataset, series, item); } ! XYItemEntity entity = new XYItemEntity( ! entityArea, dataset, series, item, tip, url ! ); entities.add(entity); } --- 386,391 ---- url = getURLGenerator().generateURL(dataset, series, item); } ! XYItemEntity entity = new XYItemEntity(entityArea, dataset, ! series, item, tip, url); entities.add(entity); } *************** *** 340,343 **** --- 403,467 ---- return super.clone(); } + + /** + * Tests this renderer for equality with an arbitrary object. + * + * @param obj the object (<code>null</code> permitted). + * + * @return A boolean. + */ + public boolean equals(Object obj) { + if (this == obj) { + return true; + } + if (!(obj instanceof HighLowRenderer)) { + return false; + } + HighLowRenderer that = (HighLowRenderer) obj; + if (this.drawOpenTicks != that.drawOpenTicks) { + return false; + } + if (this.drawCloseTicks != that.drawCloseTicks) { + return false; + } + if (!PaintUtilities.equal(this.openTickPaint, that.openTickPaint)) { + return false; + } + if (!PaintUtilities.equal(this.closeTickPaint, that.closeTickPaint)) { + return false; + } + if (!super.equals(obj)) { + return false; + } + return true; + } + + /** + * Provides serialization support. + * + * @param stream the input stream. + * + * @throws IOException if there is an I/O error. + * @throws ClassNotFoundException if there is a classpath problem. + */ + private void readObject(ObjectInputStream stream) + throws IOException, ClassNotFoundException { + stream.defaultReadObject(); + this.openTickPaint = SerialUtilities.readPaint(stream); + this.closeTickPaint = SerialUtilities.readPaint(stream); + } + + /** + * Provides serialization support. + * + * @param stream the output stream. + * + * @throws IOException if there is an I/O error. + */ + private void writeObject(ObjectOutputStream stream) throws IOException { + stream.defaultWriteObject(); + SerialUtilities.writePaint(this.openTickPaint, stream); + SerialUtilities.writePaint(this.closeTickPaint, stream); + } } \ No newline at end of file |
From: David G. <mu...@us...> - 2005-11-01 11:46:43
|
Update of /cvsroot/jfreechart/jfreechart/source/org/jfree/chart/renderer/xy/junit In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5471/source/org/jfree/chart/renderer/xy/junit Modified Files: HighLowRendererTests.java Log Message: 01-11-2005 David Gilbert <dav...@ob...> * source/org/jfree/chart/renderer/xy/HighLowRenderer.java (openTickPaint): new field, (closeTickPaint): new field, (getOpenTickPaint): new method, (setOpenTickPaint): new method, (getCloseTickPaint): new method, (setCloseTickPaint): new method, (drawItem): use openTickPaint and closeTickPaint if non-null, (equals): implemented, (readObject): new method to support serialization, (writeObject): new method to support serialization, * source/org/jfree/chart/renderer/xy/junit/HighLowRendererTests.java (testEquals): add checks for all fields, (testCloning): updated for new fields, (testSerialization): updated for new fields. Index: HighLowRendererTests.java =================================================================== RCS file: /cvsroot/jfreechart/jfreechart/source/org/jfree/chart/renderer/xy/junit/HighLowRendererTests.java,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** HighLowRendererTests.java 28 Mar 2005 19:38:58 -0000 1.3 --- HighLowRendererTests.java 1 Nov 2005 11:46:00 -0000 1.4 *************** *** 17,23 **** * License for more details. * ! * You should have received a copy of the GNU Lesser General Public License ! * along with this library; if not, write to the Free Software Foundation, ! * Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA. * * [Java is a trademark or registered trademark of Sun Microsystems, Inc. --- 17,24 ---- * License for more details. * ! * You should have received a copy of the GNU Lesser General Public ! * License along with this library; if not, write to the Free Software ! * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, ! * USA. * * [Java is a trademark or registered trademark of Sun Microsystems, Inc. *************** *** 38,41 **** --- 39,43 ---- * 25-Mar-2003 : Version 1 (DG); * 22-Oct-2003 : Added hashCode test (DG); + * 01-Nov-2005 : Added tests for new fields (DG); * */ *************** *** 43,46 **** --- 45,49 ---- package org.jfree.chart.renderer.xy.junit; + import java.awt.Color; import java.io.ByteArrayInputStream; import java.io.ByteArrayOutputStream; *************** *** 86,89 **** --- 89,116 ---- HighLowRenderer r2 = new HighLowRenderer(); assertEquals(r1, r2); + + // drawOpenTicks + r1.setDrawOpenTicks(false); + assertFalse(r1.equals(r2)); + r2.setDrawOpenTicks(false); + assertTrue(r1.equals(r2)); + + // drawCloseTicks + r1.setDrawCloseTicks(false); + assertFalse(r1.equals(r2)); + r2.setDrawCloseTicks(false); + assertTrue(r1.equals(r2)); + + // openTickPaint + r1.setOpenTickPaint(Color.red); + assertFalse(r1.equals(r2)); + r2.setOpenTickPaint(Color.red); + assertTrue(r1.equals(r2)); + + // closeTickPaint + r1.setCloseTickPaint(Color.blue); + assertFalse(r1.equals(r2)); + r2.setCloseTickPaint(Color.blue); + assertTrue(r1.equals(r2)); } *************** *** 105,108 **** --- 132,136 ---- public void testCloning() { HighLowRenderer r1 = new HighLowRenderer(); + r1.setCloseTickPaint(Color.green); HighLowRenderer r2 = null; try { *************** *** 110,114 **** } catch (CloneNotSupportedException e) { ! System.err.println("Failed to clone."); } assertTrue(r1 != r2); --- 138,142 ---- } catch (CloneNotSupportedException e) { ! e.printStackTrace(); } assertTrue(r1 != r2); *************** *** 123,126 **** --- 151,155 ---- HighLowRenderer r1 = new HighLowRenderer(); + r1.setCloseTickPaint(Color.green); HighLowRenderer r2 = null; *************** *** 138,142 **** } catch (Exception e) { ! System.out.println(e.toString()); } assertEquals(r1, r2); --- 167,171 ---- } catch (Exception e) { ! e.printStackTrace(); } assertEquals(r1, r2); |
From: David G. <mu...@us...> - 2005-11-01 11:46:42
|
Update of /cvsroot/jfreechart/jfreechart In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5471 Modified Files: ChangeLog Log Message: 01-11-2005 David Gilbert <dav...@ob...> * source/org/jfree/chart/renderer/xy/HighLowRenderer.java (openTickPaint): new field, (closeTickPaint): new field, (getOpenTickPaint): new method, (setOpenTickPaint): new method, (getCloseTickPaint): new method, (setCloseTickPaint): new method, (drawItem): use openTickPaint and closeTickPaint if non-null, (equals): implemented, (readObject): new method to support serialization, (writeObject): new method to support serialization, * source/org/jfree/chart/renderer/xy/junit/HighLowRendererTests.java (testEquals): add checks for all fields, (testCloning): updated for new fields, (testSerialization): updated for new fields. Index: ChangeLog =================================================================== RCS file: /cvsroot/jfreechart/jfreechart/ChangeLog,v retrieving revision 1.37 retrieving revision 1.38 diff -C2 -d -r1.37 -r1.38 *** ChangeLog 1 Nov 2005 09:44:44 -0000 1.37 --- ChangeLog 1 Nov 2005 11:46:00 -0000 1.38 *************** *** 1,4 **** --- 1,22 ---- 01-11-2005 David Gilbert <dav...@ob...> + * source/org/jfree/chart/renderer/xy/HighLowRenderer.java + (openTickPaint): new field, + (closeTickPaint): new field, + (getOpenTickPaint): new method, + (setOpenTickPaint): new method, + (getCloseTickPaint): new method, + (setCloseTickPaint): new method, + (drawItem): use openTickPaint and closeTickPaint if non-null, + (equals): implemented, + (readObject): new method to support serialization, + (writeObject): new method to support serialization, + * source/org/jfree/chart/renderer/xy/junit/HighLowRendererTests.java + (testEquals): add checks for all fields, + (testCloning): updated for new fields, + (testSerialization): updated for new fields. + + 01-11-2005 David Gilbert <dav...@ob...> + * source/org/jfree/chart/renderer/xy/HighLow.java: Removed unused class. |