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: <mu...@us...> - 2013-11-22 16:24:24
|
Revision: 3022 http://sourceforge.net/p/jfreechart/code/3022 Author: mungady Date: 2013-11-22 16:24:22 +0000 (Fri, 22 Nov 2013) Log Message: ----------- Fixed NB warnings. Modified Paths: -------------- branches/jfreechart-1.0.x-branch/source/org/jfree/chart/event/ChartChangeEventType.java Modified: branches/jfreechart-1.0.x-branch/source/org/jfree/chart/event/ChartChangeEventType.java =================================================================== --- branches/jfreechart-1.0.x-branch/source/org/jfree/chart/event/ChartChangeEventType.java 2013-11-22 16:24:05 UTC (rev 3021) +++ branches/jfreechart-1.0.x-branch/source/org/jfree/chart/event/ChartChangeEventType.java 2013-11-22 16:24:22 UTC (rev 3022) @@ -80,6 +80,7 @@ * * @return The string. */ + @Override public String toString() { return this.name; } @@ -92,6 +93,7 @@ * * @return A boolean. */ + @Override public boolean equals(Object obj) { if (this == obj) { return true; @@ -111,6 +113,7 @@ * * @return The hashcode */ + @Override public int hashCode() { return this.name.hashCode(); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <mu...@us...> - 2013-11-22 16:24:08
|
Revision: 3021 http://sourceforge.net/p/jfreechart/code/3021 Author: mungady Date: 2013-11-22 16:24:05 +0000 (Fri, 22 Nov 2013) Log Message: ----------- Fixed NB warnings. Modified Paths: -------------- branches/jfreechart-1.0.x-branch/source/org/jfree/chart/entity/CategoryItemEntity.java branches/jfreechart-1.0.x-branch/source/org/jfree/chart/entity/ContourEntity.java branches/jfreechart-1.0.x-branch/source/org/jfree/chart/entity/LegendItemEntity.java branches/jfreechart-1.0.x-branch/source/org/jfree/chart/entity/PieSectionEntity.java branches/jfreechart-1.0.x-branch/source/org/jfree/chart/entity/StandardEntityCollection.java branches/jfreechart-1.0.x-branch/source/org/jfree/chart/entity/XYAnnotationEntity.java branches/jfreechart-1.0.x-branch/source/org/jfree/chart/entity/XYItemEntity.java Modified: branches/jfreechart-1.0.x-branch/source/org/jfree/chart/entity/CategoryItemEntity.java =================================================================== --- branches/jfreechart-1.0.x-branch/source/org/jfree/chart/entity/CategoryItemEntity.java 2013-11-22 16:03:27 UTC (rev 3020) +++ branches/jfreechart-1.0.x-branch/source/org/jfree/chart/entity/CategoryItemEntity.java 2013-11-22 16:24:05 UTC (rev 3021) @@ -336,6 +336,7 @@ * * @return A string (never <code>null</code>). */ + @Override public String toString() { return "CategoryItemEntity: rowKey=" + this.rowKey + ", columnKey=" + this.columnKey + ", dataset=" + this.dataset; @@ -348,6 +349,7 @@ * * @return A boolean. */ + @Override public boolean equals(Object obj) { if (obj == this) { return true; Modified: branches/jfreechart-1.0.x-branch/source/org/jfree/chart/entity/ContourEntity.java =================================================================== --- branches/jfreechart-1.0.x-branch/source/org/jfree/chart/entity/ContourEntity.java 2013-11-22 16:03:27 UTC (rev 3020) +++ branches/jfreechart-1.0.x-branch/source/org/jfree/chart/entity/ContourEntity.java 2013-11-22 16:24:05 UTC (rev 3021) @@ -112,6 +112,7 @@ * * @return A boolean. */ + @Override public boolean equals(Object obj) { if (obj == this) { return true; @@ -133,6 +134,7 @@ * * @throws CloneNotSupportedException if cloning is not supported. */ + @Override public Object clone() throws CloneNotSupportedException { return super.clone(); } Modified: branches/jfreechart-1.0.x-branch/source/org/jfree/chart/entity/LegendItemEntity.java =================================================================== --- branches/jfreechart-1.0.x-branch/source/org/jfree/chart/entity/LegendItemEntity.java 2013-11-22 16:03:27 UTC (rev 3020) +++ branches/jfreechart-1.0.x-branch/source/org/jfree/chart/entity/LegendItemEntity.java 2013-11-22 16:24:05 UTC (rev 3021) @@ -170,6 +170,7 @@ * * @return A boolean. */ + @Override public boolean equals(Object obj) { if (obj == this) { return true; @@ -198,6 +199,7 @@ * @throws CloneNotSupportedException if there is a problem cloning the * object. */ + @Override public Object clone() throws CloneNotSupportedException { return super.clone(); } @@ -208,6 +210,7 @@ * * @return A string (never <code>null</code>). */ + @Override public String toString() { return "LegendItemEntity: seriesKey=" + this.seriesKey + ", dataset=" + this.dataset; Modified: branches/jfreechart-1.0.x-branch/source/org/jfree/chart/entity/PieSectionEntity.java =================================================================== --- branches/jfreechart-1.0.x-branch/source/org/jfree/chart/entity/PieSectionEntity.java 2013-11-22 16:03:27 UTC (rev 3020) +++ branches/jfreechart-1.0.x-branch/source/org/jfree/chart/entity/PieSectionEntity.java 2013-11-22 16:24:05 UTC (rev 3021) @@ -204,6 +204,7 @@ * * @return A boolean. */ + @Override public boolean equals(Object obj) { if (obj == this) { return true; @@ -232,6 +233,7 @@ * * @return A hash code. */ + @Override public int hashCode() { int result = super.hashCode(); result = HashUtilities.hashCode(result, this.pieIndex); @@ -244,6 +246,7 @@ * * @return A string representing the entity. */ + @Override public String toString() { return "PieSection: " + this.pieIndex + ", " + this.sectionIndex + "(" + this.sectionKey.toString() + ")"; Modified: branches/jfreechart-1.0.x-branch/source/org/jfree/chart/entity/StandardEntityCollection.java =================================================================== --- branches/jfreechart-1.0.x-branch/source/org/jfree/chart/entity/StandardEntityCollection.java 2013-11-22 16:03:27 UTC (rev 3020) +++ branches/jfreechart-1.0.x-branch/source/org/jfree/chart/entity/StandardEntityCollection.java 2013-11-22 16:24:05 UTC (rev 3021) @@ -84,6 +84,7 @@ * * @return The entity count. */ + @Override public int getEntityCount() { return this.entities.size(); } @@ -97,6 +98,7 @@ * * @see #add(ChartEntity) */ + @Override public ChartEntity getEntity(int index) { return (ChartEntity) this.entities.get(index); } @@ -104,6 +106,7 @@ /** * Clears all the entities from the collection. */ + @Override public void clear() { this.entities.clear(); } @@ -113,6 +116,7 @@ * * @param entity the entity (<code>null</code> not permitted). */ + @Override public void add(ChartEntity entity) { ParamChecks.nullNotPermitted(entity, "entity"); this.entities.add(entity); @@ -124,6 +128,7 @@ * @param collection the collection of entities (<code>null</code> not * permitted). */ + @Override public void addAll(EntityCollection collection) { this.entities.addAll(collection.getEntities()); } @@ -137,6 +142,7 @@ * * @return The entity (possibly <code>null</code>). */ + @Override public ChartEntity getEntity(double x, double y) { int entityCount = this.entities.size(); for (int i = entityCount - 1; i >= 0; i--) { @@ -153,6 +159,7 @@ * * @return The entities. */ + @Override public Collection getEntities() { return Collections.unmodifiableCollection(this.entities); } @@ -162,6 +169,7 @@ * * @return An iterator. */ + @Override public Iterator iterator() { return this.entities.iterator(); } @@ -173,6 +181,7 @@ * * @return A boolean. */ + @Override public boolean equals(Object obj) { if (obj == this) { return true; @@ -191,6 +200,7 @@ * * @throws CloneNotSupportedException if the object cannot be cloned. */ + @Override public Object clone() throws CloneNotSupportedException { StandardEntityCollection clone = (StandardEntityCollection) super.clone(); Modified: branches/jfreechart-1.0.x-branch/source/org/jfree/chart/entity/XYAnnotationEntity.java =================================================================== --- branches/jfreechart-1.0.x-branch/source/org/jfree/chart/entity/XYAnnotationEntity.java 2013-11-22 16:03:27 UTC (rev 3020) +++ branches/jfreechart-1.0.x-branch/source/org/jfree/chart/entity/XYAnnotationEntity.java 2013-11-22 16:24:05 UTC (rev 3021) @@ -95,6 +95,7 @@ * * @return A boolean. */ + @Override public boolean equals(Object obj) { if (obj == this) { return true; Modified: branches/jfreechart-1.0.x-branch/source/org/jfree/chart/entity/XYItemEntity.java =================================================================== --- branches/jfreechart-1.0.x-branch/source/org/jfree/chart/entity/XYItemEntity.java 2013-11-22 16:03:27 UTC (rev 3020) +++ branches/jfreechart-1.0.x-branch/source/org/jfree/chart/entity/XYItemEntity.java 2013-11-22 16:24:05 UTC (rev 3021) @@ -152,6 +152,7 @@ * * @return A boolean. */ + @Override public boolean equals(Object obj) { if (obj == this) { return true; @@ -175,6 +176,7 @@ * * @return A string. */ + @Override public String toString() { return "XYItemEntity: series = " + getSeriesIndex() + ", item = " + getItem() + ", dataset = " + getDataset(); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <mu...@us...> - 2013-11-22 16:03:30
|
Revision: 3020 http://sourceforge.net/p/jfreechart/code/3020 Author: mungady Date: 2013-11-22 16:03:27 +0000 (Fri, 22 Nov 2013) Log Message: ----------- Fixed NB warnings. Modified Paths: -------------- branches/jfreechart-1.0.x-branch/source/org/jfree/chart/encoders/KeypointPNGEncoderAdapter.java branches/jfreechart-1.0.x-branch/source/org/jfree/chart/encoders/SunJPEGEncoderAdapter.java branches/jfreechart-1.0.x-branch/source/org/jfree/chart/encoders/SunPNGEncoderAdapter.java Modified: branches/jfreechart-1.0.x-branch/source/org/jfree/chart/encoders/KeypointPNGEncoderAdapter.java =================================================================== --- branches/jfreechart-1.0.x-branch/source/org/jfree/chart/encoders/KeypointPNGEncoderAdapter.java 2013-11-22 16:03:13 UTC (rev 3019) +++ branches/jfreechart-1.0.x-branch/source/org/jfree/chart/encoders/KeypointPNGEncoderAdapter.java 2013-11-22 16:03:27 UTC (rev 3020) @@ -69,6 +69,7 @@ * * @return A float representing the quality. */ + @Override public float getQuality() { return this.quality; } @@ -81,6 +82,7 @@ * * @param quality A float representing the quality. */ + @Override public void setQuality(float quality) { this.quality = (int) quality; } @@ -90,6 +92,7 @@ * * @return Whether the encoder is encoding alpha transparency. */ + @Override public boolean isEncodingAlpha() { return this.encodingAlpha; } @@ -100,6 +103,7 @@ * @param encodingAlpha Whether the encoder should encode alpha * transparency. */ + @Override public void setEncodingAlpha(boolean encodingAlpha) { this.encodingAlpha = encodingAlpha; } @@ -111,6 +115,7 @@ * @return The byte[] that is the encoded image. * @throws IOException */ + @Override public byte[] encode(BufferedImage bufferedImage) throws IOException { ParamChecks.nullNotPermitted(bufferedImage, "bufferedImage"); PngEncoder encoder = new PngEncoder(bufferedImage, this.encodingAlpha, @@ -126,6 +131,7 @@ * @param outputStream The OutputStream to write the encoded image to. * @throws IOException */ + @Override public void encode(BufferedImage bufferedImage, OutputStream outputStream) throws IOException { ParamChecks.nullNotPermitted(bufferedImage, "bufferedImage"); Modified: branches/jfreechart-1.0.x-branch/source/org/jfree/chart/encoders/SunJPEGEncoderAdapter.java =================================================================== --- branches/jfreechart-1.0.x-branch/source/org/jfree/chart/encoders/SunJPEGEncoderAdapter.java 2013-11-22 16:03:13 UTC (rev 3019) +++ branches/jfreechart-1.0.x-branch/source/org/jfree/chart/encoders/SunJPEGEncoderAdapter.java 2013-11-22 16:03:27 UTC (rev 3020) @@ -85,6 +85,7 @@ * * @see #setQuality(float) */ + @Override public float getQuality() { return this.quality; } @@ -97,6 +98,7 @@ * * @see #getQuality() */ + @Override public void setQuality(float quality) { if (quality < 0.0f || quality > 1.0f) { throw new IllegalArgumentException( @@ -111,6 +113,7 @@ * * @return <code>false</code>. */ + @Override public boolean isEncodingAlpha() { return false; } @@ -121,6 +124,7 @@ * * @param encodingAlpha ignored. */ + @Override public void setEncodingAlpha(boolean encodingAlpha) { // No op } @@ -137,6 +141,7 @@ * @throws NullPointerException if <code>bufferedImage</code> is * <code>null</code>. */ + @Override public byte[] encode(BufferedImage bufferedImage) throws IOException { ByteArrayOutputStream outputStream = new ByteArrayOutputStream(); encode(bufferedImage, outputStream); @@ -155,6 +160,7 @@ * @throws NullPointerException if <code>bufferedImage</code> is * <code>null</code>. */ + @Override public void encode(BufferedImage bufferedImage, OutputStream outputStream) throws IOException { ParamChecks.nullNotPermitted(bufferedImage, "bufferedImage"); Modified: branches/jfreechart-1.0.x-branch/source/org/jfree/chart/encoders/SunPNGEncoderAdapter.java =================================================================== --- branches/jfreechart-1.0.x-branch/source/org/jfree/chart/encoders/SunPNGEncoderAdapter.java 2013-11-22 16:03:13 UTC (rev 3019) +++ branches/jfreechart-1.0.x-branch/source/org/jfree/chart/encoders/SunPNGEncoderAdapter.java 2013-11-22 16:03:27 UTC (rev 3020) @@ -62,6 +62,7 @@ * * @return A float representing the quality. */ + @Override public float getQuality() { return 0.0f; } @@ -72,6 +73,7 @@ * * @param quality A float representing the quality. */ + @Override public void setQuality(float quality) { // No op } @@ -81,6 +83,7 @@ * * @return Whether the encoder is encoding alpha transparency. */ + @Override public boolean isEncodingAlpha() { return false; } @@ -92,6 +95,7 @@ * @param encodingAlpha Whether the encoder should encode alpha * transparency. */ + @Override public void setEncodingAlpha(boolean encodingAlpha) { // No op } @@ -105,6 +109,7 @@ * * @throws IOException */ + @Override public byte[] encode(BufferedImage bufferedImage) throws IOException { ByteArrayOutputStream outputStream = new ByteArrayOutputStream(); encode(bufferedImage, outputStream); @@ -118,6 +123,7 @@ * @param outputStream The OutputStream to write the encoded image to. * @throws IOException */ + @Override public void encode(BufferedImage bufferedImage, OutputStream outputStream) throws IOException { ParamChecks.nullNotPermitted(bufferedImage, "bufferedImage"); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <mu...@us...> - 2013-11-22 16:03:17
|
Revision: 3019 http://sourceforge.net/p/jfreechart/code/3019 Author: mungady Date: 2013-11-22 16:03:13 +0000 (Fri, 22 Nov 2013) Log Message: ----------- Fixed NB warnings. Modified Paths: -------------- branches/jfreechart-1.0.x-branch/source/org/jfree/chart/editor/DefaultAxisEditor.java branches/jfreechart-1.0.x-branch/source/org/jfree/chart/editor/DefaultChartEditor.java branches/jfreechart-1.0.x-branch/source/org/jfree/chart/editor/DefaultChartEditorFactory.java branches/jfreechart-1.0.x-branch/source/org/jfree/chart/editor/DefaultColorBarEditor.java branches/jfreechart-1.0.x-branch/source/org/jfree/chart/editor/DefaultLogAxisEditor.java branches/jfreechart-1.0.x-branch/source/org/jfree/chart/editor/DefaultNumberAxisEditor.java branches/jfreechart-1.0.x-branch/source/org/jfree/chart/editor/DefaultPlotEditor.java branches/jfreechart-1.0.x-branch/source/org/jfree/chart/editor/DefaultPolarPlotEditor.java branches/jfreechart-1.0.x-branch/source/org/jfree/chart/editor/DefaultTitleEditor.java branches/jfreechart-1.0.x-branch/source/org/jfree/chart/editor/DefaultValueAxisEditor.java branches/jfreechart-1.0.x-branch/source/org/jfree/chart/editor/PaletteSample.java Modified: branches/jfreechart-1.0.x-branch/source/org/jfree/chart/editor/DefaultAxisEditor.java =================================================================== --- branches/jfreechart-1.0.x-branch/source/org/jfree/chart/editor/DefaultAxisEditor.java 2013-11-22 16:02:49 UTC (rev 3018) +++ branches/jfreechart-1.0.x-branch/source/org/jfree/chart/editor/DefaultAxisEditor.java 2013-11-22 16:03:13 UTC (rev 3019) @@ -394,6 +394,7 @@ * @param event information about the event that triggered the call to * this method. */ + @Override public void actionPerformed(ActionEvent event) { String command = event.getActionCommand(); if (command.equals("SelectLabelFont")) { Modified: branches/jfreechart-1.0.x-branch/source/org/jfree/chart/editor/DefaultChartEditor.java =================================================================== --- branches/jfreechart-1.0.x-branch/source/org/jfree/chart/editor/DefaultChartEditor.java 2013-11-22 16:02:49 UTC (rev 3018) +++ branches/jfreechart-1.0.x-branch/source/org/jfree/chart/editor/DefaultChartEditor.java 2013-11-22 16:03:13 UTC (rev 3019) @@ -238,6 +238,7 @@ * * @param event a BackgroundPaint action. */ + @Override public void actionPerformed(ActionEvent event) { String command = event.getActionCommand(); if (command.equals("BackgroundPaint")) { @@ -265,11 +266,10 @@ * * @param chart the chart. */ + @Override public void updateChart(JFreeChart chart) { - this.titleEditor.setTitleProperties(chart); this.plotEditor.updatePlotProperties(chart.getPlot()); - chart.setAntiAlias(getAntiAlias()); chart.setBackgroundPaint(getBackgroundPaint()); } Modified: branches/jfreechart-1.0.x-branch/source/org/jfree/chart/editor/DefaultChartEditorFactory.java =================================================================== --- branches/jfreechart-1.0.x-branch/source/org/jfree/chart/editor/DefaultChartEditorFactory.java 2013-11-22 16:02:49 UTC (rev 3018) +++ branches/jfreechart-1.0.x-branch/source/org/jfree/chart/editor/DefaultChartEditorFactory.java 2013-11-22 16:03:13 UTC (rev 3019) @@ -60,6 +60,7 @@ * * @return A chart editor for the given chart. */ + @Override public ChartEditor createEditor(JFreeChart chart) { return new DefaultChartEditor(chart); } Modified: branches/jfreechart-1.0.x-branch/source/org/jfree/chart/editor/DefaultColorBarEditor.java =================================================================== --- branches/jfreechart-1.0.x-branch/source/org/jfree/chart/editor/DefaultColorBarEditor.java 2013-11-22 16:02:49 UTC (rev 3018) +++ branches/jfreechart-1.0.x-branch/source/org/jfree/chart/editor/DefaultColorBarEditor.java 2013-11-22 16:03:13 UTC (rev 3019) @@ -158,6 +158,7 @@ * * @param event the event. */ + @Override public void actionPerformed(ActionEvent event) { String command = event.getActionCommand(); if (command.equals("PaletteChoice")) { Modified: branches/jfreechart-1.0.x-branch/source/org/jfree/chart/editor/DefaultLogAxisEditor.java =================================================================== --- branches/jfreechart-1.0.x-branch/source/org/jfree/chart/editor/DefaultLogAxisEditor.java 2013-11-22 16:02:49 UTC (rev 3018) +++ branches/jfreechart-1.0.x-branch/source/org/jfree/chart/editor/DefaultLogAxisEditor.java 2013-11-22 16:03:13 UTC (rev 3019) @@ -76,6 +76,7 @@ * * @return A panel. */ + @Override protected JPanel createTickUnitPanel() { JPanel tickUnitPanel = super.createTickUnitPanel(); @@ -98,6 +99,7 @@ * * @param event an event. */ + @Override public void actionPerformed(ActionEvent event) { String command = event.getActionCommand(); if (command.equals("TickUnitValue")) { @@ -109,6 +111,7 @@ } } + @Override public void focusLost(FocusEvent event) { super.focusLost(event); if (event.getSource() == this.manualTickUnit) { @@ -119,6 +122,7 @@ /** * Toggles the auto-tick-unit setting. */ + @Override public void toggleAutoTick() { super.toggleAutoTick(); if (isAutoTickUnitSelection()) { @@ -154,6 +158,7 @@ * * @param axis the axis. */ + @Override public void setAxisProperties(Axis axis) { super.setAxisProperties(axis); LogAxis logAxis = (LogAxis) axis; Modified: branches/jfreechart-1.0.x-branch/source/org/jfree/chart/editor/DefaultNumberAxisEditor.java =================================================================== --- branches/jfreechart-1.0.x-branch/source/org/jfree/chart/editor/DefaultNumberAxisEditor.java 2013-11-22 16:02:49 UTC (rev 3018) +++ branches/jfreechart-1.0.x-branch/source/org/jfree/chart/editor/DefaultNumberAxisEditor.java 2013-11-22 16:03:13 UTC (rev 3019) @@ -82,6 +82,7 @@ validateTickUnit(); } + @Override protected JPanel createTickUnitPanel() { JPanel tickUnitPanel = new JPanel(new LCBLayout(3)); @@ -115,6 +116,7 @@ * Handles actions from within the property panel. * @param event an event. */ + @Override public void actionPerformed(ActionEvent event) { String command = event.getActionCommand(); if (command.equals("TickUnitValue")) { @@ -126,6 +128,7 @@ } } + @Override public void focusLost(FocusEvent event) { super.focusLost(event); if (event.getSource() == this.manualTickUnit) { @@ -133,6 +136,7 @@ } } + @Override public void toggleAutoTick() { super.toggleAutoTick(); if (isAutoTickUnitSelection()) { @@ -165,6 +169,7 @@ * * @param axis the axis. */ + @Override public void setAxisProperties(Axis axis) { super.setAxisProperties(axis); NumberAxis numberAxis = (NumberAxis) axis; Modified: branches/jfreechart-1.0.x-branch/source/org/jfree/chart/editor/DefaultPlotEditor.java =================================================================== --- branches/jfreechart-1.0.x-branch/source/org/jfree/chart/editor/DefaultPlotEditor.java 2013-11-22 16:02:49 UTC (rev 3018) +++ branches/jfreechart-1.0.x-branch/source/org/jfree/chart/editor/DefaultPlotEditor.java 2013-11-22 16:03:13 UTC (rev 3019) @@ -443,6 +443,7 @@ * Handles user actions generated within the panel. * @param event the event */ + @Override public void actionPerformed(ActionEvent event) { String command = event.getActionCommand(); if (command.equals("BackgroundPaint")) { Modified: branches/jfreechart-1.0.x-branch/source/org/jfree/chart/editor/DefaultPolarPlotEditor.java =================================================================== --- branches/jfreechart-1.0.x-branch/source/org/jfree/chart/editor/DefaultPolarPlotEditor.java 2013-11-22 16:02:49 UTC (rev 3018) +++ branches/jfreechart-1.0.x-branch/source/org/jfree/chart/editor/DefaultPolarPlotEditor.java 2013-11-22 16:03:13 UTC (rev 3019) @@ -96,10 +96,12 @@ * * @return A tabbed pane. */ + @Override protected JTabbedPane createPlotTabs(Plot plot) { JTabbedPane tabs = super.createPlotTabs(plot); // TODO find a better localization key - tabs.insertTab(localizationResources.getString("General1"), null, createPlotPanel(), null, 0); + tabs.insertTab(localizationResources.getString("General1"), null, + createPlotPanel(), null, 0); tabs.setSelectedIndex(0); return tabs; } @@ -136,6 +138,7 @@ * * @param event the event. */ + @Override public void focusGained(FocusEvent event) { // don't need to do anything } @@ -145,6 +148,7 @@ * * @param event the event. */ + @Override public void focusLost(FocusEvent event) { if (event.getSource() == this.angleOffset) { validateAngleOffset(); @@ -158,6 +162,7 @@ * Handles actions from within the property panel. * @param event an event. */ + @Override public void actionPerformed(ActionEvent event) { String command = event.getActionCommand(); if (command.equals("AngleOffsetValue")) { @@ -201,6 +206,7 @@ this.manualTickUnit.setText(Double.toString(this.manualTickUnitValue)); } + @Override public void updatePlotProperties(Plot plot) { super.updatePlotProperties(plot); PolarPlot pp = (PolarPlot) plot; Modified: branches/jfreechart-1.0.x-branch/source/org/jfree/chart/editor/DefaultTitleEditor.java =================================================================== --- branches/jfreechart-1.0.x-branch/source/org/jfree/chart/editor/DefaultTitleEditor.java 2013-11-22 16:02:49 UTC (rev 3018) +++ branches/jfreechart-1.0.x-branch/source/org/jfree/chart/editor/DefaultTitleEditor.java 2013-11-22 16:03:13 UTC (rev 3019) @@ -206,6 +206,7 @@ * * @param event the event */ + @Override public void actionPerformed(ActionEvent event) { String command = event.getActionCommand(); Modified: branches/jfreechart-1.0.x-branch/source/org/jfree/chart/editor/DefaultValueAxisEditor.java =================================================================== --- branches/jfreechart-1.0.x-branch/source/org/jfree/chart/editor/DefaultValueAxisEditor.java 2013-11-22 16:02:49 UTC (rev 3018) +++ branches/jfreechart-1.0.x-branch/source/org/jfree/chart/editor/DefaultValueAxisEditor.java 2013-11-22 16:03:13 UTC (rev 3019) @@ -264,6 +264,7 @@ * Handles actions from within the property panel. * @param event an event. */ + @Override public void actionPerformed(ActionEvent event) { String command = event.getActionCommand(); if (command.equals("GridStroke")) { @@ -322,6 +323,7 @@ * * @param event the event. */ + @Override public void focusGained(FocusEvent event) { // don't need to do anything } @@ -331,6 +333,7 @@ * * @param event the event. */ + @Override public void focusLost(FocusEvent event) { if (event.getSource() == this.minimumRangeValue) { validateMinimum(); @@ -405,6 +408,7 @@ * * @param axis the axis. */ + @Override public void setAxisProperties(Axis axis) { super.setAxisProperties(axis); ValueAxis valueAxis = (ValueAxis) axis; Modified: branches/jfreechart-1.0.x-branch/source/org/jfree/chart/editor/PaletteSample.java =================================================================== --- branches/jfreechart-1.0.x-branch/source/org/jfree/chart/editor/PaletteSample.java 2013-11-22 16:02:49 UTC (rev 3018) +++ branches/jfreechart-1.0.x-branch/source/org/jfree/chart/editor/PaletteSample.java 2013-11-22 16:03:13 UTC (rev 3019) @@ -99,10 +99,9 @@ * * @return The renderer. */ + @Override public Component getListCellRendererComponent(JList list, Object value, - int index, - boolean isSelected, - boolean cellHasFocus) { + int index, boolean isSelected, boolean cellHasFocus) { if (value instanceof PaletteSample) { PaletteSample in = (PaletteSample) value; setPalette(in.getPalette()); @@ -124,6 +123,7 @@ * * @return The preferred size. */ + @Override public Dimension getPreferredSize() { return this.preferredSize; } @@ -133,12 +133,12 @@ * * @param g the graphics device. */ + @Override public void paintComponent(Graphics g) { Graphics2D g2 = (Graphics2D) g; - g2.setRenderingHint( - RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_OFF - ); + g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING, + RenderingHints.VALUE_ANTIALIAS_OFF); Dimension size = getSize(); Insets insets = getInsets(); double ww = size.getWidth() - insets.left - insets.right; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <mu...@us...> - 2013-11-22 16:02:52
|
Revision: 3018 http://sourceforge.net/p/jfreechart/code/3018 Author: mungady Date: 2013-11-22 16:02:49 +0000 (Fri, 22 Nov 2013) Log Message: ----------- Fixed NB warnings. Modified Paths: -------------- branches/jfreechart-1.0.x-branch/source/org/jfree/chart/block/AbstractBlock.java branches/jfreechart-1.0.x-branch/source/org/jfree/chart/block/BlockBorder.java branches/jfreechart-1.0.x-branch/source/org/jfree/chart/block/BlockContainer.java branches/jfreechart-1.0.x-branch/source/org/jfree/chart/block/BlockParams.java branches/jfreechart-1.0.x-branch/source/org/jfree/chart/block/BlockResult.java branches/jfreechart-1.0.x-branch/source/org/jfree/chart/block/CenterArrangement.java branches/jfreechart-1.0.x-branch/source/org/jfree/chart/block/ColorBlock.java branches/jfreechart-1.0.x-branch/source/org/jfree/chart/block/ColumnArrangement.java branches/jfreechart-1.0.x-branch/source/org/jfree/chart/block/EmptyBlock.java branches/jfreechart-1.0.x-branch/source/org/jfree/chart/block/FlowArrangement.java branches/jfreechart-1.0.x-branch/source/org/jfree/chart/block/GridArrangement.java branches/jfreechart-1.0.x-branch/source/org/jfree/chart/block/LabelBlock.java branches/jfreechart-1.0.x-branch/source/org/jfree/chart/block/LengthConstraintType.java branches/jfreechart-1.0.x-branch/source/org/jfree/chart/block/LineBorder.java branches/jfreechart-1.0.x-branch/source/org/jfree/chart/block/RectangleConstraint.java Modified: branches/jfreechart-1.0.x-branch/source/org/jfree/chart/block/AbstractBlock.java =================================================================== --- branches/jfreechart-1.0.x-branch/source/org/jfree/chart/block/AbstractBlock.java 2013-11-22 13:43:34 UTC (rev 3017) +++ branches/jfreechart-1.0.x-branch/source/org/jfree/chart/block/AbstractBlock.java 2013-11-22 16:02:49 UTC (rev 3018) @@ -583,6 +583,7 @@ * * @return A boolean. */ + @Override public boolean equals(Object obj) { if (obj == this) { return true; @@ -623,6 +624,7 @@ * @throws CloneNotSupportedException if there is a problem creating the * clone. */ + @Override public Object clone() throws CloneNotSupportedException { AbstractBlock clone = (AbstractBlock) super.clone(); clone.bounds = (Rectangle2D) ShapeUtilities.clone(this.bounds); Modified: branches/jfreechart-1.0.x-branch/source/org/jfree/chart/block/BlockBorder.java =================================================================== --- branches/jfreechart-1.0.x-branch/source/org/jfree/chart/block/BlockBorder.java 2013-11-22 13:43:34 UTC (rev 3017) +++ branches/jfreechart-1.0.x-branch/source/org/jfree/chart/block/BlockBorder.java 2013-11-22 16:02:49 UTC (rev 3018) @@ -138,6 +138,7 @@ * * @return The space (never <code>null</code>). */ + @Override public RectangleInsets getInsets() { return this.insets; } @@ -157,6 +158,7 @@ * @param g2 the graphics device. * @param area the area. */ + @Override public void draw(Graphics2D g2, Rectangle2D area) { // this default implementation will just fill the available // border space with a single color @@ -195,6 +197,7 @@ * * @return A boolean. */ + @Override public boolean equals(Object obj) { if (obj == this) { return true; Modified: branches/jfreechart-1.0.x-branch/source/org/jfree/chart/block/BlockContainer.java =================================================================== --- branches/jfreechart-1.0.x-branch/source/org/jfree/chart/block/BlockContainer.java 2013-11-22 13:43:34 UTC (rev 3017) +++ branches/jfreechart-1.0.x-branch/source/org/jfree/chart/block/BlockContainer.java 2013-11-22 16:02:49 UTC (rev 3018) @@ -173,6 +173,7 @@ * * @return The block size (in Java2D units, never <code>null</code>). */ + @Override public Size2D arrange(Graphics2D g2, RectangleConstraint constraint) { return this.arrangement.arrange(this, g2, constraint); } @@ -183,6 +184,7 @@ * @param g2 the graphics device. * @param area the area. */ + @Override public void draw(Graphics2D g2, Rectangle2D area) { draw(g2, area, null); } @@ -197,6 +199,7 @@ * * @return An instance of {@link EntityBlockResult}, or <code>null</code>. */ + @Override public Object draw(Graphics2D g2, Rectangle2D area, Object params) { // check if we need to collect chart entities from the container EntityBlockParams ebp; @@ -243,6 +246,7 @@ * * @return A boolean. */ + @Override public boolean equals(Object obj) { if (obj == this) { return true; @@ -270,6 +274,7 @@ * * @throws CloneNotSupportedException if there is a problem cloning. */ + @Override public Object clone() throws CloneNotSupportedException { BlockContainer clone = (BlockContainer) super.clone(); // TODO : complete this Modified: branches/jfreechart-1.0.x-branch/source/org/jfree/chart/block/BlockParams.java =================================================================== --- branches/jfreechart-1.0.x-branch/source/org/jfree/chart/block/BlockParams.java 2013-11-22 13:43:34 UTC (rev 3017) +++ branches/jfreechart-1.0.x-branch/source/org/jfree/chart/block/BlockParams.java 2013-11-22 16:02:49 UTC (rev 3018) @@ -81,6 +81,7 @@ * * @return A boolean. */ + @Override public boolean getGenerateEntities() { return this.generateEntities; } Modified: branches/jfreechart-1.0.x-branch/source/org/jfree/chart/block/BlockResult.java =================================================================== --- branches/jfreechart-1.0.x-branch/source/org/jfree/chart/block/BlockResult.java 2013-11-22 13:43:34 UTC (rev 3017) +++ branches/jfreechart-1.0.x-branch/source/org/jfree/chart/block/BlockResult.java 2013-11-22 16:02:49 UTC (rev 3018) @@ -63,6 +63,7 @@ * * @return The entities. */ + @Override public EntityCollection getEntityCollection() { return this.entities; } Modified: branches/jfreechart-1.0.x-branch/source/org/jfree/chart/block/CenterArrangement.java =================================================================== --- branches/jfreechart-1.0.x-branch/source/org/jfree/chart/block/CenterArrangement.java 2013-11-22 13:43:34 UTC (rev 3017) +++ branches/jfreechart-1.0.x-branch/source/org/jfree/chart/block/CenterArrangement.java 2013-11-22 16:02:49 UTC (rev 3018) @@ -71,6 +71,7 @@ * @param block the block. * @param key a key that controls the position of the block. */ + @Override public void add(Block block, Object key) { // since the flow layout is relatively straightforward, // no information needs to be recorded here @@ -88,6 +89,7 @@ * * @return The size of the container after arrangement of the contents. */ + @Override public Size2D arrange(BlockContainer container, Graphics2D g2, RectangleConstraint constraint) { @@ -305,6 +307,7 @@ /** * Clears any cached information. */ + @Override public void clear() { // no action required. } @@ -316,6 +319,7 @@ * * @return A boolean. */ + @Override public boolean equals(Object obj) { if (obj == this) { return true; Modified: branches/jfreechart-1.0.x-branch/source/org/jfree/chart/block/ColorBlock.java =================================================================== --- branches/jfreechart-1.0.x-branch/source/org/jfree/chart/block/ColorBlock.java 2013-11-22 13:43:34 UTC (rev 3017) +++ branches/jfreechart-1.0.x-branch/source/org/jfree/chart/block/ColorBlock.java 2013-11-22 16:02:49 UTC (rev 3018) @@ -103,6 +103,7 @@ * * @return The block size (in Java2D units, never <code>null</code>). */ + @Override public Size2D arrange(Graphics2D g2, RectangleConstraint constraint) { return new Size2D(calculateTotalWidth(getWidth()), calculateTotalHeight(getHeight())); @@ -114,6 +115,7 @@ * @param g2 the graphics device. * @param area the area. */ + @Override public void draw(Graphics2D g2, Rectangle2D area) { area = trimMargin(area); drawBorder(g2, area); @@ -132,6 +134,7 @@ * * @return Always <code>null</code>. */ + @Override public Object draw(Graphics2D g2, Rectangle2D area, Object params) { draw(g2, area); return null; @@ -144,6 +147,7 @@ * * @return A boolean. */ + @Override public boolean equals(Object obj) { if (obj == this) { return true; Modified: branches/jfreechart-1.0.x-branch/source/org/jfree/chart/block/ColumnArrangement.java =================================================================== --- branches/jfreechart-1.0.x-branch/source/org/jfree/chart/block/ColumnArrangement.java 2013-11-22 13:43:34 UTC (rev 3017) +++ branches/jfreechart-1.0.x-branch/source/org/jfree/chart/block/ColumnArrangement.java 2013-11-22 16:02:49 UTC (rev 3018) @@ -102,6 +102,7 @@ * @param block the block. * @param key a key that controls the position of the block. */ + @Override public void add(Block block, Object key) { // since the flow layout is relatively straightforward, no information // needs to be recorded here @@ -119,6 +120,7 @@ * * @return The size of the container after arrangement of the contents. */ + @Override public Size2D arrange(BlockContainer container, Graphics2D g2, RectangleConstraint constraint) { @@ -350,6 +352,7 @@ /** * Clears any cached information. */ + @Override public void clear() { // no action required. } @@ -361,6 +364,7 @@ * * @return A boolean. */ + @Override public boolean equals(Object obj) { if (obj == this) { return true; Modified: branches/jfreechart-1.0.x-branch/source/org/jfree/chart/block/EmptyBlock.java =================================================================== --- branches/jfreechart-1.0.x-branch/source/org/jfree/chart/block/EmptyBlock.java 2013-11-22 13:43:34 UTC (rev 3017) +++ branches/jfreechart-1.0.x-branch/source/org/jfree/chart/block/EmptyBlock.java 2013-11-22 16:02:49 UTC (rev 3018) @@ -81,6 +81,7 @@ * * @return The block size (in Java2D units, never <code>null</code>). */ + @Override public Size2D arrange(Graphics2D g2, RectangleConstraint constraint) { Size2D base = new Size2D(calculateTotalWidth(getWidth()), calculateTotalHeight(getHeight())); @@ -94,6 +95,7 @@ * @param g2 the graphics device. * @param area the area. */ + @Override public void draw(Graphics2D g2, Rectangle2D area) { draw(g2, area, null); } @@ -108,6 +110,7 @@ * * @return Always <code>null</code>. */ + @Override public Object draw(Graphics2D g2, Rectangle2D area, Object params) { area = trimMargin(area); drawBorder(g2, area); @@ -121,6 +124,7 @@ * * @throws CloneNotSupportedException if there is a problem cloning. */ + @Override public Object clone() throws CloneNotSupportedException { return super.clone(); } Modified: branches/jfreechart-1.0.x-branch/source/org/jfree/chart/block/FlowArrangement.java =================================================================== --- branches/jfreechart-1.0.x-branch/source/org/jfree/chart/block/FlowArrangement.java 2013-11-22 13:43:34 UTC (rev 3017) +++ branches/jfreechart-1.0.x-branch/source/org/jfree/chart/block/FlowArrangement.java 2013-11-22 16:02:49 UTC (rev 3018) @@ -103,6 +103,7 @@ * @param block the block. * @param key a key that controls the position of the block. */ + @Override public void add(Block block, Object key) { // since the flow layout is relatively straightforward, // no information needs to be recorded here @@ -120,6 +121,7 @@ * * @return The size of the container after arrangement of the contents. */ + @Override public Size2D arrange(BlockContainer container, Graphics2D g2, RectangleConstraint constraint) { @@ -410,6 +412,7 @@ /** * Clears any cached information. */ + @Override public void clear() { // no action required. } @@ -421,6 +424,7 @@ * * @return A boolean. */ + @Override public boolean equals(Object obj) { if (obj == this) { return true; Modified: branches/jfreechart-1.0.x-branch/source/org/jfree/chart/block/GridArrangement.java =================================================================== --- branches/jfreechart-1.0.x-branch/source/org/jfree/chart/block/GridArrangement.java 2013-11-22 13:43:34 UTC (rev 3017) +++ branches/jfreechart-1.0.x-branch/source/org/jfree/chart/block/GridArrangement.java 2013-11-22 16:02:49 UTC (rev 3018) @@ -84,6 +84,7 @@ * @param block the block. * @param key the key (<code>null</code> permitted). */ + @Override public void add(Block block, Object key) { // can safely ignore } @@ -98,6 +99,7 @@ * * @return The size following the arrangement. */ + @Override public Size2D arrange(BlockContainer container, Graphics2D g2, RectangleConstraint constraint) { LengthConstraintType w = constraint.getWidthConstraintType(); @@ -418,6 +420,7 @@ /** * Clears any cached layout information retained by the arrangement. */ + @Override public void clear() { // nothing to clear } @@ -429,6 +432,7 @@ * * @return A boolean. */ + @Override public boolean equals(Object obj) { if (obj == this) { return true; Modified: branches/jfreechart-1.0.x-branch/source/org/jfree/chart/block/LabelBlock.java =================================================================== --- branches/jfreechart-1.0.x-branch/source/org/jfree/chart/block/LabelBlock.java 2013-11-22 13:43:34 UTC (rev 3017) +++ branches/jfreechart-1.0.x-branch/source/org/jfree/chart/block/LabelBlock.java 2013-11-22 16:02:49 UTC (rev 3018) @@ -307,6 +307,7 @@ * * @return The block size (in Java2D units, never <code>null</code>). */ + @Override public Size2D arrange(Graphics2D g2, RectangleConstraint constraint) { g2.setFont(this.font); Size2D s = this.label.calculateDimensions(g2); @@ -320,6 +321,7 @@ * @param g2 the graphics device. * @param area the area. */ + @Override public void draw(Graphics2D g2, Rectangle2D area) { draw(g2, area, null); } @@ -333,6 +335,7 @@ * * @return Always <code>null</code>. */ + @Override public Object draw(Graphics2D g2, Rectangle2D area, Object params) { area = trimMargin(area); drawBorder(g2, area); @@ -376,6 +379,7 @@ * * @return A boolean. */ + @Override public boolean equals(Object obj) { if (!(obj instanceof LabelBlock)) { return false; @@ -412,6 +416,7 @@ * * @throws CloneNotSupportedException if there is a problem cloning. */ + @Override public Object clone() throws CloneNotSupportedException { return super.clone(); } Modified: branches/jfreechart-1.0.x-branch/source/org/jfree/chart/block/LengthConstraintType.java =================================================================== --- branches/jfreechart-1.0.x-branch/source/org/jfree/chart/block/LengthConstraintType.java 2013-11-22 13:43:34 UTC (rev 3017) +++ branches/jfreechart-1.0.x-branch/source/org/jfree/chart/block/LengthConstraintType.java 2013-11-22 16:02:49 UTC (rev 3018) @@ -80,6 +80,7 @@ * * @return The string. */ + @Override public String toString() { return this.name; } @@ -92,6 +93,7 @@ * * @return A boolean. */ + @Override public boolean equals(Object obj) { if (this == obj) { return true; @@ -111,6 +113,7 @@ * * @return The hashcode */ + @Override public int hashCode() { return this.name.hashCode(); } Modified: branches/jfreechart-1.0.x-branch/source/org/jfree/chart/block/LineBorder.java =================================================================== --- branches/jfreechart-1.0.x-branch/source/org/jfree/chart/block/LineBorder.java 2013-11-22 13:43:34 UTC (rev 3017) +++ branches/jfreechart-1.0.x-branch/source/org/jfree/chart/block/LineBorder.java 2013-11-22 16:02:49 UTC (rev 3018) @@ -118,6 +118,7 @@ * * @return The insets (never <code>null</code>). */ + @Override public RectangleInsets getInsets() { return this.insets; } @@ -137,6 +138,7 @@ * @param g2 the graphics device. * @param area the area. */ + @Override public void draw(Graphics2D g2, Rectangle2D area) { double w = area.getWidth(); double h = area.getHeight(); @@ -182,6 +184,7 @@ * * @return A boolean. */ + @Override public boolean equals(Object obj) { if (obj == this) { return true; Modified: branches/jfreechart-1.0.x-branch/source/org/jfree/chart/block/RectangleConstraint.java =================================================================== --- branches/jfreechart-1.0.x-branch/source/org/jfree/chart/block/RectangleConstraint.java 2013-11-22 13:43:34 UTC (rev 3017) +++ branches/jfreechart-1.0.x-branch/source/org/jfree/chart/block/RectangleConstraint.java 2013-11-22 16:02:49 UTC (rev 3018) @@ -300,6 +300,7 @@ * * @return A string. */ + @Override public String toString() { return "RectangleConstraint[" + this.widthConstraintType.toString() + ": width=" This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <mu...@us...> - 2013-11-22 13:43:37
|
Revision: 3017 http://sourceforge.net/p/jfreechart/code/3017 Author: mungady Date: 2013-11-22 13:43:34 +0000 (Fri, 22 Nov 2013) Log Message: ----------- Fixed NB warnings. Modified Paths: -------------- branches/jfreechart-1.0.x-branch/source/org/jfree/chart/panel/CrosshairOverlay.java Modified: branches/jfreechart-1.0.x-branch/source/org/jfree/chart/panel/CrosshairOverlay.java =================================================================== --- branches/jfreechart-1.0.x-branch/source/org/jfree/chart/panel/CrosshairOverlay.java 2013-11-22 13:42:25 UTC (rev 3016) +++ branches/jfreechart-1.0.x-branch/source/org/jfree/chart/panel/CrosshairOverlay.java 2013-11-22 13:43:34 UTC (rev 3017) @@ -213,6 +213,7 @@ * * @param e the event. */ + @Override public void propertyChange(PropertyChangeEvent e) { fireOverlayChanged(); } @@ -223,6 +224,7 @@ * @param g2 the graphics target. * @param chartPanel the chart panel. */ + @Override public void paintOverlay(Graphics2D g2, ChartPanel chartPanel) { Shape savedClip = g2.getClip(); Rectangle2D dataArea = chartPanel.getScreenDataArea(); @@ -553,6 +555,7 @@ * * @return A boolean. */ + @Override public boolean equals(Object obj) { if (obj == this) { return true; @@ -578,6 +581,7 @@ * @throws java.lang.CloneNotSupportedException if there is some problem * with the cloning. */ + @Override public Object clone() throws CloneNotSupportedException { CrosshairOverlay clone = (CrosshairOverlay) super.clone(); clone.xCrosshairs = (List) ObjectUtilities.deepClone(this.xCrosshairs); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <mu...@us...> - 2013-11-22 13:42:28
|
Revision: 3016 http://sourceforge.net/p/jfreechart/code/3016 Author: mungady Date: 2013-11-22 13:42:25 +0000 (Fri, 22 Nov 2013) Log Message: ----------- Fixed NB warnings. Modified Paths: -------------- branches/jfreechart-1.0.x-branch/source/org/jfree/chart/util/LogFormat.java branches/jfreechart-1.0.x-branch/source/org/jfree/chart/util/XYCoordinateType.java Modified: branches/jfreechart-1.0.x-branch/source/org/jfree/chart/util/LogFormat.java =================================================================== --- branches/jfreechart-1.0.x-branch/source/org/jfree/chart/util/LogFormat.java 2013-11-22 13:39:45 UTC (rev 3015) +++ branches/jfreechart-1.0.x-branch/source/org/jfree/chart/util/LogFormat.java 2013-11-22 13:42:25 UTC (rev 3016) @@ -166,6 +166,7 @@ * * @return A string buffer containing the formatted value. */ + @Override public StringBuffer format(double number, StringBuffer toAppendTo, FieldPosition pos) { StringBuffer result = new StringBuffer(); @@ -187,6 +188,7 @@ * * @return The string buffer. */ + @Override public StringBuffer format(long number, StringBuffer toAppendTo, FieldPosition pos) { StringBuffer result = new StringBuffer(); @@ -207,6 +209,7 @@ * * @return Always <code>null</code>. */ + @Override public Number parse (String source, ParsePosition parsePosition) { return null; // don't bother with parsing } @@ -218,6 +221,7 @@ * * @return A boolean. */ + @Override public boolean equals(Object obj) { if (obj == this) { return true; @@ -249,6 +253,7 @@ * * @return A clone. */ + @Override public Object clone() { LogFormat clone = (LogFormat) super.clone(); clone.formatter = (NumberFormat) this.formatter.clone(); Modified: branches/jfreechart-1.0.x-branch/source/org/jfree/chart/util/XYCoordinateType.java =================================================================== --- branches/jfreechart-1.0.x-branch/source/org/jfree/chart/util/XYCoordinateType.java 2013-11-22 13:39:45 UTC (rev 3015) +++ branches/jfreechart-1.0.x-branch/source/org/jfree/chart/util/XYCoordinateType.java 2013-11-22 13:42:25 UTC (rev 3016) @@ -86,6 +86,7 @@ * * @return The string. */ + @Override public String toString() { return this.name; } @@ -98,6 +99,7 @@ * * @return A boolean. */ + @Override public boolean equals(Object obj) { if (this == obj) { return true; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <mu...@us...> - 2013-11-22 13:39:49
|
Revision: 3015 http://sourceforge.net/p/jfreechart/code/3015 Author: mungady Date: 2013-11-22 13:39:45 +0000 (Fri, 22 Nov 2013) Log Message: ----------- Fixed NB warnings. Modified Paths: -------------- branches/jfreechart-1.0.x-branch/source/org/jfree/chart/plot/MultiplePiePlot.java Modified: branches/jfreechart-1.0.x-branch/source/org/jfree/chart/plot/MultiplePiePlot.java =================================================================== --- branches/jfreechart-1.0.x-branch/source/org/jfree/chart/plot/MultiplePiePlot.java 2013-11-22 13:37:43 UTC (rev 3014) +++ branches/jfreechart-1.0.x-branch/source/org/jfree/chart/plot/MultiplePiePlot.java 2013-11-22 13:39:45 UTC (rev 3015) @@ -339,6 +339,7 @@ * * @return The plot type. */ + @Override public String getPlotType() { return "Multiple Pie Plot"; // TODO: need to fetch this from localised resources @@ -383,13 +384,10 @@ * @param parentState the state from the parent plot, if there is one. * @param info collects info about the drawing. */ - public void draw(Graphics2D g2, - Rectangle2D area, - Point2D anchor, - PlotState parentState, - PlotRenderingInfo info) { + @Override + public void draw(Graphics2D g2, Rectangle2D area, Point2D anchor, + PlotState parentState, PlotRenderingInfo info) { - // adjust the drawing area for the plot insets (if any)... RectangleInsets insets = getInsets(); insets.trim(area); @@ -402,7 +400,7 @@ return; } - int pieCount = 0; + int pieCount; if (this.dataExtractOrder == TableOrder.BY_ROW) { pieCount = this.dataset.getRowCount(); } @@ -438,7 +436,7 @@ rect.setBounds(x + xoffset + (width * column), y + (height * row), width, height); - String title = null; + String title; if (this.dataExtractOrder == TableOrder.BY_ROW) { title = this.dataset.getRowKey(pieIndex).toString(); } @@ -447,7 +445,7 @@ } this.pieChart.setTitle(title); - PieDataset piedataset = null; + PieDataset piedataset; PieDataset dd = new CategoryToPieDataset(this.dataset, this.dataExtractOrder, pieIndex); if (this.limit > 0.0) { @@ -480,6 +478,7 @@ } this.pieChart.draw(g2, rect, subinfo); if (info != null) { + assert subinfo != null; info.getOwner().getEntityCollection().addAll( subinfo.getEntityCollection()); info.addSubplotInfo(subinfo.getPlotInfo()); @@ -548,6 +547,7 @@ * * @return The legend items. */ + @Override public LegendItemCollection getLegendItems() { LegendItemCollection result = new LegendItemCollection(); @@ -601,6 +601,7 @@ * @return <code>true</code> if this plot is equal to <code>obj</code>, and * <code>false</code> otherwise. */ + @Override public boolean equals(Object obj) { if (obj == this) { return true; @@ -642,6 +643,7 @@ * @throws CloneNotSupportedException if some component of the plot does * not support cloning. */ + @Override public Object clone() throws CloneNotSupportedException { MultiplePiePlot clone = (MultiplePiePlot) super.clone(); clone.pieChart = (JFreeChart) this.pieChart.clone(); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <mu...@us...> - 2013-11-22 13:37:45
|
Revision: 3014 http://sourceforge.net/p/jfreechart/code/3014 Author: mungady Date: 2013-11-22 13:37:43 +0000 (Fri, 22 Nov 2013) Log Message: ----------- Fixed NB warnings. Modified Paths: -------------- branches/jfreechart-1.0.x-branch/source/org/jfree/chart/labels/IntervalXYItemLabelGenerator.java Modified: branches/jfreechart-1.0.x-branch/source/org/jfree/chart/labels/IntervalXYItemLabelGenerator.java =================================================================== --- branches/jfreechart-1.0.x-branch/source/org/jfree/chart/labels/IntervalXYItemLabelGenerator.java 2013-11-22 13:35:25 UTC (rev 3013) +++ branches/jfreechart-1.0.x-branch/source/org/jfree/chart/labels/IntervalXYItemLabelGenerator.java 2013-11-22 13:37:43 UTC (rev 3014) @@ -148,6 +148,7 @@ * @return An array of seven items from the dataset formatted as * <code>String</code> objects (never <code>null</code>). */ + @Override protected Object[] createItemArray(XYDataset dataset, int series, int item) { @@ -197,7 +198,7 @@ result[4] = ynf.format(y); } } - if (Double.isNaN(ys) + if (Double.isNaN(ys) && intervalDataset != null && intervalDataset.getStartY(series, item) == null) { result[5] = getNullYString(); } @@ -209,7 +210,7 @@ result[5] = ynf.format(ys); } } - if (Double.isNaN(ye) + if (Double.isNaN(ye) && intervalDataset != null && intervalDataset.getEndY(series, item) == null) { result[6] = getNullYString(); } @@ -233,6 +234,7 @@ * * @return The label text (possibly <code>null</code>). */ + @Override public String generateLabel(XYDataset dataset, int series, int item) { return generateLabelString(dataset, series, item); } @@ -244,6 +246,7 @@ * * @throws CloneNotSupportedException if cloning is not supported. */ + @Override public Object clone() throws CloneNotSupportedException { return super.clone(); } @@ -255,6 +258,7 @@ * * @return A boolean. */ + @Override public boolean equals(Object obj) { if (obj == this) { return true; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <mu...@us...> - 2013-11-22 13:35:28
|
Revision: 3013 http://sourceforge.net/p/jfreechart/code/3013 Author: mungady Date: 2013-11-22 13:35:25 +0000 (Fri, 22 Nov 2013) Log Message: ----------- Fixed NB warnings. Modified Paths: -------------- branches/jfreechart-1.0.x-branch/source/org/jfree/data/general/DatasetUtilities.java Modified: branches/jfreechart-1.0.x-branch/source/org/jfree/data/general/DatasetUtilities.java =================================================================== --- branches/jfreechart-1.0.x-branch/source/org/jfree/data/general/DatasetUtilities.java 2013-11-22 13:34:57 UTC (rev 3012) +++ branches/jfreechart-1.0.x-branch/source/org/jfree/data/general/DatasetUtilities.java 2013-11-22 13:35:25 UTC (rev 3013) @@ -824,7 +824,7 @@ public static Range findRangeBounds(CategoryDataset dataset, List visibleSeriesKeys, boolean includeInterval) { ParamChecks.nullNotPermitted(dataset, "dataset"); - Range result = null; + Range result; if (dataset instanceof CategoryRangeInfo) { CategoryRangeInfo info = (CategoryRangeInfo) dataset; result = info.getRangeBounds(visibleSeriesKeys, includeInterval); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <mu...@us...> - 2013-11-22 13:35:02
|
Revision: 3012 http://sourceforge.net/p/jfreechart/code/3012 Author: mungady Date: 2013-11-22 13:34:57 +0000 (Fri, 22 Nov 2013) Log Message: ----------- Fixed NB warnings. Modified Paths: -------------- branches/jfreechart-1.0.x-branch/source/org/jfree/chart/util/DefaultShadowGenerator.java Modified: branches/jfreechart-1.0.x-branch/source/org/jfree/chart/util/DefaultShadowGenerator.java =================================================================== --- branches/jfreechart-1.0.x-branch/source/org/jfree/chart/util/DefaultShadowGenerator.java 2013-11-22 13:31:53 UTC (rev 3011) +++ branches/jfreechart-1.0.x-branch/source/org/jfree/chart/util/DefaultShadowGenerator.java 2013-11-22 13:34:57 UTC (rev 3012) @@ -153,6 +153,7 @@ * * @return The x-offset. */ + @Override public int calculateOffsetX() { return (int) (Math.cos(this.angle) * this.distance) - this.shadowSize; } @@ -163,6 +164,7 @@ * * @return The y-offset. */ + @Override public int calculateOffsetY() { return -(int) (Math.sin(this.angle) * this.distance) - this.shadowSize; } @@ -175,6 +177,7 @@ * * @return A new image containing the shadow. */ + @Override public BufferedImage createDropShadow(BufferedImage source) { BufferedImage subject = new BufferedImage( source.getWidth() + this.shadowSize * 2, @@ -207,7 +210,7 @@ int shadowRgb = this.shadowColor.getRGB() & 0x00FFFFFF; int[] aHistory = new int[this.shadowSize]; - int historyIdx = 0; + int historyIdx; int aSum; @@ -285,6 +288,7 @@ * * @return The object. */ + @Override public boolean equals(Object obj) { if (obj == this) { return true; @@ -316,6 +320,7 @@ * * @return The hash code. */ + @Override public int hashCode() { int hash = HashUtilities.hashCode(17, this.shadowSize); hash = HashUtilities.hashCode(hash, this.shadowColor); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <mu...@us...> - 2013-11-22 13:31:57
|
Revision: 3011 http://sourceforge.net/p/jfreechart/code/3011 Author: mungady Date: 2013-11-22 13:31:53 +0000 (Fri, 22 Nov 2013) Log Message: ----------- Fixed NB warnings. Modified Paths: -------------- branches/jfreechart-1.0.x-branch/source/org/jfree/data/statistics/Regression.java Modified: branches/jfreechart-1.0.x-branch/source/org/jfree/data/statistics/Regression.java =================================================================== --- branches/jfreechart-1.0.x-branch/source/org/jfree/data/statistics/Regression.java 2013-11-22 13:31:28 UTC (rev 3010) +++ branches/jfreechart-1.0.x-branch/source/org/jfree/data/statistics/Regression.java 2013-11-22 13:31:53 UTC (rev 3011) @@ -347,17 +347,14 @@ if (result[i][0] != 0) { found = true; double[] temp = result[0]; - for (int j = 0; j < result[i].length; j++) { - result[0][j] = result[i][j]; - } - for (int j = 0; j < temp.length; j++) { - result[i][j] = temp[j]; - } + System.arraycopy(result[i], 0, result[0], 0, + result[i].length); + System.arraycopy(temp, 0, result[i], 0, temp.length); break; } } if (!found) { - System.out.println("Equation has no solution!"); + //System.out.println("Equation has no solution!"); return new double[equations - 1][coefficients - 1]; } } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <mu...@us...> - 2013-11-22 13:31:32
|
Revision: 3010 http://sourceforge.net/p/jfreechart/code/3010 Author: mungady Date: 2013-11-22 13:31:28 +0000 (Fri, 22 Nov 2013) Log Message: ----------- Fixed NB warnings. Modified Paths: -------------- branches/jfreechart-1.0.x-branch/source/org/jfree/chart/plot/CombinedDomainCategoryPlot.java branches/jfreechart-1.0.x-branch/source/org/jfree/chart/plot/CombinedDomainXYPlot.java branches/jfreechart-1.0.x-branch/source/org/jfree/chart/plot/CombinedRangeCategoryPlot.java branches/jfreechart-1.0.x-branch/source/org/jfree/chart/plot/CombinedRangeXYPlot.java Modified: branches/jfreechart-1.0.x-branch/source/org/jfree/chart/plot/CombinedDomainCategoryPlot.java =================================================================== --- branches/jfreechart-1.0.x-branch/source/org/jfree/chart/plot/CombinedDomainCategoryPlot.java 2013-11-22 13:25:58 UTC (rev 3009) +++ branches/jfreechart-1.0.x-branch/source/org/jfree/chart/plot/CombinedDomainCategoryPlot.java 2013-11-22 13:31:28 UTC (rev 3010) @@ -264,6 +264,7 @@ * @param info the plot rendering info (<code>null</code> not permitted). * @param source the source point (<code>null</code> not permitted). */ + @Override public void zoomRangeAxes(double factor, PlotRenderingInfo info, Point2D source) { zoomRangeAxes(factor, info, source, false); @@ -277,6 +278,7 @@ * @param source the source point (<code>null</code> not permitted). * @param useAnchor zoom about the anchor point? */ + @Override public void zoomRangeAxes(double factor, PlotRenderingInfo info, Point2D source, boolean useAnchor) { // delegate 'info' and 'source' argument checks... @@ -303,6 +305,7 @@ * @param info the plot rendering info (<code>null</code> not permitted). * @param source the source point (<code>null</code> not permitted). */ + @Override public void zoomRangeAxes(double lowerPercent, double upperPercent, PlotRenderingInfo info, Point2D source) { // delegate 'info' and 'source' argument checks... @@ -329,6 +332,7 @@ * * @return The space required for the axes. */ + @Override protected AxisSpace calculateAxisSpace(Graphics2D g2, Rectangle2D plotArea) { @@ -422,11 +426,9 @@ * @param info collects information about the drawing (<code>null</code> * permitted). */ - public void draw(Graphics2D g2, - Rectangle2D area, - Point2D anchor, - PlotState parentState, - PlotRenderingInfo info) { + @Override + public void draw(Graphics2D g2, Rectangle2D area, Point2D anchor, + PlotState parentState, PlotRenderingInfo info) { // set up info collection... if (info != null) { @@ -501,6 +503,7 @@ * * @param orientation the orientation (<code>null</code> not permitted). */ + @Override public void setOrientation(PlotOrientation orientation) { super.setOrientation(orientation); Iterator iterator = this.subplots.iterator(); @@ -543,6 +546,7 @@ * * @return The range. */ + @Override public Range getDataRange(ValueAxis axis) { // override is only for documentation purposes return super.getDataRange(axis); @@ -553,6 +557,7 @@ * * @return The legend items. */ + @Override public LegendItemCollection getLegendItems() { LegendItemCollection result = getFixedLegendItems(); if (result == null) { @@ -575,6 +580,7 @@ * * @return The list. */ + @Override public List getCategories() { List result = new java.util.ArrayList(); if (this.subplots != null) { @@ -603,6 +609,7 @@ * * @since 1.0.3 */ + @Override public List getCategoriesForAxis(CategoryAxis axis) { // FIXME: this code means that it is not possible to use more than // one domain axis for the combined plots... @@ -617,6 +624,7 @@ * @param info information about the plot's dimensions. * */ + @Override public void handleClick(int x, int y, PlotRenderingInfo info) { Rectangle2D dataArea = info.getDataArea(); @@ -636,6 +644,7 @@ * * @param event the event. */ + @Override public void plotChanged(PlotChangeEvent event) { notifyListeners(event); } @@ -647,6 +656,7 @@ * * @return A boolean. */ + @Override public boolean equals(Object obj) { if (obj == this) { return true; @@ -672,6 +682,7 @@ * @throws CloneNotSupportedException this class will not throw this * exception, but subclasses (if any) might. */ + @Override public Object clone() throws CloneNotSupportedException { CombinedDomainCategoryPlot result Modified: branches/jfreechart-1.0.x-branch/source/org/jfree/chart/plot/CombinedDomainXYPlot.java =================================================================== --- branches/jfreechart-1.0.x-branch/source/org/jfree/chart/plot/CombinedDomainXYPlot.java 2013-11-22 13:25:58 UTC (rev 3009) +++ branches/jfreechart-1.0.x-branch/source/org/jfree/chart/plot/CombinedDomainXYPlot.java 2013-11-22 13:31:28 UTC (rev 3010) @@ -169,6 +169,7 @@ * * @return The type of plot. */ + @Override public String getPlotType() { return "Combined_Domain_XYPlot"; } @@ -179,6 +180,7 @@ * * @param orientation the orientation (<code>null</code> not allowed). */ + @Override public void setOrientation(PlotOrientation orientation) { super.setOrientation(orientation); Iterator iterator = this.subplots.iterator(); @@ -219,6 +221,7 @@ * * @return The range (possibly <code>null</code>). */ + @Override public Range getDataRange(ValueAxis axis) { Range result = null; if (this.subplots != null) { @@ -354,6 +357,7 @@ * * @return The space. */ + @Override protected AxisSpace calculateAxisSpace(Graphics2D g2, Rectangle2D plotArea) { @@ -439,6 +443,7 @@ * @param info collects chart drawing information (<code>null</code> * permitted). */ + @Override public void draw(Graphics2D g2, Rectangle2D area, Point2D anchor, PlotState parentState, PlotRenderingInfo info) { @@ -491,6 +496,7 @@ * * @return The legend items. */ + @Override public LegendItemCollection getLegendItems() { LegendItemCollection result = getFixedLegendItems(); if (result == null) { @@ -514,6 +520,7 @@ * @param info the plot rendering info (<code>null</code> not permitted). * @param source the source point (<code>null</code> not permitted). */ + @Override public void zoomRangeAxes(double factor, PlotRenderingInfo info, Point2D source) { zoomRangeAxes(factor, info, source, false); @@ -527,6 +534,7 @@ * @param source the source point (in Java2D coordinates). * @param useAnchor use source point as zoom anchor? */ + @Override public void zoomRangeAxes(double factor, PlotRenderingInfo state, Point2D source, boolean useAnchor) { // delegate 'state' and 'source' argument checks... @@ -553,6 +561,7 @@ * @param info the plot rendering info (<code>null</code> not permitted). * @param source the source point (<code>null</code> not permitted). */ + @Override public void zoomRangeAxes(double lowerPercent, double upperPercent, PlotRenderingInfo info, Point2D source) { // delegate 'info' and 'source' argument checks... @@ -580,6 +589,7 @@ * * @since 1.0.15 */ + @Override public void panRangeAxes(double panRange, PlotRenderingInfo info, Point2D source) { @@ -627,6 +637,7 @@ * * @param renderer the new renderer. */ + @Override public void setRenderer(XYItemRenderer renderer) { super.setRenderer(renderer); // not strictly necessary, since the // renderer set for the @@ -644,6 +655,7 @@ * * @param space the space (<code>null</code> permitted). */ + @Override public void setFixedRangeAxisSpace(AxisSpace space) { super.setFixedRangeAxisSpace(space); setFixedRangeAxisSpaceForSubplots(space); @@ -671,6 +683,7 @@ * @param y y-coordinate, where the click occured. * @param info object containing information about the plot dimensions. */ + @Override public void handleClick(int x, int y, PlotRenderingInfo info) { Rectangle2D dataArea = info.getDataArea(); if (dataArea.contains(x, y)) { @@ -688,6 +701,7 @@ * * @param event the event. */ + @Override public void plotChanged(PlotChangeEvent event) { notifyListeners(event); } @@ -699,6 +713,7 @@ * * @return <code>true</code> or <code>false</code>. */ + @Override public boolean equals(Object obj) { if (obj == this) { return true; @@ -724,6 +739,7 @@ * @throws CloneNotSupportedException this class will not throw this * exception, but subclasses (if any) might. */ + @Override public Object clone() throws CloneNotSupportedException { CombinedDomainXYPlot result = (CombinedDomainXYPlot) super.clone(); Modified: branches/jfreechart-1.0.x-branch/source/org/jfree/chart/plot/CombinedRangeCategoryPlot.java =================================================================== --- branches/jfreechart-1.0.x-branch/source/org/jfree/chart/plot/CombinedRangeCategoryPlot.java 2013-11-22 13:25:58 UTC (rev 3009) +++ branches/jfreechart-1.0.x-branch/source/org/jfree/chart/plot/CombinedRangeCategoryPlot.java 2013-11-22 13:31:28 UTC (rev 3010) @@ -243,8 +243,9 @@ * * @return The space required for the axes. */ - protected AxisSpace calculateAxisSpace(Graphics2D g2, - Rectangle2D plotArea) { + @Override + protected AxisSpace calculateAxisSpace(Graphics2D g2, + Rectangle2D plotArea) { AxisSpace space = new AxisSpace(); PlotOrientation orientation = getOrientation(); @@ -331,6 +332,7 @@ * @param info collects information about the drawing (<code>null</code> * permitted). */ + @Override public void draw(Graphics2D g2, Rectangle2D area, Point2D anchor, PlotState parentState, PlotRenderingInfo info) { @@ -389,6 +391,7 @@ * * @param orientation the orientation. */ + @Override public void setOrientation(PlotOrientation orientation) { super.setOrientation(orientation); Iterator iterator = this.subplots.iterator(); @@ -429,6 +432,7 @@ * * @return The range. */ + @Override public Range getDataRange(ValueAxis axis) { Range result = null; if (this.subplots != null) { @@ -446,6 +450,7 @@ * * @return The legend items. */ + @Override public LegendItemCollection getLegendItems() { LegendItemCollection result = getFixedLegendItems(); if (result == null) { @@ -484,8 +489,8 @@ * @param info information about the plot's dimensions. * */ + @Override public void handleClick(int x, int y, PlotRenderingInfo info) { - Rectangle2D dataArea = info.getDataArea(); if (dataArea.contains(x, y)) { for (int i = 0; i < this.subplots.size(); i++) { @@ -494,7 +499,6 @@ subplot.handleClick(x, y, subplotInfo); } } - } /** @@ -503,6 +507,7 @@ * * @param event the event. */ + @Override public void plotChanged(PlotChangeEvent event) { notifyListeners(event); } @@ -514,6 +519,7 @@ * * @return <code>true</code> or <code>false</code>. */ + @Override public boolean equals(Object obj) { if (obj == this) { return true; @@ -539,6 +545,7 @@ * @throws CloneNotSupportedException this class will not throw this * exception, but subclasses (if any) might. */ + @Override public Object clone() throws CloneNotSupportedException { CombinedRangeCategoryPlot result = (CombinedRangeCategoryPlot) super.clone(); Modified: branches/jfreechart-1.0.x-branch/source/org/jfree/chart/plot/CombinedRangeXYPlot.java =================================================================== --- branches/jfreechart-1.0.x-branch/source/org/jfree/chart/plot/CombinedRangeXYPlot.java 2013-11-22 13:25:58 UTC (rev 3009) +++ branches/jfreechart-1.0.x-branch/source/org/jfree/chart/plot/CombinedRangeXYPlot.java 2013-11-22 13:31:28 UTC (rev 3010) @@ -168,6 +168,7 @@ * * @return The type of plot. */ + @Override public String getPlotType() { return localizationResources.getString("Combined_Range_XYPlot"); } @@ -284,6 +285,7 @@ * * @return The space required for the axes. */ + @Override protected AxisSpace calculateAxisSpace(Graphics2D g2, Rectangle2D plotArea) { @@ -373,6 +375,7 @@ * @param info collects chart drawing information (<code>null</code> * permitted). */ + @Override public void draw(Graphics2D g2, Rectangle2D area, Point2D anchor, PlotState parentState, PlotRenderingInfo info) { @@ -426,6 +429,7 @@ * * @return The legend items. */ + @Override public LegendItemCollection getLegendItems() { LegendItemCollection result = getFixedLegendItems(); if (result == null) { @@ -450,6 +454,7 @@ * @param info the plot rendering info (<code>null</code> not permitted). * @param source the source point (<code>null</code> not permitted). */ + @Override public void zoomDomainAxes(double factor, PlotRenderingInfo info, Point2D source) { zoomDomainAxes(factor, info, source, false); @@ -463,6 +468,7 @@ * @param source the source point (<code>null</code> not permitted). * @param useAnchor zoom about the anchor point? */ + @Override public void zoomDomainAxes(double factor, PlotRenderingInfo info, Point2D source, boolean useAnchor) { // delegate 'info' and 'source' argument checks... @@ -489,6 +495,7 @@ * @param info the plot rendering info (<code>null</code> not permitted). * @param source the source point (<code>null</code> not permitted). */ + @Override public void zoomDomainAxes(double lowerPercent, double upperPercent, PlotRenderingInfo info, Point2D source) { // delegate 'info' and 'source' argument checks... @@ -517,6 +524,7 @@ * * @since 1.0.15 */ + @Override public void panDomainAxes(double panRange, PlotRenderingInfo info, Point2D source) { @@ -564,6 +572,7 @@ * * @param renderer the new renderer. */ + @Override public void setRenderer(XYItemRenderer renderer) { super.setRenderer(renderer); // not strictly necessary, since the // renderer set for the @@ -580,6 +589,7 @@ * * @param orientation the orientation. */ + @Override public void setOrientation(PlotOrientation orientation) { super.setOrientation(orientation); Iterator iterator = this.subplots.iterator(); @@ -620,6 +630,7 @@ * * @return The range. */ + @Override public Range getDataRange(ValueAxis axis) { Range result = null; if (this.subplots != null) { @@ -653,6 +664,7 @@ * @param y y-coordinate, where the click occured. * @param info object containing information about the plot dimensions. */ + @Override public void handleClick(int x, int y, PlotRenderingInfo info) { Rectangle2D dataArea = info.getDataArea(); if (dataArea.contains(x, y)) { @@ -670,6 +682,7 @@ * * @param event the event. */ + @Override public void plotChanged(PlotChangeEvent event) { notifyListeners(event); } @@ -681,6 +694,7 @@ * * @return <code>true</code> or <code>false</code>. */ + @Override public boolean equals(Object obj) { if (obj == this) { return true; @@ -706,6 +720,7 @@ * @throws CloneNotSupportedException this class will not throw this * exception, but subclasses (if any) might. */ + @Override public Object clone() throws CloneNotSupportedException { CombinedRangeXYPlot result = (CombinedRangeXYPlot) super.clone(); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <mu...@us...> - 2013-11-22 13:26:01
|
Revision: 3009 http://sourceforge.net/p/jfreechart/code/3009 Author: mungady Date: 2013-11-22 13:25:58 +0000 (Fri, 22 Nov 2013) Log Message: ----------- Fixed NB warnings. Modified Paths: -------------- branches/jfreechart-1.0.x-branch/source/org/jfree/chart/renderer/category/BarRenderer.java Modified: branches/jfreechart-1.0.x-branch/source/org/jfree/chart/renderer/category/BarRenderer.java =================================================================== --- branches/jfreechart-1.0.x-branch/source/org/jfree/chart/renderer/category/BarRenderer.java 2013-11-22 13:23:44 UTC (rev 3008) +++ branches/jfreechart-1.0.x-branch/source/org/jfree/chart/renderer/category/BarRenderer.java 2013-11-22 13:25:58 UTC (rev 3009) @@ -739,11 +739,10 @@ * * @return The renderer state. */ - public CategoryItemRendererState initialise(Graphics2D g2, - Rectangle2D dataArea, - CategoryPlot plot, - int rendererIndex, - PlotRenderingInfo info) { + @Override + public CategoryItemRendererState initialise(Graphics2D g2, + Rectangle2D dataArea, CategoryPlot plot, int rendererIndex, + PlotRenderingInfo info) { CategoryItemRendererState state = super.initialise(g2, dataArea, plot, rendererIndex, info); @@ -823,15 +822,12 @@ * * @return The coordinate. */ - protected double calculateBarW0(CategoryPlot plot, - PlotOrientation orientation, - Rectangle2D dataArea, - CategoryAxis domainAxis, - CategoryItemRendererState state, - int row, - int column) { + protected double calculateBarW0(CategoryPlot plot, + PlotOrientation orientation, Rectangle2D dataArea, + CategoryAxis domainAxis, CategoryItemRendererState state, + int row, int column) { // calculate bar width... - double space = 0.0; + double space; if (orientation == PlotOrientation.HORIZONTAL) { space = dataArea.getHeight(); } @@ -895,6 +891,7 @@ * @return The range (or <code>null</code> if the dataset is * <code>null</code> or empty). */ + @Override public Range findRangeBounds(CategoryDataset dataset, boolean includeInterval) { if (dataset == null) { @@ -917,6 +914,7 @@ * * @return The legend item (possibly <code>null</code>). */ + @Override public LegendItem getLegendItem(int datasetIndex, int series) { CategoryPlot cp = getPlot(); @@ -981,16 +979,11 @@ * @param column the column index (zero-based). * @param pass the pass index. */ - public void drawItem(Graphics2D g2, - CategoryItemRendererState state, - Rectangle2D dataArea, - CategoryPlot plot, - CategoryAxis domainAxis, - ValueAxis rangeAxis, - CategoryDataset dataset, - int row, - int column, - int pass) { + @Override + public void drawItem(Graphics2D g2, CategoryItemRendererState state, + Rectangle2D dataArea, CategoryPlot plot, CategoryAxis domainAxis, + ValueAxis rangeAxis, CategoryDataset dataset, int row, + int column, int pass) { // nothing is drawn if the row index is not included in the list with // the indices of the visible rows... @@ -1054,7 +1047,7 @@ } // draw the bar... - Rectangle2D bar = null; + Rectangle2D bar; if (orientation == PlotOrientation.HORIZONTAL) { bar = new Rectangle2D.Double(barL0 - barL0Adj, barW0, barLength + barLengthAdj, state.getBarWidth()); @@ -1143,7 +1136,7 @@ g2.setPaint(paint); // find out where to place the label... - ItemLabelPosition position = null; + ItemLabelPosition position; if (!negative) { position = getPositiveItemLabelPosition(row, column); } @@ -1328,6 +1321,7 @@ * * @return A boolean. */ + @Override public boolean equals(Object obj) { if (obj == this) { return true; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <mu...@us...> - 2013-11-22 13:23:47
|
Revision: 3008 http://sourceforge.net/p/jfreechart/code/3008 Author: mungady Date: 2013-11-22 13:23:44 +0000 (Fri, 22 Nov 2013) Log Message: ----------- Fixed NB warnings. Modified Paths: -------------- branches/jfreechart-1.0.x-branch/source/org/jfree/chart/renderer/xy/XYErrorRenderer.java Modified: branches/jfreechart-1.0.x-branch/source/org/jfree/chart/renderer/xy/XYErrorRenderer.java =================================================================== --- branches/jfreechart-1.0.x-branch/source/org/jfree/chart/renderer/xy/XYErrorRenderer.java 2013-11-22 13:21:14 UTC (rev 3007) +++ branches/jfreechart-1.0.x-branch/source/org/jfree/chart/renderer/xy/XYErrorRenderer.java 2013-11-22 13:23:44 UTC (rev 3008) @@ -59,7 +59,6 @@ import org.jfree.chart.plot.PlotRenderingInfo; import org.jfree.chart.plot.XYPlot; import org.jfree.data.Range; -import org.jfree.data.general.DatasetUtilities; import org.jfree.data.xy.IntervalXYDataset; import org.jfree.data.xy.XYDataset; import org.jfree.io.SerialUtilities; @@ -264,6 +263,7 @@ * @return The range, or <code>null</code> if the dataset is * <code>null</code>. */ + @Override public Range findDomainBounds(XYDataset dataset) { // include the interval if there is one return findDomainBounds(dataset, true); @@ -278,6 +278,7 @@ * @return The range, or <code>null</code> if the dataset is * <code>null</code>. */ + @Override public Range findRangeBounds(XYDataset dataset) { // include the interval if there is one return findRangeBounds(dataset, true); @@ -299,6 +300,7 @@ * @param crosshairState the crosshair state. * @param pass the pass index. */ + @Override public void drawItem(Graphics2D g2, XYItemRendererState state, Rectangle2D dataArea, PlotRenderingInfo info, XYPlot plot, ValueAxis domainAxis, ValueAxis rangeAxis, XYDataset dataset, @@ -319,8 +321,8 @@ double yy = rangeAxis.valueToJava2D(y, dataArea, plot.getRangeAxisEdge()); Line2D line; - Line2D cap1 = null; - Line2D cap2 = null; + Line2D cap1; + Line2D cap2; double adj = this.capLength / 2.0; if (orientation == PlotOrientation.VERTICAL) { line = new Line2D.Double(xx0, yy, xx1, yy); @@ -359,8 +361,8 @@ double xx = domainAxis.valueToJava2D(x, dataArea, plot.getDomainAxisEdge()); Line2D line; - Line2D cap1 = null; - Line2D cap2 = null; + Line2D cap1; + Line2D cap2; double adj = this.capLength / 2.0; if (orientation == PlotOrientation.VERTICAL) { line = new Line2D.Double(xx, yy0, xx, yy1); @@ -400,6 +402,7 @@ * * @return A boolean. */ + @Override public boolean equals(Object obj) { if (obj == this) { return true; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <mu...@us...> - 2013-11-22 13:21:18
|
Revision: 3007 http://sourceforge.net/p/jfreechart/code/3007 Author: mungady Date: 2013-11-22 13:21:14 +0000 (Fri, 22 Nov 2013) Log Message: ----------- Fixed NB warnings. Modified Paths: -------------- branches/jfreechart-1.0.x-branch/source/org/jfree/chart/renderer/xy/CandlestickRenderer.java branches/jfreechart-1.0.x-branch/source/org/jfree/chart/renderer/xy/DeviationRenderer.java branches/jfreechart-1.0.x-branch/source/org/jfree/chart/renderer/xy/XYBarRenderer.java branches/jfreechart-1.0.x-branch/source/org/jfree/chart/renderer/xy/XYBoxAndWhiskerRenderer.java Modified: branches/jfreechart-1.0.x-branch/source/org/jfree/chart/renderer/xy/CandlestickRenderer.java =================================================================== --- branches/jfreechart-1.0.x-branch/source/org/jfree/chart/renderer/xy/CandlestickRenderer.java 2013-11-22 13:12:43 UTC (rev 3006) +++ branches/jfreechart-1.0.x-branch/source/org/jfree/chart/renderer/xy/CandlestickRenderer.java 2013-11-22 13:21:14 UTC (rev 3007) @@ -112,7 +112,6 @@ import org.jfree.chart.plot.XYPlot; import org.jfree.chart.util.ParamChecks; import org.jfree.data.Range; -import org.jfree.data.general.DatasetUtilities; import org.jfree.data.xy.IntervalXYDataset; import org.jfree.data.xy.OHLCDataset; import org.jfree.data.xy.XYDataset; @@ -569,6 +568,7 @@ * @return The range (<code>null</code> if the dataset is <code>null</code> * or empty). */ + @Override public Range findRangeBounds(XYDataset dataset) { return findRangeBounds(dataset, true); } @@ -589,11 +589,9 @@ * * @return The number of passes the renderer requires. */ - public XYItemRendererState initialise(Graphics2D g2, - Rectangle2D dataArea, - XYPlot plot, - XYDataset dataset, - PlotRenderingInfo info) { + @Override + public XYItemRendererState initialise(Graphics2D g2, Rectangle2D dataArea, + XYPlot plot, XYDataset dataset, PlotRenderingInfo info) { // calculate the maximum allowed candle width from the axis... ValueAxis axis = plot.getDomainAxis(); @@ -644,18 +642,11 @@ * (<code>null</code> permitted). * @param pass the pass index. */ - public void drawItem(Graphics2D g2, - XYItemRendererState state, - Rectangle2D dataArea, - PlotRenderingInfo info, - XYPlot plot, - ValueAxis domainAxis, - ValueAxis rangeAxis, - XYDataset dataset, - int series, - int item, - CrosshairState crosshairState, - int pass) { + @Override + public void drawItem(Graphics2D g2, XYItemRendererState state, + Rectangle2D dataArea, PlotRenderingInfo info, XYPlot plot, + ValueAxis domainAxis, ValueAxis rangeAxis, XYDataset dataset, + int series, int item, CrosshairState crosshairState, int pass) { boolean horiz; PlotOrientation orientation = plot.getOrientation(); @@ -827,8 +818,8 @@ } // draw the body - Rectangle2D body = null; - Rectangle2D hotspot = null; + Rectangle2D body; + Rectangle2D hotspot; double length = Math.abs(yyHigh - yyLow); double base = Math.min(yyHigh, yyLow); if (horiz) { @@ -883,6 +874,7 @@ * * @return <code>true</code> or <code>false</code>. */ + @Override public boolean equals(Object obj) { if (obj == this) { return true; @@ -932,6 +924,7 @@ * * @throws CloneNotSupportedException if the renderer cannot be cloned. */ + @Override public Object clone() throws CloneNotSupportedException { return super.clone(); } Modified: branches/jfreechart-1.0.x-branch/source/org/jfree/chart/renderer/xy/DeviationRenderer.java =================================================================== --- branches/jfreechart-1.0.x-branch/source/org/jfree/chart/renderer/xy/DeviationRenderer.java 2013-11-22 13:12:43 UTC (rev 3006) +++ branches/jfreechart-1.0.x-branch/source/org/jfree/chart/renderer/xy/DeviationRenderer.java 2013-11-22 13:21:14 UTC (rev 3007) @@ -60,7 +60,6 @@ import org.jfree.chart.plot.PlotRenderingInfo; import org.jfree.chart.plot.XYPlot; import org.jfree.data.Range; -import org.jfree.data.general.DatasetUtilities; import org.jfree.data.xy.IntervalXYDataset; import org.jfree.data.xy.XYDataset; import org.jfree.ui.RectangleEdge; @@ -167,6 +166,7 @@ * * @param flag ignored. */ + @Override public void setDrawSeriesLineAsPath(boolean flag) { // ignore } @@ -180,6 +180,7 @@ * @return The range (<code>null</code> if the dataset is <code>null</code> * or empty). */ + @Override public Range findRangeBounds(XYDataset dataset) { return findRangeBounds(dataset, true); } @@ -196,6 +197,7 @@ * * @return A newly initialised state object. */ + @Override public XYItemRendererState initialise(Graphics2D g2, Rectangle2D dataArea, XYPlot plot, XYDataset dataset, PlotRenderingInfo info) { State state = new State(info); @@ -210,6 +212,7 @@ * * @return <code>3</code>. */ + @Override public int getPassCount() { return 3; } @@ -224,6 +227,7 @@ * * @see #isLinePass(int) */ + @Override protected boolean isItemPass(int pass) { return (pass == 2); } @@ -238,6 +242,7 @@ * * @see #isItemPass(int) */ + @Override protected boolean isLinePass(int pass) { return (pass == 1); } @@ -260,18 +265,11 @@ * (<code>null</code> permitted). * @param pass the pass index. */ - public void drawItem(Graphics2D g2, - XYItemRendererState state, - Rectangle2D dataArea, - PlotRenderingInfo info, - XYPlot plot, - ValueAxis domainAxis, - ValueAxis rangeAxis, - XYDataset dataset, - int series, - int item, - CrosshairState crosshairState, - int pass) { + @Override + public void drawItem(Graphics2D g2, XYItemRendererState state, + Rectangle2D dataArea, PlotRenderingInfo info, XYPlot plot, + ValueAxis domainAxis, ValueAxis rangeAxis, XYDataset dataset, + int series, int item, CrosshairState crosshairState, int pass) { // do nothing if item is not visible if (!getItemVisible(series, item)) { @@ -374,6 +372,7 @@ * * @return A boolean. */ + @Override public boolean equals(Object obj) { if (obj == this) { return true; Modified: branches/jfreechart-1.0.x-branch/source/org/jfree/chart/renderer/xy/XYBarRenderer.java =================================================================== --- branches/jfreechart-1.0.x-branch/source/org/jfree/chart/renderer/xy/XYBarRenderer.java 2013-11-22 13:12:43 UTC (rev 3006) +++ branches/jfreechart-1.0.x-branch/source/org/jfree/chart/renderer/xy/XYBarRenderer.java 2013-11-22 13:21:14 UTC (rev 3007) @@ -130,7 +130,6 @@ import org.jfree.chart.plot.XYPlot; import org.jfree.chart.util.ParamChecks; import org.jfree.data.Range; -import org.jfree.data.general.DatasetUtilities; import org.jfree.data.xy.IntervalXYDataset; import org.jfree.data.xy.XYDataset; import org.jfree.io.SerialUtilities; @@ -707,6 +706,7 @@ * * @return A state object. */ + @Override public XYItemRendererState initialise(Graphics2D g2, Rectangle2D dataArea, XYPlot plot, XYDataset dataset, PlotRenderingInfo info) { @@ -728,6 +728,7 @@ * * @return A legend item for the series. */ + @Override public LegendItem getLegendItem(int datasetIndex, int series) { XYPlot xyplot = getPlot(); if (xyplot == null) { @@ -737,7 +738,7 @@ if (dataset == null) { return null; } - LegendItem result = null; + LegendItem result; XYSeriesLabelGenerator lg = getLegendItemLabelGenerator(); String label = lg.generateLabel(dataset, series); String description = label; @@ -796,18 +797,11 @@ * (<code>null</code> permitted). * @param pass the pass index. */ - public void drawItem(Graphics2D g2, - XYItemRendererState state, - Rectangle2D dataArea, - PlotRenderingInfo info, - XYPlot plot, - ValueAxis domainAxis, - ValueAxis rangeAxis, - XYDataset dataset, - int series, - int item, - CrosshairState crosshairState, - int pass) { + @Override + public void drawItem(Graphics2D g2, XYItemRendererState state, + Rectangle2D dataArea, PlotRenderingInfo info, XYPlot plot, + ValueAxis domainAxis, ValueAxis rangeAxis, XYDataset dataset, + int series, int item, CrosshairState crosshairState, int pass) { if (!getItemVisible(series, item)) { return; @@ -989,7 +983,7 @@ g2.setPaint(paint); // find out where to place the label... - ItemLabelPosition position = null; + ItemLabelPosition position; if (!negative) { position = getPositiveItemLabelPosition(series, item); } @@ -1176,6 +1170,7 @@ * @return The range (<code>null</code> if the dataset is * <code>null</code> or empty). */ + @Override public Range findDomainBounds(XYDataset dataset) { return findDomainBounds(dataset, true); } @@ -1190,6 +1185,7 @@ * @return The range (<code>null</code> if the dataset is * <code>null</code> or empty). */ + @Override public Range findRangeBounds(XYDataset dataset) { return findRangeBounds(dataset, this.useYInterval); } @@ -1201,6 +1197,7 @@ * * @throws CloneNotSupportedException if the renderer cannot be cloned. */ + @Override public Object clone() throws CloneNotSupportedException { XYBarRenderer result = (XYBarRenderer) super.clone(); if (this.gradientPaintTransformer != null) { @@ -1218,6 +1215,7 @@ * * @return A boolean. */ + @Override public boolean equals(Object obj) { if (obj == this) { return true; Modified: branches/jfreechart-1.0.x-branch/source/org/jfree/chart/renderer/xy/XYBoxAndWhiskerRenderer.java =================================================================== --- branches/jfreechart-1.0.x-branch/source/org/jfree/chart/renderer/xy/XYBoxAndWhiskerRenderer.java 2013-11-22 13:12:43 UTC (rev 3006) +++ branches/jfreechart-1.0.x-branch/source/org/jfree/chart/renderer/xy/XYBoxAndWhiskerRenderer.java 2013-11-22 13:21:14 UTC (rev 3007) @@ -109,7 +109,6 @@ import org.jfree.chart.renderer.OutlierListCollection; import org.jfree.chart.util.ParamChecks; import org.jfree.data.Range; -import org.jfree.data.general.DatasetUtilities; import org.jfree.data.statistics.BoxAndWhiskerXYDataset; import org.jfree.data.xy.XYDataset; import org.jfree.io.SerialUtilities; @@ -287,6 +286,7 @@ * * @see #findDomainBounds(XYDataset) */ + @Override public Range findRangeBounds(XYDataset dataset) { return findRangeBounds(dataset, true); } @@ -334,6 +334,7 @@ * (<code>null</code> permitted). * @param pass the pass index. */ + @Override public void drawItem(Graphics2D g2, XYItemRendererState state, Rectangle2D dataArea, PlotRenderingInfo info, XYPlot plot, ValueAxis domainAxis, ValueAxis rangeAxis, XYDataset dataset, @@ -446,7 +447,7 @@ xx + width / 2)); // draw the body - Shape box = null; + Shape box; if (yyQ1Median < yyQ3Median) { box = new Rectangle2D.Double(yyQ1Median, xx - width / 2, yyQ3Median - yyQ1Median, width); @@ -593,7 +594,7 @@ yyMin)); // draw the body - Shape box = null; + Shape box; if (yyQ1Median > yyQ3Median) { box = new Rectangle2D.Double(xx - width / 2, yyQ3Median, width, yyQ1Median - yyQ3Median); @@ -781,6 +782,7 @@ * * @return <code>true</code> or <code>false</code>. */ + @Override public boolean equals(Object obj) { if (obj == this) { return true; @@ -844,6 +846,7 @@ * * @throws CloneNotSupportedException if the renderer cannot be cloned. */ + @Override public Object clone() throws CloneNotSupportedException { return super.clone(); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <mu...@us...> - 2013-11-22 13:12:46
|
Revision: 3006 http://sourceforge.net/p/jfreechart/code/3006 Author: mungady Date: 2013-11-22 13:12:43 +0000 (Fri, 22 Nov 2013) Log Message: ----------- Fixed NB warnings. Modified Paths: -------------- branches/jfreechart-1.0.x-branch/source/org/jfree/data/function/LineFunction2D.java branches/jfreechart-1.0.x-branch/source/org/jfree/data/function/NormalDistributionFunction2D.java branches/jfreechart-1.0.x-branch/source/org/jfree/data/function/PolynomialFunction2D.java branches/jfreechart-1.0.x-branch/source/org/jfree/data/function/PowerFunction2D.java Modified: branches/jfreechart-1.0.x-branch/source/org/jfree/data/function/LineFunction2D.java =================================================================== --- branches/jfreechart-1.0.x-branch/source/org/jfree/data/function/LineFunction2D.java 2013-11-22 13:11:15 UTC (rev 3005) +++ branches/jfreechart-1.0.x-branch/source/org/jfree/data/function/LineFunction2D.java 2013-11-22 13:12:43 UTC (rev 3006) @@ -97,6 +97,7 @@ * * @return The value. */ + @Override public double getValue(double x) { return this.a + this.b * x; } @@ -108,6 +109,7 @@ * * @return A boolean. */ + @Override public boolean equals(Object obj) { if (!(obj instanceof LineFunction2D)) { return false; @@ -127,6 +129,7 @@ * * @return A hash code. */ + @Override public int hashCode() { int result = 29; result = HashUtilities.hashCode(result, this.a); Modified: branches/jfreechart-1.0.x-branch/source/org/jfree/data/function/NormalDistributionFunction2D.java =================================================================== --- branches/jfreechart-1.0.x-branch/source/org/jfree/data/function/NormalDistributionFunction2D.java 2013-11-22 13:11:15 UTC (rev 3005) +++ branches/jfreechart-1.0.x-branch/source/org/jfree/data/function/NormalDistributionFunction2D.java 2013-11-22 13:12:43 UTC (rev 3006) @@ -109,6 +109,7 @@ * * @return The value. */ + @Override public double getValue(double x) { double z = x - this.mean; return this.factor * Math.exp(-z * z / this.denominator); @@ -121,6 +122,7 @@ * * @return A boolean. */ + @Override public boolean equals(Object obj) { if (!(obj instanceof NormalDistributionFunction2D)) { return false; @@ -140,6 +142,7 @@ * * @return A hash code. */ + @Override public int hashCode() { int result = 29; result = HashUtilities.hashCode(result, this.mean); Modified: branches/jfreechart-1.0.x-branch/source/org/jfree/data/function/PolynomialFunction2D.java =================================================================== --- branches/jfreechart-1.0.x-branch/source/org/jfree/data/function/PolynomialFunction2D.java 2013-11-22 13:11:15 UTC (rev 3005) +++ branches/jfreechart-1.0.x-branch/source/org/jfree/data/function/PolynomialFunction2D.java 2013-11-22 13:12:43 UTC (rev 3006) @@ -96,6 +96,7 @@ * * @return The value. */ + @Override public double getValue(double x) { double y = 0; for(int i = 0; i < coefficients.length; i++){ @@ -111,6 +112,7 @@ * * @return A boolean. */ + @Override public boolean equals(Object obj) { if (!(obj instanceof PolynomialFunction2D)) { return false; @@ -124,6 +126,7 @@ * * @return A hash code. */ + @Override public int hashCode() { return HashUtilities.hashCodeForDoubleArray(this.coefficients); } Modified: branches/jfreechart-1.0.x-branch/source/org/jfree/data/function/PowerFunction2D.java =================================================================== --- branches/jfreechart-1.0.x-branch/source/org/jfree/data/function/PowerFunction2D.java 2013-11-22 13:11:15 UTC (rev 3005) +++ branches/jfreechart-1.0.x-branch/source/org/jfree/data/function/PowerFunction2D.java 2013-11-22 13:12:43 UTC (rev 3006) @@ -96,6 +96,7 @@ * * @return The value. */ + @Override public double getValue(double x) { return this.a * Math.pow(x, this.b); } @@ -107,6 +108,7 @@ * * @return A boolean. */ + @Override public boolean equals(Object obj) { if (!(obj instanceof PowerFunction2D)) { return false; @@ -126,6 +128,7 @@ * * @return A hash code. */ + @Override public int hashCode() { int result = 29; result = HashUtilities.hashCode(result, this.a); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <mu...@us...> - 2013-11-22 13:11:18
|
Revision: 3005 http://sourceforge.net/p/jfreechart/code/3005 Author: mungady Date: 2013-11-22 13:11:15 +0000 (Fri, 22 Nov 2013) Log Message: ----------- Fixed NB warnings. Modified Paths: -------------- branches/jfreechart-1.0.x-branch/source/org/jfree/chart/resources/JFreeChartResources.java Modified: branches/jfreechart-1.0.x-branch/source/org/jfree/chart/resources/JFreeChartResources.java =================================================================== --- branches/jfreechart-1.0.x-branch/source/org/jfree/chart/resources/JFreeChartResources.java 2013-11-22 13:10:52 UTC (rev 3004) +++ branches/jfreechart-1.0.x-branch/source/org/jfree/chart/resources/JFreeChartResources.java 2013-11-22 13:11:15 UTC (rev 3005) @@ -48,6 +48,7 @@ * * @return The resources. */ + @Override public Object[][] getContents() { return CONTENTS; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <mu...@us...> - 2013-11-22 13:10:55
|
Revision: 3004 http://sourceforge.net/p/jfreechart/code/3004 Author: mungady Date: 2013-11-22 13:10:52 +0000 (Fri, 22 Nov 2013) Log Message: ----------- Fixed NB warnings. Modified Paths: -------------- branches/jfreechart-1.0.x-branch/source/org/jfree/chart/imagemap/DynamicDriveToolTipTagFragmentGenerator.java branches/jfreechart-1.0.x-branch/source/org/jfree/chart/imagemap/OverLIBToolTipTagFragmentGenerator.java branches/jfreechart-1.0.x-branch/source/org/jfree/chart/imagemap/StandardToolTipTagFragmentGenerator.java branches/jfreechart-1.0.x-branch/source/org/jfree/chart/imagemap/StandardURLTagFragmentGenerator.java Modified: branches/jfreechart-1.0.x-branch/source/org/jfree/chart/imagemap/DynamicDriveToolTipTagFragmentGenerator.java =================================================================== --- branches/jfreechart-1.0.x-branch/source/org/jfree/chart/imagemap/DynamicDriveToolTipTagFragmentGenerator.java 2013-11-22 13:09:29 UTC (rev 3003) +++ branches/jfreechart-1.0.x-branch/source/org/jfree/chart/imagemap/DynamicDriveToolTipTagFragmentGenerator.java 2013-11-22 13:10:52 UTC (rev 3004) @@ -27,7 +27,7 @@ * -------------------------------------------- * DynamicDriveToolTipTagFragmentGenerator.java * -------------------------------------------- - * (C) Copyright 2003-2009, by Richard Atkinson and Contributors. + * (C) Copyright 2003-2013, by Richard Atkinson and Contributors. * * Original Author: Richard Atkinson; * Contributors: David Gilbert (for Object Refinery Limited); @@ -83,6 +83,7 @@ * * @return The formatted HTML area tag attribute(s). */ + @Override public String generateToolTipFragment(String toolTipText) { return " onMouseOver=\"return stm(['" + ImageMapUtilities.javascriptEscape(this.title) + "','" Modified: branches/jfreechart-1.0.x-branch/source/org/jfree/chart/imagemap/OverLIBToolTipTagFragmentGenerator.java =================================================================== --- branches/jfreechart-1.0.x-branch/source/org/jfree/chart/imagemap/OverLIBToolTipTagFragmentGenerator.java 2013-11-22 13:09:29 UTC (rev 3003) +++ branches/jfreechart-1.0.x-branch/source/org/jfree/chart/imagemap/OverLIBToolTipTagFragmentGenerator.java 2013-11-22 13:10:52 UTC (rev 3004) @@ -64,6 +64,7 @@ * * @return The formatted HTML area tag attribute(s). */ + @Override public String generateToolTipFragment(String toolTipText) { return " onMouseOver=\"return overlib('" + ImageMapUtilities.javascriptEscape(toolTipText) Modified: branches/jfreechart-1.0.x-branch/source/org/jfree/chart/imagemap/StandardToolTipTagFragmentGenerator.java =================================================================== --- branches/jfreechart-1.0.x-branch/source/org/jfree/chart/imagemap/StandardToolTipTagFragmentGenerator.java 2013-11-22 13:09:29 UTC (rev 3003) +++ branches/jfreechart-1.0.x-branch/source/org/jfree/chart/imagemap/StandardToolTipTagFragmentGenerator.java 2013-11-22 13:10:52 UTC (rev 3004) @@ -61,6 +61,7 @@ * * @return The formatted HTML area tag attribute(s). */ + @Override public String generateToolTipFragment(String toolTipText) { return " title=\"" + ImageMapUtilities.htmlEscape(toolTipText) + "\" alt=\"\""; Modified: branches/jfreechart-1.0.x-branch/source/org/jfree/chart/imagemap/StandardURLTagFragmentGenerator.java =================================================================== --- branches/jfreechart-1.0.x-branch/source/org/jfree/chart/imagemap/StandardURLTagFragmentGenerator.java 2013-11-22 13:09:29 UTC (rev 3003) +++ branches/jfreechart-1.0.x-branch/source/org/jfree/chart/imagemap/StandardURLTagFragmentGenerator.java 2013-11-22 13:10:52 UTC (rev 3004) @@ -62,6 +62,7 @@ * * @return The formatted text */ + @Override public String generateURLFragment(String urlText) { // the URL text should already have been escaped by the URL generator return " href=\"" + urlText + "\""; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <mu...@us...> - 2013-11-22 13:09:32
|
Revision: 3003 http://sourceforge.net/p/jfreechart/code/3003 Author: mungady Date: 2013-11-22 13:09:29 +0000 (Fri, 22 Nov 2013) Log Message: ----------- Fixed NB warnings. Modified Paths: -------------- branches/jfreechart-1.0.x-branch/source/org/jfree/chart/axis/SegmentedTimeline.java Modified: branches/jfreechart-1.0.x-branch/source/org/jfree/chart/axis/SegmentedTimeline.java =================================================================== --- branches/jfreechart-1.0.x-branch/source/org/jfree/chart/axis/SegmentedTimeline.java 2013-11-22 13:08:19 UTC (rev 3002) +++ branches/jfreechart-1.0.x-branch/source/org/jfree/chart/axis/SegmentedTimeline.java 2013-11-22 13:09:29 UTC (rev 3003) @@ -1739,6 +1739,7 @@ * * @param n Number of segments to increment. */ + @Override public void inc(long n) { throw new IllegalArgumentException( "Not implemented in SegmentRange"); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <mu...@us...> - 2013-11-22 13:08:21
|
Revision: 3002 http://sourceforge.net/p/jfreechart/code/3002 Author: mungady Date: 2013-11-22 13:08:19 +0000 (Fri, 22 Nov 2013) Log Message: ----------- Fixed NB warnings. Modified Paths: -------------- branches/jfreechart-1.0.x-branch/source/org/jfree/chart/util/RelativeDateFormat.java Modified: branches/jfreechart-1.0.x-branch/source/org/jfree/chart/util/RelativeDateFormat.java =================================================================== --- branches/jfreechart-1.0.x-branch/source/org/jfree/chart/util/RelativeDateFormat.java 2013-11-22 13:04:12 UTC (rev 3001) +++ branches/jfreechart-1.0.x-branch/source/org/jfree/chart/util/RelativeDateFormat.java 2013-11-22 13:08:19 UTC (rev 3002) @@ -135,12 +135,13 @@ /** * A constant for the number of milliseconds in one hour. */ - private static long MILLISECONDS_IN_ONE_HOUR = 60 * 60 * 1000L; + private static final long MILLISECONDS_IN_ONE_HOUR = 60 * 60 * 1000L; /** * A constant for the number of milliseconds in one day. */ - private static long MILLISECONDS_IN_ONE_DAY = 24 * MILLISECONDS_IN_ONE_HOUR; + private static final long MILLISECONDS_IN_ONE_DAY + = 24 * MILLISECONDS_IN_ONE_HOUR; /** * Creates a new instance with base milliseconds set to zero. @@ -440,6 +441,7 @@ * * @return The formatted date. */ + @Override public StringBuffer format(Date date, StringBuffer toAppendTo, FieldPosition fieldPosition) { long currentMillis = date.getTime(); @@ -485,6 +487,7 @@ * * @return <code>null</code>, as this method has not been implemented. */ + @Override public Date parse(String source, ParsePosition pos) { return null; } @@ -496,6 +499,7 @@ * * @return A boolean. */ + @Override public boolean equals(Object obj) { if (obj == this) { return true; @@ -551,6 +555,7 @@ * * @return A hash code. */ + @Override public int hashCode() { int result = 193; result = 37 * result @@ -569,6 +574,7 @@ * * @return A clone. */ + @Override public Object clone() { RelativeDateFormat clone = (RelativeDateFormat) super.clone(); clone.dayFormatter = (NumberFormat) this.dayFormatter.clone(); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <mu...@us...> - 2013-11-22 13:04:14
|
Revision: 3001 http://sourceforge.net/p/jfreechart/code/3001 Author: mungady Date: 2013-11-22 13:04:12 +0000 (Fri, 22 Nov 2013) Log Message: ----------- Fixed NB warnings. Modified Paths: -------------- branches/jfreechart-1.0.x-branch/source/org/jfree/chart/imagemap/ImageMapUtilities.java Modified: branches/jfreechart-1.0.x-branch/source/org/jfree/chart/imagemap/ImageMapUtilities.java =================================================================== --- branches/jfreechart-1.0.x-branch/source/org/jfree/chart/imagemap/ImageMapUtilities.java 2013-11-22 13:03:06 UTC (rev 3000) +++ branches/jfreechart-1.0.x-branch/source/org/jfree/chart/imagemap/ImageMapUtilities.java 2013-11-22 13:04:12 UTC (rev 3001) @@ -100,7 +100,7 @@ String name, ChartRenderingInfo info, boolean useOverLibForToolTips) throws IOException { - ToolTipTagFragmentGenerator toolTipTagFragmentGenerator = null; + ToolTipTagFragmentGenerator toolTipTagFragmentGenerator; if (useOverLibForToolTips) { toolTipTagFragmentGenerator = new OverLIBToolTipTagFragmentGenerator(); @@ -174,7 +174,7 @@ ToolTipTagFragmentGenerator toolTipTagFragmentGenerator, URLTagFragmentGenerator urlTagFragmentGenerator) { - StringBuffer sb = new StringBuffer(); + StringBuilder sb = new StringBuilder(); sb.append("<map id=\"").append(htmlEscape(name)); sb.append("\" name=\"").append(htmlEscape(name)).append("\">"); sb.append(StringUtils.getLineSeparator()); @@ -212,7 +212,7 @@ */ public static String htmlEscape(String input) { ParamChecks.nullNotPermitted(input, "input"); - StringBuffer result = new StringBuffer(); + StringBuilder result = new StringBuilder(); int length = input.length(); for (int i = 0; i < length; i++) { char c = input.charAt(i); @@ -253,7 +253,7 @@ */ public static String javascriptEscape(String input) { ParamChecks.nullNotPermitted(input, "input"); - StringBuffer result = new StringBuffer(); + StringBuilder result = new StringBuilder(); int length = input.length(); for (int i = 0; i < length; i++) { char c = input.charAt(i); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <mu...@us...> - 2013-11-22 13:03:09
|
Revision: 3000 http://sourceforge.net/p/jfreechart/code/3000 Author: mungady Date: 2013-11-22 13:03:06 +0000 (Fri, 22 Nov 2013) Log Message: ----------- Fixed NB warnings. Modified Paths: -------------- branches/jfreechart-1.0.x-branch/source/org/jfree/chart/labels/MultipleXYSeriesLabelGenerator.java Modified: branches/jfreechart-1.0.x-branch/source/org/jfree/chart/labels/MultipleXYSeriesLabelGenerator.java =================================================================== --- branches/jfreechart-1.0.x-branch/source/org/jfree/chart/labels/MultipleXYSeriesLabelGenerator.java 2013-11-22 13:02:12 UTC (rev 2999) +++ branches/jfreechart-1.0.x-branch/source/org/jfree/chart/labels/MultipleXYSeriesLabelGenerator.java 2013-11-22 13:03:06 UTC (rev 3000) @@ -133,9 +133,10 @@ * * @return A series label. */ + @Override public String generateLabel(XYDataset dataset, int series) { ParamChecks.nullNotPermitted(dataset, "dataset"); - StringBuffer label = new StringBuffer(); + StringBuilder label = new StringBuilder(); label.append(MessageFormat.format(this.formatPattern, createItemArray(dataset, series))); Integer key = new Integer(series); @@ -174,6 +175,7 @@ * * @throws CloneNotSupportedException if cloning is not supported. */ + @Override public Object clone() throws CloneNotSupportedException { MultipleXYSeriesLabelGenerator clone = (MultipleXYSeriesLabelGenerator) super.clone(); @@ -200,6 +202,7 @@ * * @return A boolean. */ + @Override public boolean equals(Object obj) { if (obj == this) { return true; @@ -227,6 +230,7 @@ * * @return A hash code. */ + @Override public int hashCode() { int result = 127; result = HashUtilities.hashCode(result, this.formatPattern); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <mu...@us...> - 2013-11-22 13:02:15
|
Revision: 2999 http://sourceforge.net/p/jfreechart/code/2999 Author: mungady Date: 2013-11-22 13:02:12 +0000 (Fri, 22 Nov 2013) Log Message: ----------- Fixed NB warnings. Modified Paths: -------------- branches/jfreechart-1.0.x-branch/source/org/jfree/chart/plot/PieLabelDistributor.java Modified: branches/jfreechart-1.0.x-branch/source/org/jfree/chart/plot/PieLabelDistributor.java =================================================================== --- branches/jfreechart-1.0.x-branch/source/org/jfree/chart/plot/PieLabelDistributor.java 2013-11-22 13:01:20 UTC (rev 2998) +++ branches/jfreechart-1.0.x-branch/source/org/jfree/chart/plot/PieLabelDistributor.java 2013-11-22 13:02:12 UTC (rev 2999) @@ -69,6 +69,7 @@ * @param minY the minimum y-coordinate in Java2D-space. * @param height the available height (in Java2D units). */ + @Override public void distributeLabels(double minY, double height) { sort(); // sorts the label records into ascending order by baseY // if (isOverlap()) { @@ -211,8 +212,9 @@ * * @return A string. */ + @Override public String toString() { - StringBuffer result = new StringBuffer(); + StringBuilder result = new StringBuilder(); for (int i = 0; i < this.labels.size(); i++) { result.append(getPieLabelRecord(i).toString()).append("\n"); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <mu...@us...> - 2013-11-22 13:01:24
|
Revision: 2998 http://sourceforge.net/p/jfreechart/code/2998 Author: mungady Date: 2013-11-22 13:01:20 +0000 (Fri, 22 Nov 2013) Log Message: ----------- Fixed NB warnings. Modified Paths: -------------- branches/jfreechart-1.0.x-branch/source/org/jfree/data/time/TimeSeries.java Modified: branches/jfreechart-1.0.x-branch/source/org/jfree/data/time/TimeSeries.java =================================================================== --- branches/jfreechart-1.0.x-branch/source/org/jfree/data/time/TimeSeries.java 2013-11-22 12:55:34 UTC (rev 2997) +++ branches/jfreechart-1.0.x-branch/source/org/jfree/data/time/TimeSeries.java 2013-11-22 13:01:20 UTC (rev 2998) @@ -251,6 +251,7 @@ * * @return The item count. */ + @Override public int getItemCount() { return this.data.size(); } @@ -571,7 +572,7 @@ this.timePeriodClass = c; } else if (!this.timePeriodClass.equals(c)) { - StringBuffer b = new StringBuffer(); + StringBuilder b = new StringBuilder(); b.append("You are trying to add data where the time period class "); b.append("is "); b.append(item.getPeriod().getClass().getName()); @@ -601,7 +602,7 @@ added = true; } else { - StringBuffer b = new StringBuffer(); + StringBuilder b = new StringBuilder(); b.append("You are attempting to add an observation for "); b.append("the time period "); b.append(item.getPeriod().toString()); @@ -1027,6 +1028,7 @@ * @throws CloneNotSupportedException not thrown by this class, but * subclasses may differ. */ + @Override public Object clone() throws CloneNotSupportedException { TimeSeries clone = (TimeSeries) super.clone(); clone.data = (List) ObjectUtilities.deepClone(this.data); @@ -1127,6 +1129,7 @@ * * @return A boolean. */ + @Override public boolean equals(Object obj) { if (obj == this) { return true; @@ -1168,6 +1171,7 @@ * * @return The hashcode */ + @Override public int hashCode() { int result = super.hashCode(); result = 29 * result + (this.domain != null ? this.domain.hashCode() This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |