uchicago.src.sim.gui
Class CircularGraphLayout
java.lang.Object
|
+--uchicago.src.sim.gui.AbstractGraphLayout
|
+--uchicago.src.sim.gui.CircularGraphLayout
- All Implemented Interfaces:
- ActionListener, EventListener, GraphLayout
- public class CircularGraphLayout
- extends AbstractGraphLayout
|
Method Summary |
void |
setPad(int p)
Sets the number of pixels to shrink radius by. |
void |
updateLayout()
Updates the layout of this graph by setting the x, y coordinate of
each DrawableNonGridNode in the current list of nodes. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CircularGraphLayout
public CircularGraphLayout(int width,
int height)
CircularGraphLayout
public CircularGraphLayout(List nodes,
int width,
int height)
setPad
public void setPad(int p)
- Sets the number of pixels to shrink radius by. Java draws object from top
left hand corner and this allows objects drawn on the far right to
be visible.
updateLayout
public void updateLayout()
- Description copied from class:
AbstractGraphLayout
- Updates the layout of this graph by setting the x, y coordinate of
each DrawableNonGridNode in the current list of nodes.
- Specified by:
updateLayout in interface GraphLayout- Specified by:
updateLayout in class AbstractGraphLayout
Bug reports and feature requests to RePast