Package adams.gui.visualization.trail
Class TrailContainerManager
- java.lang.Object
-
- adams.gui.visualization.container.AbstractContainerManager<TrailContainer>
-
- adams.gui.visualization.trail.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
-
-
Constructor Summary
Constructors Constructor Description TrailContainerManager()
-
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
-
-
-
-
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 interfaceadams.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 classadams.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 classadams.gui.visualization.container.AbstractContainerManager<TrailContainer>
- Parameters:
cont
- the container to checksearch
- the search stringregExp
- whether to perform regular expression matching
-
-