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

📄 jcomponentwriter.html

📁 由java开发的软件包
💻 HTML
📖 第 1 页 / 共 2 页
字号:
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Constructor Detail</B></FONT></TD></TR></TABLE><A NAME="JComponentWriter()"><!-- --></A><H3>JComponentWriter</H3><PRE>public <B>JComponentWriter</B>()</PRE><DL><DD>initializes the object<P></DL><HR><A NAME="JComponentWriter(javax.swing.JComponent)"><!-- --></A><H3>JComponentWriter</H3><PRE>public <B>JComponentWriter</B>(javax.swing.JComponent&nbsp;c)</PRE><DL><DD>initializes the object with the given Component<P><DT><B>Parameters:</B><DD><CODE>c</CODE> - the component to print in the output format</DL><HR><A NAME="JComponentWriter(javax.swing.JComponent, java.io.File)"><!-- --></A><H3>JComponentWriter</H3><PRE>public <B>JComponentWriter</B>(javax.swing.JComponent&nbsp;c,                        java.io.File&nbsp;f)</PRE><DL><DD>initializes the object with the given Component and filename<P><DT><B>Parameters:</B><DD><CODE>c</CODE> - the component to print in the output format<DD><CODE>f</CODE> - the file to store the output in</DL><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Method Detail</B></FONT></TD></TR></TABLE><A NAME="setComponent(javax.swing.JComponent)"><!-- --></A><H3>setComponent</H3><PRE>public void <B>setComponent</B>(javax.swing.JComponent&nbsp;c)</PRE><DL><DD>sets the component to print to an output format<P><DD><DL></DL></DD></DL><HR><A NAME="getComponent()"><!-- --></A><H3>getComponent</H3><PRE>public javax.swing.JComponent <B>getComponent</B>()</PRE><DL><DD>returns the component that is stored in the output format<P><DD><DL></DL></DD></DL><HR><A NAME="setFile(java.io.File)"><!-- --></A><H3>setFile</H3><PRE>public void <B>setFile</B>(java.io.File&nbsp;f)</PRE><DL><DD>sets the file to store the output in<P><DD><DL></DL></DD></DL><HR><A NAME="getFile()"><!-- --></A><H3>getFile</H3><PRE>public java.io.File <B>getFile</B>()</PRE><DL><DD>returns the file being used for storing the output<P><DD><DL></DL></DD></DL><HR><A NAME="getDescription()"><!-- --></A><H3>getDescription</H3><PRE>public java.lang.String <B>getDescription</B>()</PRE><DL><DD>returns the name of the writer, to display in the FileChooser. must be overridden in the derived class.<P><DD><DL></DL></DD></DL><HR><A NAME="getExtension()"><!-- --></A><H3>getExtension</H3><PRE>public java.lang.String <B>getExtension</B>()</PRE><DL><DD>returns the extension (incl. ".") of the output format, to use in the FileChooser.  must be overridden in the derived class.<P><DD><DL></DL></DD></DL><HR><A NAME="getScalingEnabled()"><!-- --></A><H3>getScalingEnabled</H3><PRE>public boolean <B>getScalingEnabled</B>()</PRE><DL><DD>whether scaling is enabled or ignored<P><DD><DL></DL></DD></DL><HR><A NAME="setScalingEnabled(boolean)"><!-- --></A><H3>setScalingEnabled</H3><PRE>public void <B>setScalingEnabled</B>(boolean&nbsp;enabled)</PRE><DL><DD>sets whether to enable scaling<P><DD><DL></DL></DD></DL><HR><A NAME="setScale(double, double)"><!-- --></A><H3>setScale</H3><PRE>public void <B>setScale</B>(double&nbsp;x,                     double&nbsp;y)</PRE><DL><DD>sets the scale factor - is ignored since we always create a screenshot!<P><DD><DL><DT><B>Parameters:</B><DD><CODE>x</CODE> - the scale factor for the x-axis<DD><CODE>y</CODE> - the scale factor for the y-axis</DL></DD></DL><HR><A NAME="getXScale()"><!-- --></A><H3>getXScale</H3><PRE>public double <B>getXScale</B>()</PRE><DL><DD>returns the scale factor for the x-axis<P><DD><DL></DL></DD></DL><HR><A NAME="getYScale()"><!-- --></A><H3>getYScale</H3><PRE>public double <B>getYScale</B>()</PRE><DL><DD>returns the scale factor for the y-axis<P><DD><DL></DL></DD></DL><HR><A NAME="toOutput()"><!-- --></A><H3>toOutput</H3><PRE>public void <B>toOutput</B>()              throws java.lang.Exception</PRE><DL><DD>saves the current component to the currently set file.<p> <b>Note:</b> this method has to be overriden in subclasses!<P><DD><DL><DT><B>Throws:</B><DD><CODE>java.lang.Exception</CODE> - if either the file or the component is <code>null</code></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="../../../../Tutorial.pdf"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="http://www.cs.waikato.ac.nz/ml/weka/index.html"><FONT CLASS="NavBarFont1"><B>Weka's home</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="../../../weka/gui/visualize/ClassPanel.html" title="class in weka.gui.visualize"><B>PREV CLASS</B></A>&nbsp;&nbsp;<A HREF="../../../weka/gui/visualize/JPEGWriter.html" title="class in weka.gui.visualize"><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="JComponentWriter.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 + -