📄 chartutilities.html
字号:
throws java.io.IOException</PRE><DL><DD>Writes the chart to the output stream in PNG format. <P> This method allows you to pass in a ChartRenderingInfo object, to collect information about the chart dimensions/entities. You will need this info if you want to create an HTML image map.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>out</CODE> - the output stream.<DD><CODE>chart</CODE> - the chart.<DD><CODE>width</CODE> - the image width.<DD><CODE>height</CODE> - the image height.<DD><CODE>info</CODE> - the chart rendering info.<DD><CODE>encodeAlpha</CODE> - encode alpha?<DD><CODE>compression</CODE> - the PNG compression level.<DT><B>Throws:</B><DD><CODE>java.io.IOException</CODE> - if there are any I/O errors.</DL></DD></DL><HR><A NAME="writeScaledChartAsPNG(java.io.OutputStream, org.jfree.chart.JFreeChart, int, int, int, int)"><!-- --></A><H3>writeScaledChartAsPNG</H3><PRE>public static void <B>writeScaledChartAsPNG</B>(java.io.OutputStream out, <A HREF="../../../org/jfree/chart/JFreeChart.html">JFreeChart</A> chart, int width, int height, int widthScaleFactor, int heightScaleFactor) throws java.io.IOException</PRE><DL><DD>Writes a scaled version of a chart to an output stream in PNG format.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>out</CODE> - the output stream.<DD><CODE>chart</CODE> - the chart.<DD><CODE>width</CODE> - the unscaled chart width.<DD><CODE>height</CODE> - the unscaled chart height.<DD><CODE>widthScaleFactor</CODE> - the horizontal scale factor.<DD><CODE>heightScaleFactor</CODE> - the vertical scale factor.<DT><B>Throws:</B><DD><CODE>java.io.IOException</CODE> - if there are any I/O problems.</DL></DD></DL><HR><A NAME="saveChartAsPNG(java.io.File, org.jfree.chart.JFreeChart, int, int)"><!-- --></A><H3>saveChartAsPNG</H3><PRE>public static void <B>saveChartAsPNG</B>(java.io.File file, <A HREF="../../../org/jfree/chart/JFreeChart.html">JFreeChart</A> chart, int width, int height) throws java.io.IOException</PRE><DL><DD>Saves the chart as a PNG format image file.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>file</CODE> - the file name.<DD><CODE>chart</CODE> - the chart.<DD><CODE>width</CODE> - the image width.<DD><CODE>height</CODE> - the image height.<DT><B>Throws:</B><DD><CODE>java.io.IOException</CODE> - if there are any I/O errors.</DL></DD></DL><HR><A NAME="saveChartAsPNG(java.io.File, org.jfree.chart.JFreeChart, int, int, org.jfree.chart.ChartRenderingInfo)"><!-- --></A><H3>saveChartAsPNG</H3><PRE>public static void <B>saveChartAsPNG</B>(java.io.File file, <A HREF="../../../org/jfree/chart/JFreeChart.html">JFreeChart</A> chart, int width, int height, <A HREF="../../../org/jfree/chart/ChartRenderingInfo.html">ChartRenderingInfo</A> info) throws java.io.IOException</PRE><DL><DD>Saves the chart as a PNG format image file. <P> This method allows you to pass in a ChartRenderingInfo object, to collect information about the chart dimensions/entities. You will need this info if you want to create an HTML image map.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>file</CODE> - the file.<DD><CODE>chart</CODE> - the chart.<DD><CODE>width</CODE> - the image width.<DD><CODE>height</CODE> - the image height.<DD><CODE>info</CODE> - the chart rendering info.<DT><B>Throws:</B><DD><CODE>java.io.IOException</CODE> - if there are any I/O errors.</DL></DD></DL><HR><A NAME="saveChartAsPNG(java.io.File, org.jfree.chart.JFreeChart, int, int, org.jfree.chart.ChartRenderingInfo, boolean, int)"><!-- --></A><H3>saveChartAsPNG</H3><PRE>public static void <B>saveChartAsPNG</B>(java.io.File file, <A HREF="../../../org/jfree/chart/JFreeChart.html">JFreeChart</A> chart, int width, int height, <A HREF="../../../org/jfree/chart/ChartRenderingInfo.html">ChartRenderingInfo</A> info, boolean encodeAlpha, int compression) throws java.io.IOException</PRE><DL><DD>Saves the chart as a PNG format image file. <P> This method allows you to pass in a ChartRenderingInfo object, to collect information about the chart dimensions/entities. You will need this info if you want to create an HTML image map.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>file</CODE> - the file.<DD><CODE>chart</CODE> - the chart.<DD><CODE>width</CODE> - the image width.<DD><CODE>height</CODE> - the image height.<DD><CODE>info</CODE> - the chart rendering info.<DD><CODE>encodeAlpha</CODE> - encode alpha?<DD><CODE>compression</CODE> - the PNG compression level.<DT><B>Throws:</B><DD><CODE>java.io.IOException</CODE> - if there are any I/O errors.</DL></DD></DL><HR><A NAME="writeChartAsJPEG(java.io.OutputStream, org.jfree.chart.JFreeChart, int, int)"><!-- --></A><H3>writeChartAsJPEG</H3><PRE>public static void <B>writeChartAsJPEG</B>(java.io.OutputStream out, <A HREF="../../../org/jfree/chart/JFreeChart.html">JFreeChart</A> chart, int width, int height) throws java.io.IOException</PRE><DL><DD>Writes the chart to the output stream in JPEG format.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>out</CODE> - the output stream.<DD><CODE>chart</CODE> - the chart.<DD><CODE>width</CODE> - the image width.<DD><CODE>height</CODE> - the image height.<DT><B>Throws:</B><DD><CODE>java.io.IOException</CODE> - if there are any I/O errors.</DL></DD></DL><HR><A NAME="writeChartAsJPEG(java.io.OutputStream, float, org.jfree.chart.JFreeChart, int, int)"><!-- --></A><H3>writeChartAsJPEG</H3><PRE>public static void <B>writeChartAsJPEG</B>(java.io.OutputStream out, float quality, <A HREF="../../../org/jfree/chart/JFreeChart.html">JFreeChart</A> chart, int width, int height) throws java.io.IOException</PRE><DL><DD>Writes the chart to the output stream in JPEG format.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>out</CODE> - the output stream.<DD><CODE>quality</CODE> - the quality setting.<DD><CODE>chart</CODE> - the chart.<DD><CODE>width</CODE> - the image width.<DD><CODE>height</CODE> - the image height.<DT><B>Throws:</B><DD><CODE>java.io.IOException</CODE> - if there are any I/O errors.</DL></DD></DL><HR><A NAME="writeChartAsJPEG(java.io.OutputStream, org.jfree.chart.JFreeChart, int, int, org.jfree.chart.ChartRenderingInfo)"><!-- --></A><H3>writeChartAsJPEG</H3><PRE>public static void <B>writeChartAsJPEG</B>(java.io.OutputStream out, <A HREF="../../../org/jfree/chart/JFreeChart.html">JFreeChart</A> chart, int width, int height, <A HREF="../../../org/jfree/chart/ChartRenderingInfo.html">ChartRenderingInfo</A> info) throws java.io.IOException</PRE><DL><DD>Writes the chart to the output stream in JPEG format. <P> This method allows you to pass in a ChartRenderingInfo object, to collect information about the chart dimensions/entities. You will need this info if you want to create an HTML image map.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>out</CODE> - the output stream.<DD><CODE>chart</CODE> - the chart.<DD><CODE>width</CODE> - the image width.<DD><CODE>height</CODE> - the image height.<DD><CODE>info</CODE> - the chart rendering info.<DT><B>Throws:</B><DD><CODE>java.io.IOException</CODE> - if there are any I/O errors.</DL></DD></DL><HR><A NAME="writeChartAsJPEG(java.io.OutputStream, float, org.jfree.chart.JFreeChart, int, int, org.jfree.chart.ChartRenderingInfo)"><!-- --></A><H3>writeChartAsJPEG</H3><PRE>public static void <B>writeChartAsJPEG</B>(java.io.OutputStream out, float quality, <A HREF="../../../org/jfree/chart/JFreeChart.html">JFreeChart</A> chart, int width, int height, <A HREF="../../../org/jfree/chart/ChartRenderingInfo.html">ChartRenderingInfo</A> info) throws java.io.IOException</PRE><DL><DD>Writes the chart to the output stream in JPEG format. <P> This method allows you to pass in a ChartRenderingInfo object, to collect information about the chart dimensions/entities. You will need this info if you want to create an HTML image map.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>out</CODE> - the output stream.<DD><CODE>quality</CODE> - the output quality (0.0f to 1.0f).<DD><CODE>chart</CODE> - the chart.<DD><CODE>width</CODE> - the image width.<DD><CODE>height</CODE> - the image height.<DD><CODE>info</CODE> - the chart rendering info.<DT><B>Throws:</B><DD><CODE>java.io.IOException</CODE> - if there are any I/O errors.</DL></DD></DL><HR><A NAME="saveChartAsJPEG(java.io.File, org.jfree.chart.JFreeChart, int, int)"><!-- --></A><H3>saveChartAsJPEG</H3><PRE>public static void <B>saveChartAsJPEG</B>(java.io.File file, <A HREF="../../../org/jfree/chart/JFreeChart.html">JFreeChart</A> chart, int width, int height) throws java.io.IOException</PRE><DL><DD>Saves the chart as a JPEG format image file.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>file</CODE> - the file.<DD><CODE>chart</CODE> - the chart.<DD><CODE>width</CODE> - the image width.<DD><CODE>height</CODE> - the image height.<DT><B>Throws:</B><DD><CODE>java.io.IOException</CODE> - if there are any I/O errors.</DL></DD></DL><HR><A NAME="saveChartAsJPEG(java.io.File, float, org.jfree.chart.JFreeChart, int, int)"><!-- --></A><H3>saveChartAsJPEG</H3><PRE>public static void <B>saveChartAsJPEG</B>(java.io.File file, float quality, <A HREF="../../../org/jfree/chart/JFreeChart.html">JFreeChart</A> chart, int width, int height) throws java.io.IOException</PRE><DL><DD>Saves the chart as a JPEG format image file.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>file</CODE> - the file.<DD><CODE>quality</CODE> - the JPEG quality setting.<DD><CODE>chart</CODE> - the chart.<DD><CODE>width</CODE> - the image width.<DD><CODE>height</CODE> - the image height.<DT><B>Throws:</B><DD><CODE>java.io.IOException</CODE> - if there are any I/O errors.</DL></DD></DL><HR><A NAME="saveChartAsJPEG(java.io.File, org.jfree.chart.JFreeChart, int, int, org.jfree.chart.ChartRenderingInfo)"><!-- --></A><H3>saveChartAsJPEG</H3><PRE>public static void <B>saveChartAsJPEG</B>(java.io.File file, <A HREF="../../../org/jfree/chart/JFreeChart.html">JFreeChart</A> chart, int width, int height, <A HREF="../../../org/jfree/chart/ChartRenderingInfo.html">ChartRenderingInfo</A> info) throws java.io.IOException</PRE><DL><DD>Saves the chart as a JPEG format image file. <P> This method allows you to pass in a ChartRenderingInfo object, to collect information about the chart dimensions/entities. You will need this info if you want to create an HTML image map.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>file</CODE> - the file name.<DD><CODE>chart</CODE> - the chart.<DD><CODE>width</CODE> - the image width.<DD><CODE>height</CODE> - the image height.<DD><CODE>info</CODE> - the chart rendering info.<DT><B>Throws:</B><DD><CODE>java.io.IOException</CODE> - if there are any I/O errors.</DL>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -