📄 printablecomponent.html
字号:
<DL><DD>initializes the panel<P><DL><DT><B>Parameters:</B><DD><CODE>component</CODE> - the component to enhance with printing functionality</DL></DL><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"><B>Method Detail</B></FONT></TH></TR></TABLE><A NAME="getComponent()"><!-- --></A><H3>getComponent</H3><PRE>public javax.swing.JComponent <B>getComponent</B>()</PRE><DL><DD>returns the GUI component this print dialog is part of<P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="getToolTipText(weka.gui.visualize.PrintableComponent)"><!-- --></A><H3>getToolTipText</H3><PRE>public static java.lang.String <B>getToolTipText</B>(<A HREF="../../../weka/gui/visualize/PrintableComponent.html" title="class in weka.gui.visualize">PrintableComponent</A> component)</PRE><DL><DD>Returns a tooltip only if the user wants it. If retrieved for the first, a dialog pops up and asks the user whether the tooltip should always appear or not. The weka/gui/visualize/Visualize.props is then written in the user's home directory.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>component</CODE> - the PrintableComponent to ask for<DT><B>Returns:</B><DD>null if the user doesn't want the tooltip, otherwise the text</DL></DD></DL><HR><A NAME="getWriters()"><!-- --></A><H3>getWriters</H3><PRE>public java.util.Hashtable <B>getWriters</B>()</PRE><DL><DD>returns a Hashtable with the current available JComponentWriters in the save dialog. the key of the Hashtable is the description of the writer.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../weka/gui/visualize/PrintableHandler.html#getWriters()">getWriters</A></CODE> in interface <CODE><A HREF="../../../weka/gui/visualize/PrintableHandler.html" title="interface in weka.gui.visualize">PrintableHandler</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>all currently available JComponentWriters<DT><B>See Also:</B><DD><A HREF="../../../weka/gui/visualize/JComponentWriter.html#getDescription()"><CODE>JComponentWriter.getDescription()</CODE></A></DL></DD></DL><HR><A NAME="getWriter(java.lang.String)"><!-- --></A><H3>getWriter</H3><PRE>public <A HREF="../../../weka/gui/visualize/JComponentWriter.html" title="class in weka.gui.visualize">JComponentWriter</A> <B>getWriter</B>(java.lang.String name)</PRE><DL><DD>returns the JComponentWriter associated with the given name, is <code>null</code> if not found<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../weka/gui/visualize/PrintableHandler.html#getWriter(java.lang.String)">getWriter</A></CODE> in interface <CODE><A HREF="../../../weka/gui/visualize/PrintableHandler.html" title="interface in weka.gui.visualize">PrintableHandler</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>the writer associated with the given name<DT><B>See Also:</B><DD><A HREF="../../../weka/gui/visualize/JComponentWriter.html#getDescription()"><CODE>JComponentWriter.getDescription()</CODE></A></DL></DD></DL><HR><A NAME="setSaveDialogTitle(java.lang.String)"><!-- --></A><H3>setSaveDialogTitle</H3><PRE>public void <B>setSaveDialogTitle</B>(java.lang.String title)</PRE><DL><DD>sets the title for the save dialog<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../weka/gui/visualize/PrintableHandler.html#setSaveDialogTitle(java.lang.String)">setSaveDialogTitle</A></CODE> in interface <CODE><A HREF="../../../weka/gui/visualize/PrintableHandler.html" title="interface in weka.gui.visualize">PrintableHandler</A></CODE></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="getSaveDialogTitle()"><!-- --></A><H3>getSaveDialogTitle</H3><PRE>public java.lang.String <B>getSaveDialogTitle</B>()</PRE><DL><DD>returns the title for the save dialog<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../weka/gui/visualize/PrintableHandler.html#getSaveDialogTitle()">getSaveDialogTitle</A></CODE> in interface <CODE><A HREF="../../../weka/gui/visualize/PrintableHandler.html" title="interface in weka.gui.visualize">PrintableHandler</A></CODE></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="setScale(double, double)"><!-- --></A><H3>setScale</H3><PRE>public void <B>setScale</B>(double x, double y)</PRE><DL><DD>sets the scale factor<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../weka/gui/visualize/PrintableHandler.html#setScale(double, double)">setScale</A></CODE> in interface <CODE><A HREF="../../../weka/gui/visualize/PrintableHandler.html" title="interface in weka.gui.visualize">PrintableHandler</A></CODE></DL></DD><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><DT><B>Specified by:</B><DD><CODE><A HREF="../../../weka/gui/visualize/PrintableHandler.html#getXScale()">getXScale</A></CODE> in interface <CODE><A HREF="../../../weka/gui/visualize/PrintableHandler.html" title="interface in weka.gui.visualize">PrintableHandler</A></CODE></DL></DD><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><DT><B>Specified by:</B><DD><CODE><A HREF="../../../weka/gui/visualize/PrintableHandler.html#getYScale()">getYScale</A></CODE> in interface <CODE><A HREF="../../../weka/gui/visualize/PrintableHandler.html" title="interface in weka.gui.visualize">PrintableHandler</A></CODE></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="saveComponent()"><!-- --></A><H3>saveComponent</H3><PRE>public void <B>saveComponent</B>()</PRE><DL><DD>displays a save dialog for saving the panel to a file. Fixes a bug with the Swing JFileChooser: if you entered a new filename in the save dialog and press Enter the <code>getSelectedFile</code> method returns <code>null</code> instead of the filename.<br> To solve this annoying behavior we call the save dialog once again s.t. the filename is set. Might look a little bit strange to the user, but no NullPointerException! ;-)<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../weka/gui/visualize/PrintableHandler.html#saveComponent()">saveComponent</A></CODE> in interface <CODE><A HREF="../../../weka/gui/visualize/PrintableHandler.html" title="interface in weka.gui.visualize">PrintableHandler</A></CODE></DL></DD><DD><DL></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=2 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> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="http://www.cs.waikato.ac.nz/ml/weka/" target="_blank"><FONT CLASS="NavBarFont1"><B>Weka's home</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="../../../weka/gui/visualize/PostscriptWriter.html" title="class in weka.gui.visualize"><B>PREV CLASS</B></A> <A HREF="../../../weka/gui/visualize/PrintableHandler.html" title="interface in weka.gui.visualize"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../index.html?weka/gui/visualize/PrintableComponent.html" target="_top"><B>FRAMES</B></A> <A HREF="PrintableComponent.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 + -