Package repast.simphony.visualization
Class AddedRemovedLayoutUpdater
java.lang.Object
repast.simphony.visualization.AbstractLayoutUpdater
repast.simphony.visualization.AddedRemovedLayoutUpdater
- All Implemented Interfaces:
LayoutUpdater
Updates the layout whenever an object has been added or removed, but NOT when they have been
moved.
- Version:
- $Revision: 1.1 $ $Date: 2006/01/06 22:35:19 $
- Author:
- Nick Collier
-
Nested Class Summary
Nested classes/interfaces inherited from interface repast.simphony.visualization.LayoutUpdater
LayoutUpdater.Condition
-
Field Summary
Fields inherited from class repast.simphony.visualization.AbstractLayoutUpdater
conditions, layout
-
Constructor Summary
ConstructorDescriptionAddedRemovedLayoutUpdater
(Layout layout) Creates an AddedRemovedLayoutUpdater that manages the updates on the specified layout. -
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
void
update()
Updates the layout if the trigger condition is removed or added.Methods inherited from class repast.simphony.visualization.AbstractLayoutUpdater
addTriggerCondition, getLayout, hasCondition, setLayout
-
Constructor Details
-
AddedRemovedLayoutUpdater
Creates an AddedRemovedLayoutUpdater that manages the updates on the specified layout.- Parameters:
layout
-
-
-
Method Details
-
getUpdateItemsLocation
public boolean getUpdateItemsLocation()- Returns:
- true if the trigger condition is removed or added, 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 or added.
-