📄 chartutilities.html
字号:
<A HREF="../../../org/jfree/chart/ChartRenderingInfo.html" title="class in org.jfree.chart">ChartRenderingInfo</A> info) throws java.io.IOException</PRE><DL><DD>Saves a chart to a file in JPEG format. This method allows you to pass in a <A HREF="../../../org/jfree/chart/ChartRenderingInfo.html" title="class in org.jfree.chart"><CODE>ChartRenderingInfo</CODE></A> 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 (<code>null</code> not permitted).<DD><CODE>quality</CODE> - the quality setting.<DD><CODE>chart</CODE> - the chart (<code>null</code> not permitted).<DD><CODE>width</CODE> - the image width.<DD><CODE>height</CODE> - the image height.<DD><CODE>info</CODE> - the chart rendering info (<code>null</code> permitted).<DT><B>Throws:</B><DD><CODE>java.io.IOException</CODE> - if there are any I/O errors.</DL></DD></DL><HR><A NAME="writeBufferedImageAsJPEG(java.io.OutputStream, java.awt.image.BufferedImage)"><!-- --></A><H3>writeBufferedImageAsJPEG</H3><PRE>public static void <B>writeBufferedImageAsJPEG</B>(java.io.OutputStream out, java.awt.image.BufferedImage image) throws java.io.IOException</PRE><DL><DD>Writes a <CODE>BufferedImage</CODE> to an output stream in JPEG format.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>out</CODE> - the output stream (<code>null</code> not permitted).<DD><CODE>image</CODE> - the image (<code>null</code> not permitted).<DT><B>Throws:</B><DD><CODE>java.io.IOException</CODE> - if there are any I/O errors.</DL></DD></DL><HR><A NAME="writeBufferedImageAsJPEG(java.io.OutputStream, float, java.awt.image.BufferedImage)"><!-- --></A><H3>writeBufferedImageAsJPEG</H3><PRE>public static void <B>writeBufferedImageAsJPEG</B>(java.io.OutputStream out, float quality, java.awt.image.BufferedImage image) throws java.io.IOException</PRE><DL><DD>Writes a <CODE>BufferedImage</CODE> to an output stream in JPEG format.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>out</CODE> - the output stream (<code>null</code> not permitted).<DD><CODE>quality</CODE> - the image quality (0.0f to 1.0f).<DD><CODE>image</CODE> - the image (<code>null</code> not permitted).<DT><B>Throws:</B><DD><CODE>java.io.IOException</CODE> - if there are any I/O errors.</DL></DD></DL><HR><A NAME="writeBufferedImageAsPNG(java.io.OutputStream, java.awt.image.BufferedImage)"><!-- --></A><H3>writeBufferedImageAsPNG</H3><PRE>public static void <B>writeBufferedImageAsPNG</B>(java.io.OutputStream out, java.awt.image.BufferedImage image) throws java.io.IOException</PRE><DL><DD>Writes a <CODE>BufferedImage</CODE> to an output stream in PNG format.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>out</CODE> - the output stream (<code>null</code> not permitted).<DD><CODE>image</CODE> - the image (<code>null</code> not permitted).<DT><B>Throws:</B><DD><CODE>java.io.IOException</CODE> - if there are any I/O errors.</DL></DD></DL><HR><A NAME="writeBufferedImageAsPNG(java.io.OutputStream, java.awt.image.BufferedImage, boolean, int)"><!-- --></A><H3>writeBufferedImageAsPNG</H3><PRE>public static void <B>writeBufferedImageAsPNG</B>(java.io.OutputStream out, java.awt.image.BufferedImage image, boolean encodeAlpha, int compression) throws java.io.IOException</PRE><DL><DD>Writes a <CODE>BufferedImage</CODE> to an output stream in PNG format.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>out</CODE> - the output stream (<code>null</code> not permitted).<DD><CODE>image</CODE> - the image (<code>null</code> not permitted).<DD><CODE>encodeAlpha</CODE> - encode alpha?<DD><CODE>compression</CODE> - the compression level (0-9).<DT><B>Throws:</B><DD><CODE>java.io.IOException</CODE> - if there are any I/O errors.</DL></DD></DL><HR><A NAME="encodeAsPNG(java.awt.image.BufferedImage)"><!-- --></A><H3>encodeAsPNG</H3><PRE>public static byte[] <B>encodeAsPNG</B>(java.awt.image.BufferedImage image)</PRE><DL><DD>Encodes a <CODE>BufferedImage</CODE> to PNG format.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>image</CODE> - the image (<code>null</code> not permitted).<DT><B>Returns:</B><DD>a byte array in PNG format.</DL></DD></DL><HR><A NAME="encodeAsPNG(java.awt.image.BufferedImage, boolean, int)"><!-- --></A><H3>encodeAsPNG</H3><PRE>public static byte[] <B>encodeAsPNG</B>(java.awt.image.BufferedImage image, boolean encodeAlpha, int compression)</PRE><DL><DD>Encodes a <CODE>BufferedImage</CODE> to PNG format.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>image</CODE> - the image (<code>null</code> not permitted).<DD><CODE>encodeAlpha</CODE> - encode alpha?<DD><CODE>compression</CODE> - the PNG compression level (0-9).<DT><B>Returns:</B><DD>the byte array in PNG format.</DL></DD></DL><HR><A NAME="writeImageMap(java.io.PrintWriter, java.lang.String, org.jfree.chart.ChartRenderingInfo)"><!-- --></A><H3>writeImageMap</H3><PRE>public static void <B>writeImageMap</B>(java.io.PrintWriter writer, java.lang.String name, <A HREF="../../../org/jfree/chart/ChartRenderingInfo.html" title="class in org.jfree.chart">ChartRenderingInfo</A> info) throws java.io.IOException</PRE><DL><DD>Writes an image map to an output stream.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>writer</CODE> - the writer (<code>null</code> not permitted).<DD><CODE>name</CODE> - the map name (<code>null</code> not permitted).<DD><CODE>info</CODE> - the chart rendering info (<code>null</code> not permitted).<DT><B>Throws:</B><DD><CODE>java.io.IOException</CODE> - if there are any I/O errors.</DL></DD></DL><HR><A NAME="writeImageMap(java.io.PrintWriter, java.lang.String, org.jfree.chart.ChartRenderingInfo, boolean)"><!-- --></A><H3>writeImageMap</H3><PRE>public static void <B>writeImageMap</B>(java.io.PrintWriter writer, java.lang.String name, <A HREF="../../../org/jfree/chart/ChartRenderingInfo.html" title="class in org.jfree.chart">ChartRenderingInfo</A> info, boolean useOverLibForToolTips) throws java.io.IOException</PRE><DL><DD>Writes an image map to an output stream.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>writer</CODE> - the writer (<code>null</code> not permitted).<DD><CODE>name</CODE> - the map name (<code>null</code> not permitted).<DD><CODE>info</CODE> - the chart rendering info (<code>null</code> not permitted).<DD><CODE>useOverLibForToolTips</CODE> - whether to use OverLIB for tooltips (http://www.bosrup.com/web/overlib/).<DT><B>Throws:</B><DD><CODE>java.io.IOException</CODE> - if there are any I/O errors.</DL></DD></DL><HR><A NAME="writeImageMap(java.io.PrintWriter, java.lang.String, org.jfree.chart.ChartRenderingInfo, org.jfree.chart.imagemap.ToolTipTagFragmentGenerator, org.jfree.chart.imagemap.URLTagFragmentGenerator)"><!-- --></A><H3>writeImageMap</H3><PRE>public static void <B>writeImageMap</B>(java.io.PrintWriter writer, java.lang.String name, <A HREF="../../../org/jfree/chart/ChartRenderingInfo.html" title="class in org.jfree.chart">ChartRenderingInfo</A> info, <A HREF="../../../org/jfree/chart/imagemap/ToolTipTagFragmentGenerator.html" title="interface in org.jfree.chart.imagemap">ToolTipTagFragmentGenerator</A> toolTipTagFragmentGenerator, <A HREF="../../../org/jfree/chart/imagemap/URLTagFragmentGenerator.html" title="interface in org.jfree.chart.imagemap">URLTagFragmentGenerator</A> urlTagFragmentGenerator) throws java.io.IOException</PRE><DL><DD>Writes an image map to an output stream.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>writer</CODE> - the writer (<code>null</code> not permitted).<DD><CODE>name</CODE> - the map name (<code>null</code> not permitted).<DD><CODE>info</CODE> - the chart rendering info (<code>null</code> not permitted).<DD><CODE>toolTipTagFragmentGenerator</CODE> - the tool tip generator.<DD><CODE>urlTagFragmentGenerator</CODE> - the url generator.<DT><B>Throws:</B><DD><CODE>java.io.IOException</CODE> - if there are any I/O errors.</DL></DD></DL><HR><A NAME="getImageMap(java.lang.String, org.jfree.chart.ChartRenderingInfo)"><!-- --></A><H3>getImageMap</H3><PRE>public static java.lang.String <B>getImageMap</B>(java.lang.String name, <A HREF="../../../org/jfree/chart/ChartRenderingInfo.html" title="class in org.jfree.chart">ChartRenderingInfo</A> info)</PRE><DL><DD>Creates an HTML image map.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>name</CODE> - the map name (<code>null</code> not permitted).<DD><CODE>info</CODE> - the chart rendering info (<code>null</code> not permitted).<DT><B>Returns:</B><DD>the map tag.</DL></DD></DL><HR><A NAME="getImageMap(java.lang.String, org.jfree.chart.ChartRenderingInfo, org.jfree.chart.imagemap.ToolTipTagFragmentGenerator, org.jfree.chart.imagemap.URLTagFragmentGenerator)"><!-- --></A><H3>getImageMap</H3><PRE>public static java.lang.String <B>getImageMap</B>(java.lang.String name, <A HREF="../../../org/jfree/chart/ChartRenderingInfo.html" title="class in org.jfree.chart">ChartRenderingInfo</A> info, <A HREF="../../../org/jfree/chart/imagemap/ToolTipTagFragmentGenerator.html" title="interface in org.jfree.chart.imagemap">ToolTipTagFragmentGenerator</A> toolTipTagFragmentGenerator, <A HREF="../../../org/jfree/chart/imagemap/URLTagFragmentGenerator.html" title="interface in org.jfree.chart.imagemap">URLTagFragmentGenerator</A> urlTagFragmentGenerator)</PRE><DL><DD>Creates an HTML image map.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>name</CODE> - the map name (<code>null</code> not permitted).<DD><CODE>info</CODE> - the chart rendering info (<code>null</code> not permitted).<DD><CODE>toolTipTagFragmentGenerator</CODE> - the tool tip generator.<DD><CODE>urlTagFragmentGenerator</CODE> - the url generator.<DT><B>Returns:</B><DD>the map tag.</DL></DD></DL><!-- ========= END OF CLASS DATA ========= --><HR><!-- ======= START OF BOTTOM NAVBAR ====== --><A NAME="navbar_bottom"><!-- --></A><A HREF="#skip-navbar_bottom" title="Skip navigation links"></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""><TR><TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_bottom_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> <TR ALIGN="center" VALIGN="top"> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../org/jfree/chart/ChartRenderingInfo.html" title="class in org.jfree.chart"><B>PREV CLASS</B></A> <A HREF="../../../org/jfree/chart/ClipPath.html" title="class in org.jfree.chart"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../index.html" target="_top"><B>FRAMES</B></A> <A HREF="ChartUtilities.html" target="_top"><B>NO FRAMES</B></A> <SCRIPT type="text/javascript"> <!-- if(window==top) { document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>'); } //--></SCRIPT><NOSCRIPT> <A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A></NOSCRIPT></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: NESTED | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><A NAME="skip-navbar_bottom"></A><!-- ======== END OF BOTTOM NAVBAR ======= --><HR></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -