Class IntervalLayoutUpdater

  • All Implemented Interfaces:

    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.
    $Revision: 1.1 $ $Date: 2006/01/06 22:35:19 $
    Nick Collier
    • Constructor Detail

      • IntervalLayoutUpdater

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

      • getDoSetLocationForAdded

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

        public boolean getUpdateItemsLocation()
        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.