Package repast.simphony.visualization
Class AbstractLayoutUpdater
java.lang.Object
repast.simphony.visualization.AbstractLayoutUpdater
- All Implemented Interfaces:
LayoutUpdater
- Direct Known Subclasses:
AddedRemovedLayoutUpdater
,IntervalLayoutUpdater
,MovedLayoutUpdater
,UpdateLayoutUpdater
Abstract base class for LayoutUpdaters.
- Version:
- $Revision$ $Date$
- Author:
- Nick Collier
-
Nested Class Summary
Nested classes/interfaces inherited from interface repast.simphony.visualization.LayoutUpdater
LayoutUpdater.Condition
-
Field Summary
-
Constructor Summary
ConstructorDescriptionAbstractLayoutUpdater
(Layout layout) Creates a UpdateLayoutUpdater to manage the updates of the specified layout. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addTriggerCondition
(LayoutUpdater.Condition condition) Adds a trigger condition to the current set.Gets the layout whose updates this updater manages.protected boolean
hasCondition
(LayoutUpdater.Condition... conditions) void
Sets the layout whose updates this updater manages.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface repast.simphony.visualization.LayoutUpdater
getDoSetLocationForAdded, getUpdateItemsLocation, update
-
Field Details
-
layout
-
conditions
-
-
Constructor Details
-
AbstractLayoutUpdater
Creates a UpdateLayoutUpdater to manage the updates of the specified layout.- Parameters:
layout
-
-
-
Method Details
-
getLayout
Gets the layout whose updates this updater manages.- Specified by:
getLayout
in interfaceLayoutUpdater
- Returns:
- the layout whose updates this updater manages.
-
setLayout
Sets the layout whose updates this updater manages.- Specified by:
setLayout
in interfaceLayoutUpdater
- Parameters:
layout
-
-
hasCondition
- Parameters:
conditions
-- Returns:
- true if the current set of conditions contains one of the specified conditions.
-
addTriggerCondition
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 interfaceLayoutUpdater
- Parameters:
condition
-
-