|
Nodenet Problem Set Javadocs | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
NodeNetElement is an interface implemented by any and all Nodes and channels. It defines the basic methods any element must have.
| Method Summary | |
void |
configure()
Display a configuratin dialog to the user and record changes made to the configuration via this dialog. |
boolean |
contains(int x,
int y)
Determine if this element contains the specified point. |
boolean |
contains(java.awt.Point p)
Determine if this element contains the specified point. |
void |
destroy()
Permanantly release all resources held by this element, and allow it's thread to run to completion. |
java.lang.String |
getName()
Get the name of this instance. |
boolean |
isDestroyed()
Test to see if this element has been destroyed. |
boolean |
isEnabled()
Determine if this element is enabled. |
boolean |
isSelected()
Determine the selection stae of this element. |
void |
notifyOfDestruction(NodeNetElement nne)
Indicate that another element referenced by this object is being destroyed, and references to the specified element should be dropped. |
void |
paint(java.awt.Graphics g)
Paint ourself to a graphics context. |
void |
setEnabled(boolean b)
Set the enabled property. |
void |
setName(java.lang.String name)
Set the name of this instance. |
void |
setSelected(boolean b)
Notify this object that it should render itself as selected or unselected. |
void |
start()
begin exhibiting the behavior of this element This method is called when a simulation is started. |
void |
stop()
Stop exhibiting the behavior of this element. |
| Methods inherited from interface java.lang.Runnable |
run |
| Method Detail |
public void paint(java.awt.Graphics g)
g - The graphics context on which to render ourselfpublic void setSelected(boolean b)
b - the new selection statepublic boolean isSelected()
public void setEnabled(boolean b)
b - the new state of the enabled propertypublic boolean isEnabled()
setEnabled(boolean)public boolean contains(java.awt.Point p)
p - the point to test
public boolean contains(int x,
int y)
x - the x coordinate of the point to testy - the y coordinate of the point to test
public void configure()
public void setName(java.lang.String name)
name - The name to use for this element.public java.lang.String getName()
setName(String)public void start()
public void stop()
public void destroy()
public boolean isDestroyed()
public void notifyOfDestruction(NodeNetElement nne)
nne - the element that is being destroyed
|
Nodenet Problem Set Javadocs | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||