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

📄 chartutilities.html

📁 JFreeChart 9.20的文档 需要用JAVA在网页上做统计图的东东
💻 HTML
📖 第 1 页 / 共 4 页
字号:
                                   <A HREF="../../../org/jfree/chart/ChartRenderingInfo.html" title="class in org.jfree.chart">ChartRenderingInfo</A>&nbsp;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&nbsp;out,                                            java.awt.image.BufferedImage&nbsp;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&nbsp;out,                                            float&nbsp;quality,                                            java.awt.image.BufferedImage&nbsp;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&nbsp;out,                                           java.awt.image.BufferedImage&nbsp;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&nbsp;out,                                           java.awt.image.BufferedImage&nbsp;image,                                           boolean&nbsp;encodeAlpha,                                           int&nbsp;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&nbsp;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&nbsp;image,                                 boolean&nbsp;encodeAlpha,                                 int&nbsp;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&nbsp;writer,                                 java.lang.String&nbsp;name,                                 <A HREF="../../../org/jfree/chart/ChartRenderingInfo.html" title="class in org.jfree.chart">ChartRenderingInfo</A>&nbsp;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&nbsp;writer,                                 java.lang.String&nbsp;name,                                 <A HREF="../../../org/jfree/chart/ChartRenderingInfo.html" title="class in org.jfree.chart">ChartRenderingInfo</A>&nbsp;info,                                 boolean&nbsp;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&nbsp;writer,                                 java.lang.String&nbsp;name,                                 <A HREF="../../../org/jfree/chart/ChartRenderingInfo.html" title="class in org.jfree.chart">ChartRenderingInfo</A>&nbsp;info,                                 <A HREF="../../../org/jfree/chart/imagemap/ToolTipTagFragmentGenerator.html" title="interface in org.jfree.chart.imagemap">ToolTipTagFragmentGenerator</A>&nbsp;toolTipTagFragmentGenerator,                                 <A HREF="../../../org/jfree/chart/imagemap/URLTagFragmentGenerator.html" title="interface in org.jfree.chart.imagemap">URLTagFragmentGenerator</A>&nbsp;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&nbsp;name,                                           <A HREF="../../../org/jfree/chart/ChartRenderingInfo.html" title="class in org.jfree.chart">ChartRenderingInfo</A>&nbsp;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&nbsp;name,                                           <A HREF="../../../org/jfree/chart/ChartRenderingInfo.html" title="class in org.jfree.chart">ChartRenderingInfo</A>&nbsp;info,                                           <A HREF="../../../org/jfree/chart/imagemap/ToolTipTagFragmentGenerator.html" title="interface in org.jfree.chart.imagemap">ToolTipTagFragmentGenerator</A>&nbsp;toolTipTagFragmentGenerator,                                           <A HREF="../../../org/jfree/chart/imagemap/URLTagFragmentGenerator.html" title="interface in org.jfree.chart.imagemap">URLTagFragmentGenerator</A>&nbsp;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>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>  </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">&nbsp;<A HREF="../../../org/jfree/chart/ChartRenderingInfo.html" title="class in org.jfree.chart"><B>PREV CLASS</B></A>&nbsp;&nbsp;<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>  &nbsp;&nbsp;<A HREF="ChartUtilities.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;&nbsp;<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:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<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 + -