Class TrailContainerManager

  • All Implemented Interfaces:
    adams.gui.visualization.container.NamedContainerManager, Serializable

    public class TrailContainerManager
    extends adams.gui.visualization.container.AbstractContainerManager<TrailContainer>
    implements adams.gui.visualization.container.NamedContainerManager
    Container manager for trails.
    Version:
    $Revision$
    Author:
    fracpete (fracpete at waikato dot ac dot nz)
    See Also:
    Serialized Form
    • Field Summary

      • Fields inherited from class adams.gui.visualization.container.AbstractContainerManager

        m_AllowRemoval, m_DataChangeListeners, m_FilteredList, m_List, m_SearchRegexp, m_SearchString, m_UpdateList, m_Updating
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int indexOf​(String id)
      Returns the index of the first ID or display ID that matches the specified one.
      protected boolean isMatch​(TrailContainer cont, String search, boolean regExp)
      Returns whether the container matches the current search.
      TrailContainer newContainer​(Comparable o)
      Returns a new container containing the given payload.
      • Methods inherited from class adams.gui.visualization.container.AbstractContainerManager

        add, addAll, addDataChangeListener, clear, clearSearch, contains, count, countFiltered, finishUpdate, finishUpdate, get, getAll, getAllowRemoval, getFiltered, getFilteredIndices, indexOf, indexOfFiltered, isFiltered, isFiltered, isUpdating, notifyDataChangeListeners, postAdd, postSet, preAdd, preSet, remove, removeDataChangeListener, search, set, setAllowRemoval, startUpdate, toString, updateSearch, updateSearchOnUpdate
    • Constructor Detail

      • TrailContainerManager

        public TrailContainerManager()
    • Method Detail

      • indexOf

        public int indexOf​(String id)
        Returns the index of the first ID or display ID that matches the specified one.
        Specified by:
        indexOf in interface adams.gui.visualization.container.NamedContainerManager
        Parameters:
        id - the ID/display ID to look for
        Returns:
        the index or -1 if not found
      • newContainer

        public TrailContainer newContainer​(Comparable o)
        Returns a new container containing the given payload.
        Specified by:
        newContainer in class adams.gui.visualization.container.AbstractContainerManager<TrailContainer>
        Parameters:
        o - the payload to encapsulate
        Returns:
        the new container
      • isMatch

        protected boolean isMatch​(TrailContainer cont,
                                  String search,
                                  boolean regExp)
        Returns whether the container matches the current search.
        Specified by:
        isMatch in class adams.gui.visualization.container.AbstractContainerManager<TrailContainer>
        Parameters:
        cont - the container to check
        search - the search string
        regExp - whether to perform regular expression matching