|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.awt.Component | +--warthman.network.Node
Class Node
Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT,
CENTER_ALIGNMENT,
LEFT_ALIGNMENT,
RIGHT_ALIGNMENT,
TOP_ALIGNMENT |
Constructor Summary | |
Node()
|
|
Node(int x,
int y)
|
|
Node(java.awt.Point p)
|
Method Summary | |
void |
actorArrive(ActorNodeEvent e)
|
void |
actorDepart(ActorNodeEvent e)
|
void |
addActorNodeListener(ActorNodeListener l)
|
void |
addArrivalAction(ActorNodeEvent a)
Adds the specified action as an action to be performed when this actor arrives at a node. |
void |
addDepartureAction(ActorNodeEvent a)
Adds the specified action as an action to be performed when this actor departs from a node. |
void |
connectPath(Path p)
Connects a Path object to this node. |
boolean |
disconnectPath(Path p)
Disconnects a specified Path object from this node. |
protected void |
fireActorArrive(ActorNodeEvent e)
|
protected void |
fireActorDepart(ActorNodeEvent e)
|
java.util.Vector |
getActors()
|
java.util.Vector |
getPaths()
|
int |
getX()
|
int |
getY()
|
void |
removeActorNodeListener(ActorNodeListener l)
|
void |
removeArrivalAction(ActorNodeEvent a)
Removes the specified action as an action to be performed when this actor arrives at a node. |
void |
removeDepartureAction(ActorNodeEvent a)
Removes the specified action as an action to be performed when this actor departs from a node. |
void |
setActors(java.util.Vector newActors)
|
void |
setPaths(java.util.Vector newPaths)
|
void |
setX(int newX)
|
void |
setY(int newY)
|
Methods inherited from class java.awt.Component |
action,
add,
addComponentListener,
addFocusListener,
addInputMethodListener,
addKeyListener,
addMouseListener,
addMouseMotionListener,
addNotify,
addPropertyChangeListener,
addPropertyChangeListener,
bounds,
checkImage,
checkImage,
coalesceEvents,
contains,
contains,
createImage,
createImage,
deliverEvent,
disable,
disableEvents,
dispatchEvent,
doLayout,
enable,
enable,
enableEvents,
enableInputMethods,
firePropertyChange,
getAlignmentX,
getAlignmentY,
getBackground,
getBounds,
getBounds,
getColorModel,
getComponentAt,
getComponentAt,
getComponentOrientation,
getCursor,
getDropTarget,
getFont,
getFontMetrics,
getForeground,
getGraphics,
getHeight,
getInputContext,
getInputMethodRequests,
getLocale,
getLocation,
getLocation,
getLocationOnScreen,
getMaximumSize,
getMinimumSize,
getName,
getParent,
getPeer,
getPreferredSize,
getSize,
getSize,
getToolkit,
getTreeLock,
getWidth,
gotFocus,
handleEvent,
hasFocus,
hide,
imageUpdate,
inside,
invalidate,
isDisplayable,
isDoubleBuffered,
isEnabled,
isFocusTraversable,
isLightweight,
isOpaque,
isShowing,
isValid,
isVisible,
keyDown,
keyUp,
layout,
list,
list,
list,
list,
list,
locate,
location,
lostFocus,
minimumSize,
mouseDown,
mouseDrag,
mouseEnter,
mouseExit,
mouseMove,
mouseUp,
move,
nextFocus,
paint,
paintAll,
paramString,
postEvent,
preferredSize,
prepareImage,
prepareImage,
print,
printAll,
processComponentEvent,
processEvent,
processFocusEvent,
processInputMethodEvent,
processKeyEvent,
processMouseEvent,
processMouseMotionEvent,
remove,
removeComponentListener,
removeFocusListener,
removeInputMethodListener,
removeKeyListener,
removeMouseListener,
removeMouseMotionListener,
removeNotify,
removePropertyChangeListener,
removePropertyChangeListener,
repaint,
repaint,
repaint,
repaint,
requestFocus,
reshape,
resize,
resize,
setBackground,
setBounds,
setBounds,
setComponentOrientation,
setCursor,
setDropTarget,
setEnabled,
setFont,
setForeground,
setLocale,
setLocation,
setLocation,
setName,
setSize,
setSize,
setVisible,
show,
show,
size,
toString,
transferFocus,
update,
validate |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Constructor Detail |
public Node()
public Node(int x, int y)
public Node(java.awt.Point p)
Method Detail |
public int getX()
public void setX(int newX)
public void setY(int newY)
public int getY()
public void setActors(java.util.Vector newActors)
public java.util.Vector getActors()
public void connectPath(Path p)
p
- the path that's to be connected to this node.
public boolean disconnectPath(Path p)
p
- the Path object to be disconnected.
public void removeActorNodeListener(ActorNodeListener l)
public void addActorNodeListener(ActorNodeListener l)
protected void fireActorArrive(ActorNodeEvent e)
protected void fireActorDepart(ActorNodeEvent e)
public void actorArrive(ActorNodeEvent e)
public void actorDepart(ActorNodeEvent e)
public void setPaths(java.util.Vector newPaths)
public java.util.Vector getPaths()
public void addArrivalAction(ActorNodeEvent a)
a
- the action to be performed.
public void addDepartureAction(ActorNodeEvent a)
a
- the action to be performed.
public void removeArrivalAction(ActorNodeEvent a)
a
- the action to be performed.
public void removeDepartureAction(ActorNodeEvent a)
a
- the action to be performed.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |