📄 node.html
字号:
<!-- ============ 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="getInstances()"><!-- --></A><H3>getInstances</H3><PRE>public <A HREF="../../../weka/core/Instances.html">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.<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.<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<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.<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.<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.<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.<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.<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.<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.<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.<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.<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.<DD><DL><DT><B>Returns:</B><DD>Value of center.</DL></DD></DL><HR><A NAME="setCenter(double)"><!-- --></A><H3>setCenter</H3><PRE>public void <B>setCenter</B>(double v)</PRE><DL><DD>Set the value of center.<DD><DL><DT><B>Parameters:</B><DD><CODE>v</CODE> - Value to assign to center.</DL></DD></DL><HR><A NAME="adjustCenter(double)"><!-- --></A><H3>adjustCenter</H3><PRE>public void <B>adjustCenter</B>(double v)</PRE><DL><DD>Will increase or decrease the postion of center.<DD><DL><DT><B>Parameters:</B><DD><CODE>v</CODE> - The amount to increase or decrease center by.</DL></DD></DL><HR><A NAME="getTop()"><!-- --></A><H3>getTop</H3><PRE>public double <B>getTop</B>()</PRE><DL><DD>Get the value of top.<DD><DL><DT><B>Returns:</B><DD>Value of top.</DL></DD></DL><HR><A NAME="setTop(double)"><!-- --></A><H3>setTop</H3><PRE>public void <B>setTop</B>(double v)</PRE><DL><DD>Set the value of top.<DD><DL><DT><B>Parameters:</B><DD><CODE>v</CODE> - Value to assign to top.</DL></DD></DL><HR><A NAME="getVisible()"><!-- --></A><H3>getVisible</H3><PRE>public boolean <B>getVisible</B>()</PRE><DL><DD>Get the value of visible.<DD><DL><DT><B>Returns:</B><DD>Value of visible.</DL></DD></DL><HR><A NAME="getRoot()"><!-- --></A><H3>getRoot</H3><PRE>public boolean <B>getRoot</B>()</PRE><DL><DD>Get the value of root.<DD><DL><DT><B>Returns:</B><DD>True if has no parents.</DL></DD></DL><HR><A NAME="setRoot(boolean)"><!-- --></A><H3>setRoot</H3><PRE>public void <B>setRoot</B>(boolean v)</PRE><DL><DD>Set the value of root.<DD><DL><DT><B>Parameters:</B><DD><CODE>v</CODE> - Value to assign to root.</DL></DD></DL><HR><A NAME="getParent(int)"><!-- --></A><H3>getParent</H3><PRE>public <A HREF="../../../weka/gui/treevisualizer/Edge.html">Edge</A> <B>getParent</B>(int i)</PRE><DL><DD>Get the parent edge.<DD><DL><DT><B>Parameters:</B><DD><CODE>i</CODE> - The parent number to get.<DT><B>Returns:</B><DD>The parent edge or NULL if it doesn't exist.</DL></DD></DL><HR><A NAME="setParent(weka.gui.treevisualizer.Edge)"><!-- --></A><H3>setParent</H3><PRE>public void <B>setParent</B>(<A HREF="../../../weka/gui/treevisualizer/Edge.html">Edge</A> v)</PRE><DL><DD>Set the value of parent.<DD><DL><DT><B>Parameters:</B><DD><CODE>v</CODE> - Value to assign to parent.</DL></DD></DL><HR><A NAME="getChild(int)"><!-- --></A><H3>getChild</H3><PRE>public <A HREF="../../../weka/gui/treevisualizer/Edge.html">Edge</A> <B>getChild</B>(int i)</PRE><DL><DD>Get the Edge for the child number 'i'.<DD><DL><DT><B>Parameters:</B><DD><CODE>i</CODE> - The child number to get.<DT><B>Returns:</B><DD>The child Edge or NULL if it doesn't exist.</DL></DD></DL><HR><A NAME="addChild(weka.gui.treevisualizer.Edge)"><!-- --></A><H3>addChild</H3><PRE>public void <B>addChild</B>(<A HREF="../../../weka/gui/treevisualizer/Edge.html">Edge</A> v)</PRE><DL><DD>Set the value of children.<DD><DL><DT><B>Parameters:</B><DD><CODE>v</CODE> - Value to assign to children.</DL></DD></DL><HR><A NAME="getGCount(weka.gui.treevisualizer.Node, int)"><!-- --></A><H3>getGCount</H3><PRE>public static int <B>getGCount</B>(<A HREF="../../../weka/gui/treevisualizer/Node.html">Node</A> r, int n)</PRE><DL><DD>Recursively finds the number of visible groups of siblings there are.<DD><DL><DT><B>Parameters:</B><DD><CODE>r</CODE> - The current Node upto.<DD><CODE>n</CODE> - The current number of groups there are.<DT><B>Returns:</B><DD>The number of groups found so far.</DL></DD></DL><HR><A NAME="getTotalGCount(weka.gui.treevisualizer.Node, int)"><!-- --></A><H3>getTotalGCount</H3><PRE>public static int <B>getTotalGCount</B>(<A HREF="../../../weka/gui/treevisualizer/Node.html">Node</A> r, int n)</PRE><DL><DD>Recursively finds the total number of groups of siblings there are.<DD><DL><DT><B>Parameters:</B><DD><CODE>r</CODE> - The current Node upto.<DD><CODE>n</CODE> - The current number of groups there are.<DT><B>Returns:</B><DD>The number of groups found so far.</DL></DD></DL><HR><A NAME="getCount(weka.gui.treevisualizer.Node, int)"><!-- --></A><H3>getCount</H3><PRE>public static int <B>getCount</B>(<A HREF="../../../weka/gui/treevisualizer/Node.html">Node</A> r, int n)</PRE><DL><DD>Recursively finds the number of visible nodes there are (this may accidentally count some of the invis nodes).<DD><DL><DT><B>Parameters:</B><DD><CODE>r</CODE> - The current Node upto.<DD><CODE>n</CODE> - The current number nodes there are.<DT><B>Returns:</B><DD>The number of nodes found so far.</DL></DD></DL><HR><A NAME="getTotalCount(weka.gui.treevisualizer.Node, int)"><!-- --></A><H3>getTotalCount</H3><PRE>public static int <B>getTotalCount</B>(<A HREF="../../../weka/gui/treevisualizer/Node.html">Node</A> r, int n)</PRE><DL><DD>Recursively finds the total number of nodes there are.<DD><DL><DT><B>Parameters:</B><DD><CODE>r</CODE> - The current Node upto.<DD><CODE>n</CODE> - The current number nodes there are.<DT><B>Returns:</B><DD>The number of nodes found so far.</DL></DD></DL><HR><A NAME="getHeight(weka.gui.treevisualizer.Node, int)"><!-- --></A><H3>getHeight</H3><PRE>public static int <B>getHeight</B>(<A HREF="../../../weka/gui/treevisualizer/Node.html">Node</A> r, int l)</PRE><DL><DD>Recursively finds the number of visible levels there are.<DD><DL><DT><B>Parameters:</B><DD><CODE>r</CODE> - The current Node upto.<DD><CODE>l</CODE> - The curent level.<DT><B>Returns:</B><DD>The max number of levels found so far.</DL></DD></DL><HR><A NAME="getTotalHeight(weka.gui.treevisualizer.Node, int)"><!-- --></A><H3>getTotalHeight</H3><PRE>public static int <B>getTotalHeight</B>(<A HREF="../../../weka/gui/treevisualizer/Node.html">Node</A> r, int l)</PRE><DL><DD>Recursively finds the total number of levels there are.<DD><DL><DT><B>Parameters:</B><DD><CODE>r</CODE> - The current Node upto.<DD><CODE>l</CODE> - The curent level.<DT><B>Returns:</B><DD>The max number of levels found so far.</DL></DD></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/treevisualizer/NamedColor.html"><B>PREV CLASS</B></A> <A HREF="../../../weka/gui/treevisualizer/PlaceNode1.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="Node.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: INNER | 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><!-- =========== END OF NAVBAR =========== --><HR></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -