⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 chartutilities.html

📁 JFreeChart的帮助文档
💻 HTML
📖 第 1 页 / 共 4 页
字号:
                            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&nbsp;out,                                         <A HREF="../../../org/jfree/chart/JFreeChart.html">JFreeChart</A>&nbsp;chart,                                         int&nbsp;width,                                         int&nbsp;height,                                         int&nbsp;widthScaleFactor,                                         int&nbsp;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&nbsp;file,                                  <A HREF="../../../org/jfree/chart/JFreeChart.html">JFreeChart</A>&nbsp;chart,                                  int&nbsp;width,                                  int&nbsp;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&nbsp;file,                                  <A HREF="../../../org/jfree/chart/JFreeChart.html">JFreeChart</A>&nbsp;chart,                                  int&nbsp;width,                                  int&nbsp;height,                                  <A HREF="../../../org/jfree/chart/ChartRenderingInfo.html">ChartRenderingInfo</A>&nbsp;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&nbsp;file,                                  <A HREF="../../../org/jfree/chart/JFreeChart.html">JFreeChart</A>&nbsp;chart,                                  int&nbsp;width,                                  int&nbsp;height,                                  <A HREF="../../../org/jfree/chart/ChartRenderingInfo.html">ChartRenderingInfo</A>&nbsp;info,                                  boolean&nbsp;encodeAlpha,                                  int&nbsp;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&nbsp;out,                                    <A HREF="../../../org/jfree/chart/JFreeChart.html">JFreeChart</A>&nbsp;chart,                                    int&nbsp;width,                                    int&nbsp;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&nbsp;out,                                    float&nbsp;quality,                                    <A HREF="../../../org/jfree/chart/JFreeChart.html">JFreeChart</A>&nbsp;chart,                                    int&nbsp;width,                                    int&nbsp;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&nbsp;out,                                    <A HREF="../../../org/jfree/chart/JFreeChart.html">JFreeChart</A>&nbsp;chart,                                    int&nbsp;width,                                    int&nbsp;height,                                    <A HREF="../../../org/jfree/chart/ChartRenderingInfo.html">ChartRenderingInfo</A>&nbsp;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&nbsp;out,                                    float&nbsp;quality,                                    <A HREF="../../../org/jfree/chart/JFreeChart.html">JFreeChart</A>&nbsp;chart,                                    int&nbsp;width,                                    int&nbsp;height,                                    <A HREF="../../../org/jfree/chart/ChartRenderingInfo.html">ChartRenderingInfo</A>&nbsp;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&nbsp;file,                                   <A HREF="../../../org/jfree/chart/JFreeChart.html">JFreeChart</A>&nbsp;chart,                                   int&nbsp;width,                                   int&nbsp;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&nbsp;file,                                   float&nbsp;quality,                                   <A HREF="../../../org/jfree/chart/JFreeChart.html">JFreeChart</A>&nbsp;chart,                                   int&nbsp;width,                                   int&nbsp;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&nbsp;file,                                   <A HREF="../../../org/jfree/chart/JFreeChart.html">JFreeChart</A>&nbsp;chart,                                   int&nbsp;width,                                   int&nbsp;height,                                   <A HREF="../../../org/jfree/chart/ChartRenderingInfo.html">ChartRenderingInfo</A>&nbsp;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 + -