org.eclipse.january.dataset

## Class ShapeChangeChecker

- java.lang.Object
- - org.eclipse.january.dataset.ShapeChangeChecker

- All Implemented Interfaces:
    IDatasetChangeChecker

      public class ShapeChangeChecker
      extends Object
      implements IDatasetChangeChecker

  Checks whether shape has changed between waits. Useful for where datasets are being extended. Note, `LazyDynamicDataset` already alerts its listeners when its shape is resized

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `ShapeChangeChecker()`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `boolean` | `check()` Check for any change.
    `void` | `setDataset(ILazyDataset dataset)` Set dataset to be checked for signs of change.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### ShapeChangeChecker

          public ShapeChangeChecker()

  - ### Method Detail

    - #### setDataset

          public void setDataset(ILazyDataset dataset)

      Description copied from interface: `IDatasetChangeChecker`
      Set dataset to be checked for signs of change. Do any state initialization in here.
      Specified by:
        `setDataset` in interface `IDatasetChangeChecker`
      Parameters:
        `dataset` - input

    - #### check

          public boolean check()

      Description copied from interface: `IDatasetChangeChecker`
      Check for any change. Also update state information.
      Specified by:
        `check` in interface `IDatasetChangeChecker`
      Returns:
        true if possible change may have occurred

Copyright © 2014–2022 Eclipse Foundation. All rights reserved.