Skip to content

Commit

Permalink
Rename ChartUtilities --> ChartUtils.
Browse files Browse the repository at this point in the history
  • Loading branch information
jfree committed May 6, 2017
1 parent 3c26b68 commit 0763be8
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion src/main/java/org/jfree/chart/ChartPanel.java
Original file line number Diff line number Diff line change
Expand Up @@ -2722,7 +2722,7 @@ public void doSaveAs() throws IOException {
filename = filename + ".png";
}
}
ChartUtilities.saveChartAsPNG(new File(filename), this.chart,
ChartUtils.saveChartAsPNG(new File(filename), this.chart,
getWidth(), getHeight());
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@
* [Oracle and Java are registered trademarks of Oracle and/or its affiliates.
* Other names may be trademarks of their respective owners.]
*
* -------------------
* ChartUtilities.java
* -------------------
* (C) Copyright 2001-2016, by Object Refinery Limited and Contributors.
* ---------------
* ChartUtils.java
* ---------------
* (C) Copyright 2001-2017, by Object Refinery Limited and Contributors.
*
* Original Author: David Gilbert (for Object Refinery Limited);
* Contributor(s): Wolfgang Irler;
Expand Down Expand Up @@ -106,7 +106,7 @@
*
* @see ImageMapUtilities
*/
public abstract class ChartUtilities {
public abstract class ChartUtils {

/**
* Applies the current theme to the specified chart. This method is
Expand Down Expand Up @@ -156,7 +156,7 @@ public static void writeChartAsPNG(OutputStream out, JFreeChart chart,
throws IOException {

// defer argument checking...
ChartUtilities.writeChartAsPNG(out, chart, width, height, null,
ChartUtils.writeChartAsPNG(out, chart, width, height, null,
encodeAlpha, compression);

}
Expand Down Expand Up @@ -210,7 +210,7 @@ public static void writeChartAsPNG(OutputStream out, JFreeChart chart,
ParamChecks.nullNotPermitted(chart, "chart");
BufferedImage chartImage = chart.createBufferedImage(width, height,
BufferedImage.TYPE_INT_ARGB, info);
ChartUtilities.writeBufferedImageAsPNG(out, chartImage, encodeAlpha,
ChartUtils.writeBufferedImageAsPNG(out, chartImage, encodeAlpha,
compression);

}
Expand Down Expand Up @@ -307,7 +307,7 @@ public static void saveChartAsPNG(File file, JFreeChart chart,
ParamChecks.nullNotPermitted(file, "file");
OutputStream out = new BufferedOutputStream(new FileOutputStream(file));
try {
ChartUtilities.writeChartAsPNG(out, chart, width, height, info);
ChartUtils.writeChartAsPNG(out, chart, width, height, info);
}
finally {
out.close();
Expand Down Expand Up @@ -382,7 +382,7 @@ public static void writeChartAsJPEG(OutputStream out, float quality,
JFreeChart chart, int width, int height) throws IOException {

// defer argument checking...
ChartUtilities.writeChartAsJPEG(out, quality, chart, width, height,
ChartUtils.writeChartAsJPEG(out, quality, chart, width, height,
null);

}
Expand Down
6 changes: 3 additions & 3 deletions src/main/java/org/jfree/chart/servlet/ServletUtilities.java
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
import javax.servlet.http.HttpSession;

import org.jfree.chart.ChartRenderingInfo;
import org.jfree.chart.ChartUtilities;
import org.jfree.chart.ChartUtils;
import org.jfree.chart.JFreeChart;
import org.jfree.chart.util.ParamChecks;

Expand Down Expand Up @@ -180,7 +180,7 @@ public static String saveChartAsPNG(JFreeChart chart, int width, int height,
}
File tempFile = File.createTempFile(prefix, ".png",
new File(System.getProperty("java.io.tmpdir")));
ChartUtilities.saveChartAsPNG(tempFile, chart, width, height, info);
ChartUtils.saveChartAsPNG(tempFile, chart, width, height, info);
if (session != null) {
ServletUtilities.registerChartForDeletion(tempFile, session);
}
Expand Down Expand Up @@ -252,7 +252,7 @@ public static String saveChartAsJPEG(JFreeChart chart, int width,
}
File tempFile = File.createTempFile(prefix, ".jpeg",
new File(System.getProperty("java.io.tmpdir")));
ChartUtilities.saveChartAsJPEG(tempFile, chart, width, height, info);
ChartUtils.saveChartAsJPEG(tempFile, chart, width, height, info);
if (session != null) {
ServletUtilities.registerChartForDeletion(tempFile, session);
}
Expand Down

0 comments on commit 0763be8

Please sign in to comment.