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

📄 chartutilities.html

📁 JFreeChart的帮助文档
💻 HTML
📖 第 1 页 / 共 4 页
字号:
                        boolean&nbsp;encodeAlpha,                        int&nbsp;compression)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Writes the BufferedImage to the output stream in PNG format.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/jfree/chart/ChartUtilities.html#writeChartAsJPEG(java.io.OutputStream, float, org.jfree.chart.JFreeChart, int, int)">writeChartAsJPEG</A></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)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Writes the chart to the output stream in JPEG format.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/jfree/chart/ChartUtilities.html#writeChartAsJPEG(java.io.OutputStream, float, org.jfree.chart.JFreeChart, int, int, org.jfree.chart.ChartRenderingInfo)">writeChartAsJPEG</A></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)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Writes the chart to the output stream in JPEG format.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/jfree/chart/ChartUtilities.html#writeChartAsJPEG(java.io.OutputStream, org.jfree.chart.JFreeChart, int, int)">writeChartAsJPEG</A></B>(java.io.OutputStream&nbsp;out,                 <A HREF="../../../org/jfree/chart/JFreeChart.html">JFreeChart</A>&nbsp;chart,                 int&nbsp;width,                 int&nbsp;height)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Writes the chart to the output stream in JPEG format.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/jfree/chart/ChartUtilities.html#writeChartAsJPEG(java.io.OutputStream, org.jfree.chart.JFreeChart, int, int, org.jfree.chart.ChartRenderingInfo)">writeChartAsJPEG</A></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)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Writes the chart to the output stream in JPEG format.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/jfree/chart/ChartUtilities.html#writeChartAsPNG(java.io.OutputStream, org.jfree.chart.JFreeChart, int, int)">writeChartAsPNG</A></B>(java.io.OutputStream&nbsp;out,                <A HREF="../../../org/jfree/chart/JFreeChart.html">JFreeChart</A>&nbsp;chart,                int&nbsp;width,                int&nbsp;height)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Writes the chart to the output stream in PNG format.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/jfree/chart/ChartUtilities.html#writeChartAsPNG(java.io.OutputStream, org.jfree.chart.JFreeChart, int, int, boolean, int)">writeChartAsPNG</A></B>(java.io.OutputStream&nbsp;out,                <A HREF="../../../org/jfree/chart/JFreeChart.html">JFreeChart</A>&nbsp;chart,                int&nbsp;width,                int&nbsp;height,                boolean&nbsp;encodeAlpha,                int&nbsp;compression)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Writes the chart to the output stream in PNG format.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/jfree/chart/ChartUtilities.html#writeChartAsPNG(java.io.OutputStream, org.jfree.chart.JFreeChart, int, int, org.jfree.chart.ChartRenderingInfo)">writeChartAsPNG</A></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)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Writes the chart to the output stream in PNG format.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/jfree/chart/ChartUtilities.html#writeChartAsPNG(java.io.OutputStream, org.jfree.chart.JFreeChart, int, int, org.jfree.chart.ChartRenderingInfo, boolean, int)">writeChartAsPNG</A></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,                boolean&nbsp;encodeAlpha,                int&nbsp;compression)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Writes the chart to the output stream in PNG format.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/jfree/chart/ChartUtilities.html#writeImageMap(java.io.PrintWriter, java.lang.String, org.jfree.chart.ChartRenderingInfo)">writeImageMap</A></B>(java.io.PrintWriter&nbsp;writer,              java.lang.String&nbsp;name,              <A HREF="../../../org/jfree/chart/ChartRenderingInfo.html">ChartRenderingInfo</A>&nbsp;info)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Writes an image map to the output stream.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/jfree/chart/ChartUtilities.html#writeImageMap(java.io.PrintWriter, java.lang.String, org.jfree.chart.ChartRenderingInfo, boolean)">writeImageMap</A></B>(java.io.PrintWriter&nbsp;writer,              java.lang.String&nbsp;name,              <A HREF="../../../org/jfree/chart/ChartRenderingInfo.html">ChartRenderingInfo</A>&nbsp;info,              boolean&nbsp;useOverLibForToolTips)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Writes an image map to the output stream.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/jfree/chart/ChartUtilities.html#writeImageMap(java.io.PrintWriter, java.lang.String, org.jfree.chart.ChartRenderingInfo, org.jfree.chart.imagemap.ToolTipTagFragmentGenerator, org.jfree.chart.imagemap.URLTagFragmentGenerator)">writeImageMap</A></B>(java.io.PrintWriter&nbsp;writer,              java.lang.String&nbsp;name,              <A HREF="../../../org/jfree/chart/ChartRenderingInfo.html">ChartRenderingInfo</A>&nbsp;info,              <A HREF="../../../org/jfree/chart/imagemap/ToolTipTagFragmentGenerator.html">ToolTipTagFragmentGenerator</A>&nbsp;toolTipTagFragmentGenerator,              <A HREF="../../../org/jfree/chart/imagemap/URLTagFragmentGenerator.html">URLTagFragmentGenerator</A>&nbsp;urlTagFragmentGenerator)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Writes an image map to the output stream.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/jfree/chart/ChartUtilities.html#writeScaledChartAsPNG(java.io.OutputStream, org.jfree.chart.JFreeChart, int, int, int, int)">writeScaledChartAsPNG</A></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)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Writes a scaled version of a chart to an output stream in PNG format.</TD></TR></TABLE>&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from class java.lang.Object</B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD></TR></TABLE>&nbsp;<P><!-- ============ FIELD DETAIL =========== --><!-- ========= CONSTRUCTOR DETAIL ======== --><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Method Detail</B></FONT></TD></TR></TABLE><A NAME="writeChartAsPNG(java.io.OutputStream, org.jfree.chart.JFreeChart, int, int)"><!-- --></A><H3>writeChartAsPNG</H3><PRE>public static void <B>writeChartAsPNG</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 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 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="writeChartAsPNG(java.io.OutputStream, org.jfree.chart.JFreeChart, int, int, boolean, int)"><!-- --></A><H3>writeChartAsPNG</H3><PRE>public static void <B>writeChartAsPNG</B>(java.io.OutputStream&nbsp;out,                                   <A HREF="../../../org/jfree/chart/JFreeChart.html">JFreeChart</A>&nbsp;chart,                                   int&nbsp;width,                                   int&nbsp;height,                                   boolean&nbsp;encodeAlpha,                                   int&nbsp;compression)                            throws java.io.IOException</PRE><DL><DD>Writes the chart to the 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 image width.<DD><CODE>height</CODE> - the image height.<DD><CODE>encodeAlpha</CODE> - encode alpha?<DD><CODE>compression</CODE> - the 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="writeChartAsPNG(java.io.OutputStream, org.jfree.chart.JFreeChart, int, int, org.jfree.chart.ChartRenderingInfo)"><!-- --></A><H3>writeChartAsPNG</H3><PRE>public static void <B>writeChartAsPNG</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 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.<DT><B>Throws:</B><DD><CODE>java.io.IOException</CODE> - if there are any I/O errors.</DL></DD></DL><HR><A NAME="writeChartAsPNG(java.io.OutputStream, org.jfree.chart.JFreeChart, int, int, org.jfree.chart.ChartRenderingInfo, boolean, int)"><!-- --></A><H3>writeChartAsPNG</H3><PRE>public static void <B>writeChartAsPNG</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,                                   boolean&nbsp;encodeAlpha,                                   int&nbsp;compression)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -