Class IntervalLayoutUpdater

java.lang.Object
repast.simphony.visualization.AbstractLayoutUpdater
repast.simphony.visualization.IntervalLayoutUpdater
All Implemented Interfaces:
LayoutUpdater

public class IntervalLayoutUpdater extends AbstractLayoutUpdater
A layout updater that will update the layout at some specified interval, or if objects have been added, removed or moved. updateItemsLocation() will return true if the layout has been updated.
Version:
$Revision: 1.1 $ $Date: 2006/01/06 22:35:19 $
Author:
Nick Collier
  • Constructor Details

    • IntervalLayoutUpdater

      public IntervalLayoutUpdater(Layout layout, int interval)
      Creates an IntervalLayoutUpdater to manage the specified layout and update at the specified interval.
      Parameters:
      layout -
      interval -
  • Method Details

    • getDoSetLocationForAdded

      public boolean getDoSetLocationForAdded()
      Returns:
      true if new items should get their location set when they are added to the display, otherwise false.
    • getUpdateItemsLocation

      public boolean getUpdateItemsLocation()
      Returns:
      true if the visual items need to have the location updated during this update cycle, otherwise false.
    • update

      public void update()
      Update the layout. The layout will be updated if the interval has been reached or if the an added, moved, or removed condition has been triggered.