Class AbstractLayoutUpdater

java.lang.Object
repast.simphony.visualization.AbstractLayoutUpdater
All Implemented Interfaces:
LayoutUpdater
Direct Known Subclasses:
AddedRemovedLayoutUpdater, IntervalLayoutUpdater, MovedLayoutUpdater, UpdateLayoutUpdater

public abstract class AbstractLayoutUpdater extends Object implements LayoutUpdater
Abstract base class for LayoutUpdaters.
Version:
$Revision$ $Date$
Author:
Nick Collier
  • Field Details

  • Constructor Details

    • AbstractLayoutUpdater

      public AbstractLayoutUpdater(Layout layout)
      Creates a UpdateLayoutUpdater to manage the updates of the specified layout.
      Parameters:
      layout -
  • Method Details

    • getLayout

      public Layout getLayout()
      Gets the layout whose updates this updater manages.
      Specified by:
      getLayout in interface LayoutUpdater
      Returns:
      the layout whose updates this updater manages.
    • setLayout

      public void setLayout(Layout layout)
      Sets the layout whose updates this updater manages.
      Specified by:
      setLayout in interface LayoutUpdater
      Parameters:
      layout -
    • hasCondition

      protected boolean hasCondition(LayoutUpdater.Condition... conditions)
      Parameters:
      conditions -
      Returns:
      true if the current set of conditions contains one of the specified conditions.
    • addTriggerCondition

      public void addTriggerCondition(LayoutUpdater.Condition condition)
      Adds a trigger condition to the current set. This layout updater will update or not in response to whatever its current condition is.
      Specified by:
      addTriggerCondition in interface LayoutUpdater
      Parameters:
      condition -