?? nodeitem.html
字號:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN"><!--NewPage--><HTML><HEAD><!-- Generated by javadoc on Tue Nov 30 14:11:21 MST 2004 --><TITLE>Swarm 2.2 Reference Guide: Interface NodeItem</TITLE><LINK REL ="stylesheet" TYPE="text/css" HREF="../../stylesheet.css" TITLE="Style"></HEAD><BODY BGCOLOR="white"><!-- ========== START OF NAVBAR ========== --><A NAME="navbar_top"><!-- --></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0"><TR><TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_top_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 ID="NavBarFont1"><B>Overview</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT ID="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 ID="NavBarFont1"><B>Tree</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../deprecated-list.html"><FONT ID="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../index-files/index-1.html"><FONT ID="NavBarFont1"><B>Index</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../help-doc.html"><FONT ID="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="../../swarm/gui/LinkItemS.html"><B>PREV CLASS</B></A> <A HREF="../../swarm/gui/NodeItemC.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="NodeItem.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: INNER | FIELD | CONSTR | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: FIELD | CONSTR | <A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><!-- =========== END OF NAVBAR =========== --><HR><!-- ======== START OF CLASS DATA ======== --><H2><FONT SIZE="-1">swarm.gui</FONT><BR>Interface NodeItem</H2><DL><DT><B>All Known Subinterfaces:</B> <DD><A HREF="../../swarm/gui/OvalNodeItem.html">OvalNodeItem</A>, <A HREF="../../swarm/gui/RectangleNodeItem.html">RectangleNodeItem</A></DD></DL><DL><DT><B>All Known Implementing Classes:</B> <DD><A HREF="../../swarm/gui/NodeItemImpl.html">NodeItemImpl</A>, <A HREF="../../swarm/gui/OvalNodeItemImpl.html">OvalNodeItemImpl</A>, <A HREF="../../swarm/gui/RectangleNodeItemImpl.html">RectangleNodeItemImpl</A></DD></DL><HR><DL><DT>public interface <B>NodeItem</B><DT>extends <A HREF="../../swarm/gui/CompositeItem.html">CompositeItem</A>, <A HREF="../../swarm/gui/CompositeItemS.html">CompositeItemS</A></DL><P><strong> A class for displaying a node on a Canvas.</strong>.A class for displaying a node on a Canvas. A NodeItem has a position, a font, color, border color and width.<P><HR><P><!-- ======== INNER CLASS SUMMARY ======== --><!-- =========== FIELD SUMMARY =========== --><!-- ======== CONSTRUCTOR SUMMARY ======== --><!-- ========== METHOD SUMMARY =========== --><A NAME="method_summary"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=2><FONT SIZE="+2"><B>Method Summary</B></FONT></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="../../swarm/gui/NodeItem.html#createPaddedText()">createPaddedText</A></B>()</CODE><BR> Create the space for the text for the node.</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="../../swarm/gui/NodeItem.html#createText()">createText</A></B>()</CODE><BR> Create the text for the node.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> int</CODE></FONT></TD><TD><CODE><B><A HREF="../../swarm/gui/NodeItem.html#getX()">getX</A></B>()</CODE><BR> Get the x position of the node on the canvas.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> int</CODE></FONT></TD><TD><CODE><B><A HREF="../../swarm/gui/NodeItem.html#getY()">getY</A></B>()</CODE><BR> Get the y position of the node on the canvas.</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="../../swarm/gui/NodeItem.html#resetString(java.lang.String)">resetString</A></B>(java.lang.String string)</CODE><BR> Change the label on the string after the node is created.</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="../../swarm/gui/NodeItem.html#setBorderColor(java.lang.String)">setBorderColor</A></B>(java.lang.String aColor)</CODE><BR> Set the border color of the node.</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="../../swarm/gui/NodeItem.html#setBorderWidth(int)">setBorderWidth</A></B>(int aVal)</CODE><BR> Set the width of the border.</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="../../swarm/gui/NodeItem.html#setColor(java.lang.String)">setColor</A></B>(java.lang.String aColor)</CODE><BR> Set the color of the node.</TD></TR></TABLE> <A NAME="methods_inherited_from_class_swarm.gui.CompositeItem"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from interface swarm.gui.<A HREF="../../swarm/gui/CompositeItem.html">CompositeItem</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../swarm/gui/CompositeItem.html#moveX$Y(int, int)">moveX$Y</A></CODE></TD></TR></TABLE> <A NAME="methods_inherited_from_class_swarm.gui.CanvasAbstractItem"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from interface swarm.gui.<A HREF="../../swarm/gui/CanvasAbstractItem.html">CanvasAbstractItem</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../swarm/gui/CanvasAbstractItem.html#clicked()">clicked</A>, <A HREF="../../swarm/gui/CanvasAbstractItem.html#getCanvas()">getCanvas</A>, <A HREF="../../swarm/gui/CanvasAbstractItem.html#initiateMoveX$Y(int, int)">initiateMoveX$Y</A>, <A HREF="../../swarm/gui/CanvasAbstractItem.html#setClickSel(swarm.Selector)">setClickSel</A>, <A HREF="../../swarm/gui/CanvasAbstractItem.html#setMoveSel(swarm.Selector)">setMoveSel</A>, <A HREF="../../swarm/gui/CanvasAbstractItem.html#setPostMoveSel(swarm.Selector)">setPostMoveSel</A>, <A HREF="../../swarm/gui/CanvasAbstractItem.html#setTargetId(java.lang.Object)">setTargetId</A></CODE></TD></TR></TABLE> <A NAME="methods_inherited_from_class_swarm.defobj.Drop"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from interface swarm.defobj.<A HREF="../../swarm/defobj/Drop.html">Drop</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor">
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -