uchicago.src.sim.gui
Interface DrawableNonGridNode

All Superinterfaces:
NonGridDrawable
All Known Implementing Classes:
DefaultDrawableNode, OvalNode, RectNode

public interface DrawableNonGridNode
extends NonGridDrawable

Interface for a drawable 2 dimensional "node." This does not implement the Node interface so that network models can be visualized without using RePast's Node / Edge architecture.

Nodes to be displayed in a Network2DDisplay should implement this interface.

Version:
$Revision: 1.9 $ $Date: 2004/11/03 19:50:59 $
Author:
Nick Collier

Method Summary
 void calcSize(SimGraphics g)
           
 java.util.ArrayList getOutEdges()
          Gets the list of out-going edges from this node.
 void setX(double x)
          Sets the x coordinate for this node.
 void setY(double y)
          Sets the y coordinate for this node.
 
Methods inherited from interface uchicago.src.sim.gui.NonGridDrawable
contains, draw, getHeight, getWidth, getX, getY
 

Method Detail

getOutEdges

public java.util.ArrayList getOutEdges()
Gets the list of out-going edges from this node.


calcSize

public void calcSize(SimGraphics g)

setX

public void setX(double x)
Sets the x coordinate for this node. Used by GraphLayouts.


setY

public void setY(double y)
Sets the y coordinate for this node. Used by GraphLayouts.