swingtools.html

来自「数据挖掘方面最新软件」· HTML 代码 · 共 1,266 行 · 第 1/4 页

HTML
1,266
字号
           boolean&nbsp;open,           java.lang.String&nbsp;extension,           java.lang.String&nbsp;extensionDescription)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Opens a file chooser with a reasonable start directory.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;javax.swing.JFileChooser</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../com/rapidminer/gui/tools/SwingTools.html#createFileChooser(java.io.File, boolean, javax.swing.filechooser.FileFilter[])">createFileChooser</A></B>(java.io.File&nbsp;file,                  boolean&nbsp;onlyDirs,                  javax.swing.filechooser.FileFilter[]&nbsp;fileFilters)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Creates file chooser with a reasonable start directory.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;javax.swing.ImageIcon</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../com/rapidminer/gui/tools/SwingTools.html#createIcon(java.lang.String)">createIcon</A></B>(java.lang.String&nbsp;iconName)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Tries to load the icon for the given resource.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;javax.swing.ImageIcon</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../com/rapidminer/gui/tools/SwingTools.html#createImage(java.lang.String)">createImage</A></B>(java.lang.String&nbsp;imageName)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Tries to load the image for the given resource.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;javax.swing.JPanel</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../com/rapidminer/gui/tools/SwingTools.html#createTextPanel(java.lang.String, java.lang.String)">createTextPanel</A></B>(java.lang.String&nbsp;title,                java.lang.String&nbsp;text)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Creates a panel with title and text.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;java.util.List&lt;java.awt.Image&gt;</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../com/rapidminer/gui/tools/SwingTools.html#getFrameIconList()">getFrameIconList</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the list of all available program icon sizes.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;java.awt.Color</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../com/rapidminer/gui/tools/SwingTools.html#getPointColor(double)">getPointColor</A></B>(double&nbsp;value)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns a color equivalent to the value of <code>value</code>.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;java.awt.Color</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../com/rapidminer/gui/tools/SwingTools.html#getPointColor(double, double, double)">getPointColor</A></B>(double&nbsp;value,              double&nbsp;max,              double&nbsp;min)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns a color equivalent to the value of <code>value</code>.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;java.lang.String</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../com/rapidminer/gui/tools/SwingTools.html#getStringFromClassArray(java.lang.Class[])">getStringFromClassArray</A></B>(java.lang.Class[]&nbsp;classes)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Transforms the given class name array into a comma separated string of the short class names.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;<A HREF="../../../../com/rapidminer/gui/tools/syntax/SyntaxStyle.html" title="class in com.rapidminer.gui.tools.syntax">SyntaxStyle</A>[]</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../com/rapidminer/gui/tools/SwingTools.html#getSyntaxStyles()">getSyntaxStyles</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns adapted syntax color and font styles matching RapidMiner colors.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;<A HREF="../../../../com/rapidminer/gui/tools/syntax/TextAreaDefaults.html" title="class in com.rapidminer.gui.tools.syntax">TextAreaDefaults</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../com/rapidminer/gui/tools/SwingTools.html#getTextAreaDefaults()">getTextAreaDefaults</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns JEditTextArea defaults with adapted syntax color styles.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;java.lang.String</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../com/rapidminer/gui/tools/SwingTools.html#html2RapidMinerText(java.lang.String)">html2RapidMinerText</A></B>(java.lang.String&nbsp;html)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Replaces simple html tags and quotes by RapidMiner specific text elements.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;java.awt.GradientPaint</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../com/rapidminer/gui/tools/SwingTools.html#makeBluePaint(double, double)">makeBluePaint</A></B>(double&nbsp;width,              double&nbsp;height)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Creates a blue gradient paint.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;java.awt.GradientPaint</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../com/rapidminer/gui/tools/SwingTools.html#makeRedPaint(double, double)">makeRedPaint</A></B>(double&nbsp;width,             double&nbsp;height)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Creates a red gradient paint.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;java.awt.GradientPaint</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../com/rapidminer/gui/tools/SwingTools.html#makeYellowPaint(double, double)">makeYellowPaint</A></B>(double&nbsp;width,                double&nbsp;height)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Creates a yellow gradient paint.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../com/rapidminer/gui/tools/SwingTools.html#setDialogIcon(javax.swing.JDialog)">setDialogIcon</A></B>(javax.swing.JDialog&nbsp;dialog)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the list of all possible frame icons.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../com/rapidminer/gui/tools/SwingTools.html#setFrameIcon(javax.swing.JFrame)">setFrameIcon</A></B>(javax.swing.JFrame&nbsp;frame)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the list of all possible frame icons.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../com/rapidminer/gui/tools/SwingTools.html#setIconType(java.lang.String)">setIconType</A></B>(java.lang.String&nbsp;newIconType)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../com/rapidminer/gui/tools/SwingTools.html#setupFrameIcons(java.lang.String)">setupFrameIcons</A></B>(java.lang.String&nbsp;_iconBaseName)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../com/rapidminer/gui/tools/SwingTools.html#showFinalErrorMessage(java.lang.String, java.lang.Throwable)">showFinalErrorMessage</A></B>(java.lang.String&nbsp;message,                      java.lang.Throwable&nbsp;e)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Shows the final error message dialog.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../com/rapidminer/gui/tools/SwingTools.html#showSimpleErrorMessage(java.lang.String, java.lang.Throwable)">showSimpleErrorMessage</A></B>(java.lang.String&nbsp;message,                       java.lang.Throwable&nbsp;e)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This is the normal method which could be used by GUI classes for errors caused by   some exception (e.g.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../com/rapidminer/gui/tools/SwingTools.html#showVerySimpleErrorMessage(java.lang.String)">showVerySimpleErrorMessage</A></B>(java.lang.String&nbsp;message)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Shows a very simple error message without any Java exception hints.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;java.lang.String</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../com/rapidminer/gui/tools/SwingTools.html#text2DisplayHtml(java.lang.String)">text2DisplayHtml</A></B>(java.lang.String&nbsp;text)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Replaces the RapidMiner specific tag elements by normal html tags.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;java.lang.String</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../com/rapidminer/gui/tools/SwingTools.html#text2SimpleHtml(java.lang.String)">text2SimpleHtml</A></B>(java.lang.String&nbsp;htmlText)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Replaces the RapidMiner specific tag elements by normal html tags.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;java.lang.String</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../com/rapidminer/gui/tools/SwingTools.html#transformToolTipText(java.lang.String)">transformToolTipText</A></B>(java.lang.String&nbsp;description)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This method transforms the given tool tip text into HTML.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;java.lang.String</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../com/rapidminer/gui/tools/SwingTools.html#transformToolTipText(java.lang.String, boolean, int)">transformToolTipText</A></B>(java.lang.String&nbsp;description,                     boolean&nbsp;addHTMLTags,                     int&nbsp;lineLength)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This method transforms the given tool tip text into HTML.</TD></TR></TABLE>&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD></TR></TABLE>&nbsp;<P><!-- ============ FIELD DETAIL =========== --><A NAME="field_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>Field Detail</B></FONT></TH></TR></TABLE><A NAME="TABLE_ROW_EXTRA_HEIGHT"><!-- --></A><H3>TABLE_ROW_EXTRA_HEIGHT</H3><PRE>public static final int <B>TABLE_ROW_EXTRA_HEIGHT</B></PRE><DL><DD>Defines the extra height for each row in a table.<P><DL><DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#com.rapidminer.gui.tools.SwingTools.TABLE_ROW_EXTRA_HEIGHT">Constant Field Values</A></DL></DL><HR><A NAME="TABLE_WITH_COMPONENTS_ROW_EXTRA_HEIGHT"><!-- --></A><H3>TABLE_WITH_COMPONENTS_ROW_EXTRA_HEIGHT</H3><PRE>public static final int <B>TABLE_WITH_COMPONENTS_ROW_EXTRA_HEIGHT</B></PRE><DL><DD>Defines the extra height for rows in a table with components. If an  <A HREF="../../../../com/rapidminer/gui/tools/ExtendedJTable.html" title="class in com.rapidminer.gui.tools"><CODE>ExtendedJTable</CODE></A> is used, this amount can be added additionally  to the amount of <A HREF="../../../../com/rapidminer/gui/tools/SwingTools.html#TABLE_ROW_EXTRA_HEIGHT"><CODE>TABLE_ROW_EXTRA_HEIGHT</CODE></A> which is already   added in the constructor.<P><DL><DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#com.rapidminer.gui.tools.SwingTools.TABLE_WITH_COMPONENTS_ROW_EXTRA_HEIGHT">Constant Field Values</A></DL></DL><HR><A NAME="DARKEST_YELLOW"><!-- --></A><H3>DARKEST_YELLOW</H3><PRE>public static final java.awt.Color <B>DARKEST_YELLOW</B></PRE><DL><DD>Some color constants for Java Look and Feel.<P><DL></DL></DL><HR><A NAME="DARK_YELLOW"><!-- --></A><H3>DARK_YELLOW</H3><PRE>public static final java.awt.Color <B>DARK_YELLOW</B></PRE><DL><DD>Some color constants for Java Look and Feel.<P><DL></DL></DL><HR><A NAME="LIGHT_YELLOW"><!-- --></A><H3>LIGHT_YELLOW</H3><PRE>public static final java.awt.Color <B>LIGHT_YELLOW</B></PRE><DL><DD>Some color constants for Java Look and Feel.<P><DL></DL></DL><HR><A NAME="LIGHTEST_YELLOW"><!-- --></A><H3>LIGHTEST_YELLOW</H3><PRE>public static final java.awt.Color <B>LIGHTEST_YELLOW</B></PRE><DL><DD>Some color constants for Java Look and Feel.<P><DL></DL></DL><HR>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?