📄 visualizepanel.html
字号:
<HR><A NAME="VisualizePanel()"><!-- --></A><H3>VisualizePanel</H3><PRE>public <B>VisualizePanel</B>()</PRE><DL><DD>Constructor</DL><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Method Detail</B></FONT></TD></TR></TABLE><A NAME="setLog(weka.gui.Logger)"><!-- --></A><H3>setLog</H3><PRE>public void <B>setLog</B>(<A HREF="../../../weka/gui/Logger.html">Logger</A> newLog)</PRE><DL><DD>Sets the Logger to receive informational messages<DD><DL><DT><B>Parameters:</B><DD><CODE>newLog</CODE> - the Logger that will now get info messages</DL></DD></DL><HR><A NAME="setColourIndex(int)"><!-- --></A><H3>setColourIndex</H3><PRE>public void <B>setColourIndex</B>(int index)</PRE><DL><DD>Sets the index used for colouring. If this method is called then the supplied index is used and the combo box for selecting colouring attribute is disabled.<DD><DL><DT><B>Parameters:</B><DD><CODE>index</CODE> - the index of the attribute to use for colouring</DL></DD></DL><HR><A NAME="setXIndex(int)"><!-- --></A><H3>setXIndex</H3><PRE>public void <B>setXIndex</B>(int index) throws java.lang.Exception</PRE><DL><DD>Set the index of the attribute for the x axis<DD><DL><DT><B>Parameters:</B><DD><CODE>index</CODE> - the index for the x axis<DT><B>Throws:</B><DD><CODE>java.lang.Exception</CODE> - if index is out of range.</DL></DD></DL><HR><A NAME="getXIndex()"><!-- --></A><H3>getXIndex</H3><PRE>public int <B>getXIndex</B>()</PRE><DL><DD>Get the index of the attribute on the x axis<DD><DL><DT><B>Returns:</B><DD>the index of the attribute on the x axis</DL></DD></DL><HR><A NAME="setYIndex(int)"><!-- --></A><H3>setYIndex</H3><PRE>public void <B>setYIndex</B>(int index) throws java.lang.Exception</PRE><DL><DD>Set the index of the attribute for the y axis<DD><DL><DT><B>Parameters:</B><DD><CODE>index</CODE> - the index for the y axis<DT><B>Throws:</B><DD><CODE>java.lang.Exception</CODE> - if index is out of range.</DL></DD></DL><HR><A NAME="getYIndex()"><!-- --></A><H3>getYIndex</H3><PRE>public int <B>getYIndex</B>()</PRE><DL><DD>Get the index of the attribute on the y axis<DD><DL><DT><B>Returns:</B><DD>the index of the attribute on the x axis</DL></DD></DL><HR><A NAME="getCIndex()"><!-- --></A><H3>getCIndex</H3><PRE>public int <B>getCIndex</B>()</PRE><DL><DD>Get the index of the attribute selected for coloring<DD><DL><DT><B>Returns:</B><DD>the index of the attribute on the x axis</DL></DD></DL><HR><A NAME="getSIndex()"><!-- --></A><H3>getSIndex</H3><PRE>public int <B>getSIndex</B>()</PRE><DL><DD>Get the index of the shape selected for creating splits.<DD><DL><DT><B>Returns:</B><DD>The index of the shape.</DL></DD></DL><HR><A NAME="setSIndex(int)"><!-- --></A><H3>setSIndex</H3><PRE>public void <B>setSIndex</B>(int index) throws java.lang.Exception</PRE><DL><DD>Set the shape for creating splits.<DD><DL><DT><B>Parameters:</B><DD><CODE>index</CODE> - The index of the shape.<DT><B>Throws:</B><DD><CODE>java.lang.Exception</CODE> - if index is out of range.</DL></DD></DL><HR><A NAME="addActionListener(java.awt.event.ActionListener)"><!-- --></A><H3>addActionListener</H3><PRE>public void <B>addActionListener</B>(java.awt.event.ActionListener act)</PRE><DL><DD>Add a listener for this visualize panel<DD><DL><DT><B>Parameters:</B><DD><CODE>act</CODE> - an ActionListener</DL></DD></DL><HR><A NAME="setName(java.lang.String)"><!-- --></A><H3>setName</H3><PRE>public void <B>setName</B>(java.lang.String plotName)</PRE><DL><DD>Set a name for this plot<DD><DL><DT><B>Overrides:</B><DD><CODE>setName</CODE> in class <CODE>java.awt.Component</CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>plotName</CODE> - the name for the plot</DL></DD></DL><HR><A NAME="getName()"><!-- --></A><H3>getName</H3><PRE>public java.lang.String <B>getName</B>()</PRE><DL><DD>Returns the name associated with this plot. "" is returned if no name is set.<DD><DL><DT><B>Overrides:</B><DD><CODE>getName</CODE> in class <CODE>java.awt.Component</CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>the name of the plot</DL></DD></DL><HR><A NAME="getInstances()"><!-- --></A><H3>getInstances</H3><PRE>public <A HREF="../../../weka/core/Instances.html">Instances</A> <B>getInstances</B>()</PRE><DL><DD>Get the master plot's instances<DD><DL><DT><B>Returns:</B><DD>the master plot's instances</DL></DD></DL><HR><A NAME="newColorAttribute(int, weka.core.Instances)"><!-- --></A><H3>newColorAttribute</H3><PRE>protected void <B>newColorAttribute</B>(int a, <A HREF="../../../weka/core/Instances.html">Instances</A> i)</PRE><DL><DD>Sets the Colors in use for a different attrib if it is not a nominal attrib and or does not have more possible values then this will do nothing. otherwise it will add default colors to see that there is a color for the attrib to begin with.<DD><DL><DT><B>Parameters:</B><DD><CODE>a</CODE> - The index of the attribute to color.<DD><CODE>i</CODE> - The instances object that contains the attribute.</DL></DD></DL><HR><A NAME="setShapes(weka.core.FastVector)"><!-- --></A><H3>setShapes</H3><PRE>public void <B>setShapes</B>(<A HREF="../../../weka/core/FastVector.html">FastVector</A> l)</PRE><DL><DD>This will set the shapes for the instances.<DD><DL><DT><B>Parameters:</B><DD><CODE>l</CODE> - A list of the shapes, providing that the objects in the lists are non editable the data will be kept intact.</DL></DD></DL><HR><A NAME="setInstances(weka.core.Instances)"><!-- --></A><H3>setInstances</H3><PRE>public void <B>setInstances</B>(<A HREF="../../../weka/core/Instances.html">Instances</A> inst)</PRE><DL><DD>Tells the panel to use a new set of instances.<DD><DL><DT><B>Parameters:</B><DD><CODE>inst</CODE> - a set of Instances</DL></DD></DL><HR><A NAME="setUpComboBoxes(weka.core.Instances)"><!-- --></A><H3>setUpComboBoxes</H3><PRE>public void <B>setUpComboBoxes</B>(<A HREF="../../../weka/core/Instances.html">Instances</A> inst)</PRE><DL></DL><HR><A NAME="setMasterPlot(weka.gui.visualize.PlotData2D)"><!-- --></A><H3>setMasterPlot</H3><PRE>public void <B>setMasterPlot</B>(<A HREF="../../../weka/gui/visualize/PlotData2D.html">PlotData2D</A> newPlot) throws java.lang.Exception</PRE><DL><DD>Set the master plot for the visualize panel<DD><DL><DT><B>Parameters:</B><DD><CODE>newPlot</CODE> - the new master plot<DT><B>Throws:</B><DD><CODE>java.lang.Exception</CODE> - if the master plot could not be set</DL></DD></DL><HR><A NAME="addPlot(weka.gui.visualize.PlotData2D)"><!-- --></A><H3>addPlot</H3><PRE>public void <B>addPlot</B>(<A HREF="../../../weka/gui/visualize/PlotData2D.html">PlotData2D</A> newPlot) throws java.lang.Exception</PRE><DL><DD>Set a new plot to the visualize panel<DD><DL><DT><B>Parameters:</B><DD><CODE>newPlot</CODE> - the new plot to add<DT><B>Throws:</B><DD><CODE>java.lang.Exception</CODE> - if the plot could not be added</DL></DD></DL><HR><A NAME="main(java.lang.String[])"><!-- --></A><H3>main</H3><PRE>public static void <B>main</B>(java.lang.String[] args)</PRE><DL><DD>Main method for testing this class</DL><!-- ========= END OF CLASS DATA ========= --><HR><!-- ========== START OF NAVBAR ========== --><A NAME="navbar_bottom"><!-- --></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0"><TR><TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_bottom_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3"> <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> </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/PlotData2D.html"><B>PREV CLASS</B></A> <A HREF="../../../weka/gui/visualize/VisualizePanel.PlotPanel.html"><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> <A HREF="VisualizePanel.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: <A HREF="#inner_class_summary">INNER</A> | <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><!-- =========== END OF NAVBAR =========== --><HR></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -