RePast
v. 2.0

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.


Method Summary
 void calcSize(SimGraphics g)
           
 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 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.


RePast
v. 2.0

Bug reports and feature requests to RePast