📄 chartutilities.html
字号:
boolean encodeAlpha, int compression)</CODE><BR> 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 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 out, float quality, <A HREF="../../../org/jfree/chart/JFreeChart.html">JFreeChart</A> chart, int width, int height)</CODE><BR> 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 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 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)</CODE><BR> 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 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 out, <A HREF="../../../org/jfree/chart/JFreeChart.html">JFreeChart</A> chart, int width, int height)</CODE><BR> 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 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 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)</CODE><BR> 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 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 out, <A HREF="../../../org/jfree/chart/JFreeChart.html">JFreeChart</A> chart, int width, int height)</CODE><BR> 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 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 out, <A HREF="../../../org/jfree/chart/JFreeChart.html">JFreeChart</A> chart, int width, int height, boolean encodeAlpha, int compression)</CODE><BR> 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 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 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)</CODE><BR> 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 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 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, boolean encodeAlpha, int compression)</CODE><BR> 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 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 writer, java.lang.String name, <A HREF="../../../org/jfree/chart/ChartRenderingInfo.html">ChartRenderingInfo</A> info)</CODE><BR> 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 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 writer, java.lang.String name, <A HREF="../../../org/jfree/chart/ChartRenderingInfo.html">ChartRenderingInfo</A> info, boolean useOverLibForToolTips)</CODE><BR> 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 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 writer, java.lang.String name, <A HREF="../../../org/jfree/chart/ChartRenderingInfo.html">ChartRenderingInfo</A> info, <A HREF="../../../org/jfree/chart/imagemap/ToolTipTagFragmentGenerator.html">ToolTipTagFragmentGenerator</A> toolTipTagFragmentGenerator, <A HREF="../../../org/jfree/chart/imagemap/URLTagFragmentGenerator.html">URLTagFragmentGenerator</A> urlTagFragmentGenerator)</CODE><BR> 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 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 out, <A HREF="../../../org/jfree/chart/JFreeChart.html">JFreeChart</A> chart, int width, int height, int widthScaleFactor, int heightScaleFactor)</CODE><BR> Writes a scaled version of a chart to an output stream in PNG format.</TD></TR></TABLE> <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> <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 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 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 out, <A HREF="../../../org/jfree/chart/JFreeChart.html">JFreeChart</A> chart, int width, int height, boolean encodeAlpha, int 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 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 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 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, boolean encodeAlpha, int compression)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -