📄 node.html
字号:
Recursively finds the total number of levels there are.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../weka/gui/treevisualizer/Node.html#getVisible()">getVisible</A></B>()</CODE><BR> Get the value of visible.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../weka/gui/treevisualizer/Node.html#setCenter(double)">setCenter</A></B>(double v)</CODE><BR> Set the value of center.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../weka/gui/treevisualizer/Node.html#setColor(java.awt.Color)">setColor</A></B>(java.awt.Color v)</CODE><BR> Set the value of color.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../weka/gui/treevisualizer/Node.html#setCVisible(boolean)">setCVisible</A></B>(boolean v)</CODE><BR> Sets all the children of this node either to visible or invisible</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../weka/gui/treevisualizer/Node.html#setParent(weka.gui.treevisualizer.Edge)">setParent</A></B>(<A HREF="../../../weka/gui/treevisualizer/Edge.html" title="class in weka.gui.treevisualizer">Edge</A> v)</CODE><BR> Set the value of parent.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../weka/gui/treevisualizer/Node.html#setRefer(java.lang.String)">setRefer</A></B>(java.lang.String v)</CODE><BR> Set the value of refer.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../weka/gui/treevisualizer/Node.html#setRoot(boolean)">setRoot</A></B>(boolean v)</CODE><BR> Set the value of root.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../weka/gui/treevisualizer/Node.html#setShape(int)">setShape</A></B>(int v)</CODE><BR> Set the value of shape.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../weka/gui/treevisualizer/Node.html#setTop(double)">setTop</A></B>(double v)</CODE><BR> Set the value of top.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> java.awt.Dimension</CODE></FONT></TD><TD><CODE><B><A HREF="../../../weka/gui/treevisualizer/Node.html#stringSize(java.awt.FontMetrics)">stringSize</A></B>(java.awt.FontMetrics f)</CODE><BR> This will return the width and height of the rectangle that the text will fit into.</TD></TR></TABLE> <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>equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD></TR></TABLE> <P><!-- ========= CONSTRUCTOR DETAIL ======== --><A NAME="constructor_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>Constructor Detail</B></FONT></TH></TR></TABLE><A NAME="Node(java.lang.String, java.lang.String, int, int, java.awt.Color, java.lang.String)"><!-- --></A><H3>Node</H3><PRE>public <B>Node</B>(java.lang.String label, java.lang.String refer, int backstyle, int shape, java.awt.Color color, java.lang.String d)</PRE><DL><DD>This will setup all the values of the node except for its top and center.<P><DL><DT><B>Parameters:</B><DD><CODE>label</CODE> - The text for the node.<DD><CODE>refer</CODE> - The ID string for this node.<DD><CODE>backstyle</CODE> - The backstyle of this node.<DD><CODE>shape</CODE> - The shape of this node.<DD><CODE>color</CODE> - The color of this node.</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="getInstances()"><!-- --></A><H3>getInstances</H3><PRE>public <A HREF="../../../weka/core/Instances.html" title="class in weka.core">Instances</A> <B>getInstances</B>()</PRE><DL><DD>This will return the Instances object related to this node. If it has not been allocated then that will be done also.<P><DD><DL><DT><B>Returns:</B><DD>The Instances object.</DL></DD></DL><HR><A NAME="getCVisible()"><!-- --></A><H3>getCVisible</H3><PRE>public boolean <B>getCVisible</B>()</PRE><DL><DD>Get If this node's childs are visible.<P><DD><DL><DT><B>Returns:</B><DD>True if the childs are visible.</DL></DD></DL><HR><A NAME="setCVisible(boolean)"><!-- --></A><H3>setCVisible</H3><PRE>public void <B>setCVisible</B>(boolean v)</PRE><DL><DD>Sets all the children of this node either to visible or invisible<P><DD><DL><DT><B>Parameters:</B><DD><CODE>v</CODE> - True if the children are to be visible</DL></DD></DL><HR><A NAME="getRefer()"><!-- --></A><H3>getRefer</H3><PRE>public java.lang.String <B>getRefer</B>()</PRE><DL><DD>Get the value of refer.<P><DD><DL><DT><B>Returns:</B><DD>Value of refer.</DL></DD></DL><HR><A NAME="setRefer(java.lang.String)"><!-- --></A><H3>setRefer</H3><PRE>public void <B>setRefer</B>(java.lang.String v)</PRE><DL><DD>Set the value of refer.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>v</CODE> - Value to assign to refer.</DL></DD></DL><HR><A NAME="getShape()"><!-- --></A><H3>getShape</H3><PRE>public int <B>getShape</B>()</PRE><DL><DD>Get the value of shape.<P><DD><DL><DT><B>Returns:</B><DD>Value of shape.</DL></DD></DL><HR><A NAME="setShape(int)"><!-- --></A><H3>setShape</H3><PRE>public void <B>setShape</B>(int v)</PRE><DL><DD>Set the value of shape.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>v</CODE> - Value to assign to shape.</DL></DD></DL><HR><A NAME="getColor()"><!-- --></A><H3>getColor</H3><PRE>public java.awt.Color <B>getColor</B>()</PRE><DL><DD>Get the value of color.<P><DD><DL><DT><B>Returns:</B><DD>Value of color.</DL></DD></DL><HR><A NAME="setColor(java.awt.Color)"><!-- --></A><H3>setColor</H3><PRE>public void <B>setColor</B>(java.awt.Color v)</PRE><DL><DD>Set the value of color.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>v</CODE> - Value to assign to color.</DL></DD></DL><HR><A NAME="getLabel()"><!-- --></A><H3>getLabel</H3><PRE>public java.lang.String <B>getLabel</B>()</PRE><DL><DD>Get the value of label.<P><DD><DL><DT><B>Returns:</B><DD>Value of label.</DL></DD></DL><HR><A NAME="stringSize(java.awt.FontMetrics)"><!-- --></A><H3>stringSize</H3><PRE>public java.awt.Dimension <B>stringSize</B>(java.awt.FontMetrics f)</PRE><DL><DD>This will return the width and height of the rectangle that the text will fit into.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>f</CODE> - The size info for the Font.<DT><B>Returns:</B><DD>A Dimension containing the size of the text.</DL></DD></DL><HR><A NAME="getLine(int)"><!-- --></A><H3>getLine</H3><PRE>public java.lang.String <B>getLine</B>(int n)</PRE><DL><DD>Returns the text String for the specfied line.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>n</CODE> - The line wanted.<DT><B>Returns:</B><DD>The String corresponding to that line.</DL></DD></DL><HR><A NAME="getCenter()"><!-- --></A><H3>getCenter</H3><PRE>public double <B>getCenter</B>()</PRE><DL><DD>Get the value of center.<P><DD><DL>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -