Interface VisibilityContainerManager<T extends AbstractContainer>
-
- Type Parameters:
T
- tye type of container
- All Known Implementing Classes:
InstanceContainerManager
,SequencePlotContainerManager
,SpreadSheetRowContainerManager
,TimeseriesContainerManager
,XYSequenceContainerManager
public interface VisibilityContainerManager<T extends AbstractContainer>
Indicator interface for container managers that manage containers encapsulating visbility information as well.- Version:
- $Revision$
- Author:
- fracpete (fracpete at waikato dot ac dot nz)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description int
countVisible()
Returns the number of visible containers.List<T>
getAllVisible()
Returns (a copy of) all currently stored (visible) containers.T
getVisible(int index)
Returns the nth visible container.int[]
getVisibleIndices()
Returns the indices of all visible containers.boolean
isVisible(int index)
Returns whether the container at the specified position is visible.void
setVisible(int index, boolean visible)
Sets the specified container's visibility.
-
-
-
Method Detail
-
getAllVisible
List<T> getAllVisible()
Returns (a copy of) all currently stored (visible) containers. Those containers have no manager.- Returns:
- all containers
-
getVisibleIndices
int[] getVisibleIndices()
Returns the indices of all visible containers.- Returns:
- all containers
-
isVisible
boolean isVisible(int index)
Returns whether the container at the specified position is visible.- Parameters:
index
- the container's position- Returns:
- true if the container is visible
-
setVisible
void setVisible(int index, boolean visible)
Sets the specified container's visibility.- Parameters:
index
- the index of the containervisible
- if true then the container will be made visible
-
getVisible
T getVisible(int index)
Returns the nth visible container.- Parameters:
index
- the index (relates only to the visible containers!)- Returns:
- the container, null if index out of range
-
countVisible
int countVisible()
Returns the number of visible containers.- Returns:
- the number of visible containers
-
-