public class DataAreaList extends DataAreaChangeEventList
DataArea
that are displayed at a specified position in an AlignmentArea
.
The oder of the list determines the display order, where the first element of the list is displayed
top most.Modifier and Type | Field and Description |
---|---|
static int |
INITIAL_LIST_SIZE |
Constructor and Description |
---|
DataAreaList(DataAreaModel owner,
DataAreaListType listType)
Creates a new instance of this class for lists containing data areas displayed above
or underneath the alignment.
|
DataAreaList(DataAreaModel owner,
DataAreaLocation location)
Creates a new instance of this class representing a list of data areas attached to one
sequence of the alignment.
|
DataAreaList(DataAreaModel owner,
String sequenceID)
Creates a new instance of this class representing a list of data areas attached to one
sequence of the alignment.
|
Modifier and Type | Method and Description |
---|---|
DataAreaLocation |
getLocation()
Returns the location the elements in this list have in the containing
AlignmentArea . |
int |
getMaxLengthAfterEnd()
Returns maximum space right of the alignment end that is needed by any currently visible data area
in this list.
|
int |
getMaxLengthBeforeStart()
Returns maximum space left of the alignment start that is needed by any currently visible data area
in this list.
|
DataAreaModel |
getOwner() |
int |
getVisibleHeight()
Calculates the sum of the heights of all visible data areas contained in this list.
|
Collection<DataArea> |
setAllVisible(boolean visible)
Fades all elements in this list in or out.
|
Iterator<DataArea> |
visibleIterator()
Returns an iterator that only iterates over the visible data areas.
|
add, add, addAll, addAll, clear, contains, containsAll, get, getDataAreaList, getUnderlyingList, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, retainAll, set, size, subList, toArray, toArray
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
equals, hashCode, replaceAll, sort, spliterator
parallelStream, removeIf, stream
public static final int INITIAL_LIST_SIZE
public DataAreaList(DataAreaModel owner, DataAreaListType listType)
owner
- the parent element that will contain this listlistType
- specifies if list represents data areas displayed above
or underneath the alignmentIllegalArgumentException
- if DataAreaListType.SEQUENCE
is specified as listType
public DataAreaList(DataAreaModel owner, String sequenceID)
The list type is automatically set to DataAreaListType.SEQUENCE
.
owner
- the parent element that will contain this listsequenceID
- the unique identifier of the sequence the contained data areas will be attached topublic DataAreaList(DataAreaModel owner, DataAreaLocation location)
owner
- the parent element that will contain this listlocation
- the location this list will have in the alignment areapublic DataAreaModel getOwner()
public DataAreaLocation getLocation()
AlignmentArea
.public Collection<DataArea> setAllVisible(boolean visible)
visible
- Specify true
here, if you want the elements to be displayed, false
otherwise.DataAreaModel.setSequenceDataAreasVisible(boolean)
public Iterator<DataArea> visibleIterator()
DataAreaVisibleIterator
public int getVisibleHeight()
public int getMaxLengthBeforeStart()
public int getMaxLengthAfterEnd()