swingtools.html
来自「数据挖掘方面最新软件」· HTML 代码 · 共 1,266 行 · 第 1/4 页
HTML
1,266 行
</DD></DL><HR><A NAME="getStringFromClassArray(java.lang.Class[])"><!-- --></A><H3>getStringFromClassArray</H3><PRE>public static java.lang.String <B>getStringFromClassArray</B>(java.lang.Class[] classes)</PRE><DL><DD>Transforms the given class name array into a comma separated string of the short class names.<P><DD><DL></DL></DD></DL><HR><A NAME="addLinebreaks(java.lang.String)"><!-- --></A><H3>addLinebreaks</H3><PRE>public static java.lang.String <B>addLinebreaks</B>(java.lang.String message)</PRE><DL><DD>Adds linebreaks after <A HREF="../../../../com/rapidminer/gui/tools/SwingTools.html#TOOL_TIP_LINE_LENGTH"><CODE>TOOL_TIP_LINE_LENGTH</CODE></A> letters.<P><DD><DL></DL></DD></DL><HR><A NAME="showVerySimpleErrorMessage(java.lang.String)"><!-- --></A><H3>showVerySimpleErrorMessage</H3><PRE>public static void <B>showVerySimpleErrorMessage</B>(java.lang.String message)</PRE><DL><DD>Shows a very simple error message without any Java exception hints.<P><DD><DL></DL></DD></DL><HR><A NAME="showSimpleErrorMessage(java.lang.String, java.lang.Throwable)"><!-- --></A><H3>showSimpleErrorMessage</H3><PRE>public static void <B>showSimpleErrorMessage</B>(java.lang.String message, java.lang.Throwable e)</PRE><DL><DD>This is the normal method which could be used by GUI classes for errors caused by some exception (e.g. IO issues). Of course these erro message methods should never be invoked by operators or similar.<P><DD><DL></DL></DD></DL><HR><A NAME="showFinalErrorMessage(java.lang.String, java.lang.Throwable)"><!-- --></A><H3>showFinalErrorMessage</H3><PRE>public static void <B>showFinalErrorMessage</B>(java.lang.String message, java.lang.Throwable e)</PRE><DL><DD>Shows the final error message dialog. This dialog also allows to send a bugreport if the error was not (definitely) a user error.<P><DD><DL></DL></DD></DL><HR><A NAME="chooseFile(java.awt.Component, java.io.File, boolean, java.lang.String, java.lang.String)"><!-- --></A><H3>chooseFile</H3><PRE>public static java.io.File <B>chooseFile</B>(java.awt.Component parent, java.io.File file, boolean open, java.lang.String extension, java.lang.String extensionDescription)</PRE><DL><DD>Opens a file chooser with a reasonable start directory. If the extension is null, no file filters will be used.<P><DD><DL></DL></DD></DL><HR><A NAME="chooseFile(java.awt.Component, java.io.File, boolean, boolean, java.lang.String, java.lang.String)"><!-- --></A><H3>chooseFile</H3><PRE>public static java.io.File <B>chooseFile</B>(java.awt.Component parent, java.io.File file, boolean open, boolean onlyDirs, java.lang.String extension, java.lang.String extensionDescription)</PRE><DL><DD>Opens a file chooser with a reasonable start directory. If the extension is null, no file filters will be used. This method allows choosing directories.<P><DD><DL></DL></DD></DL><HR><A NAME="createFileChooser(java.io.File, boolean, javax.swing.filechooser.FileFilter[])"><!-- --></A><H3>createFileChooser</H3><PRE>public static javax.swing.JFileChooser <B>createFileChooser</B>(java.io.File file, boolean onlyDirs, javax.swing.filechooser.FileFilter[] fileFilters)</PRE><DL><DD>Creates file chooser with a reasonable start directory. You may use the following code snippet in order to retrieve the file: <pre> if (fileChooser.showOpenDialog(parent) == JFileChooser.APPROVE_OPTION) File selectedFile = fileChooser.getSelectedFile(); </pre> Usually, the method <A HREF="../../../../com/rapidminer/gui/tools/SwingTools.html#chooseFile(java.awt.Component, java.io.File, boolean, boolean, javax.swing.filechooser.FileFilter[])"><CODE>chooseFile(Component, File, boolean, boolean, FileFilter[])</CODE></A> or one of the convenience wrapper methods can be used to do this. This method is only useful if one is interested, e.g., in the selected file filter.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>file</CODE> - The initially selected value of the file chooser dialog<DD><CODE>onlyDirs</CODE> - Only allow directories to be selected<DD><CODE>fileFilters</CODE> - List of FileFilters to use</DL></DD></DL><HR><A NAME="createTextPanel(java.lang.String, java.lang.String)"><!-- --></A><H3>createTextPanel</H3><PRE>public static javax.swing.JPanel <B>createTextPanel</B>(java.lang.String title, java.lang.String text)</PRE><DL><DD>Creates a panel with title and text. The panel has a border layout and the text is placed into the NORTH section.<P><DD><DL></DL></DD></DL><HR><A NAME="html2RapidMinerText(java.lang.String)"><!-- --></A><H3>html2RapidMinerText</H3><PRE>public static java.lang.String <B>html2RapidMinerText</B>(java.lang.String html)</PRE><DL><DD>Replaces simple html tags and quotes by RapidMiner specific text elements. These can be used in XML files without confusing an XML parser.<P><DD><DL></DL></DD></DL><HR><A NAME="text2DisplayHtml(java.lang.String)"><!-- --></A><H3>text2DisplayHtml</H3><PRE>public static java.lang.String <B>text2DisplayHtml</B>(java.lang.String text)</PRE><DL><DD>Replaces the RapidMiner specific tag elements by normal html tags. The given text is also embedded in an html and body tag with an appropriated style sheet definition.<P><DD><DL></DL></DD></DL><HR><A NAME="text2SimpleHtml(java.lang.String)"><!-- --></A><H3>text2SimpleHtml</H3><PRE>public static java.lang.String <B>text2SimpleHtml</B>(java.lang.String htmlText)</PRE><DL><DD>Replaces the RapidMiner specific tag elements by normal html tags. This method does not embed the given text in a html tag.<P><DD><DL></DL></DD></DL><HR><A NAME="getPointColor(double)"><!-- --></A><H3>getPointColor</H3><PRE>public static java.awt.Color <B>getPointColor</B>(double value)</PRE><DL><DD>Returns a color equivalent to the value of <code>value</code>. The value has to be normalized between 0 and 1.<P><DD><DL></DL></DD></DL><HR><A NAME="getPointColor(double, double, double)"><!-- --></A><H3>getPointColor</H3><PRE>public static java.awt.Color <B>getPointColor</B>(double value, double max, double min)</PRE><DL><DD>Returns a color equivalent to the value of <code>value</code>. The value will be normalized between 0 and 1 using the parameters max and min. Which are the minimum and maximum of the complete dataset.<P><DD><DL></DL></DD></DL><HR><A NAME="getTextAreaDefaults()"><!-- --></A><H3>getTextAreaDefaults</H3><PRE>public static <A HREF="../../../../com/rapidminer/gui/tools/syntax/TextAreaDefaults.html" title="class in com.rapidminer.gui.tools.syntax">TextAreaDefaults</A> <B>getTextAreaDefaults</B>()</PRE><DL><DD>Returns JEditTextArea defaults with adapted syntax color styles.<P><DD><DL></DL></DD></DL><HR><A NAME="getSyntaxStyles()"><!-- --></A><H3>getSyntaxStyles</H3><PRE>public static <A HREF="../../../../com/rapidminer/gui/tools/syntax/SyntaxStyle.html" title="class in com.rapidminer.gui.tools.syntax">SyntaxStyle</A>[] <B>getSyntaxStyles</B>()</PRE><DL><DD>Returns adapted syntax color and font styles matching RapidMiner colors.<P><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="class-use/SwingTools.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </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><a href="http://sourceforge.net"><img src="http://sourceforge.net/sflogo.php?group_id=114160&type=2" width="125" height="37" border="0" alt="SourceForge.net Logo" /></a></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../com/rapidminer/gui/tools/StatusBar.html" title="class in com.rapidminer.gui.tools"><B>PREV CLASS</B></A> <A HREF="../../../../com/rapidminer/gui/tools/SystemMonitor.html" title="class in com.rapidminer.gui.tools"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../index.html?com/rapidminer/gui/tools/SwingTools.html" target="_top"><B>FRAMES</B></A> <A HREF="SwingTools.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 | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: <A HREF="#field_detail">FIELD</A> | <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><i>Copyright © 2001-2008 by <a href="http://rapid-i.com" target="_blank">Rapid-I</a></i></BODY></HTML>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?