Class MovedLayoutUpdater

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

public class MovedLayoutUpdater extends AbstractLayoutUpdater
Updates the layout whenever an object has been added, removed, or moved.
Version:
$Revision: 1.1 $ $Date: 2006/01/06 22:35:19 $
Author:
Nick Collier
  • Constructor Details

    • MovedLayoutUpdater

      public MovedLayoutUpdater(Layout layout)
      Creates a MovedLayoutUpdater that manages the updates on the specified layout.
      Parameters:
      layout -
  • Method Details

    • getUpdateItemsLocation

      public boolean getUpdateItemsLocation()
      Returns:
      true if the trigger condition is added, removed, moved, otherwise false.
    • getDoSetLocationForAdded

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

      public void update()
      Updates the layout if the trigger condition is removed, added, or moved.