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(DataAreasModel owner,
DataAreaListType listType)
Creates a new instance of this class for lists containing data areas displayed above
or underneath the alignment.
|
DataAreaList(DataAreasModel owner,
DataAreaLocation location)
Creates a new instance of this class representing a list of data areas attached to one
sequence of the alignment.
|
DataAreaList(DataAreasModel owner,
java.lang.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. |
double |
getMaxLengthAfterEnd()
Returns maximum space right of the alignment end that is needed by any currently visible data area
in this list.
|
double |
getMaxLengthBeforeStart()
Returns maximum space left of the alignment start that is needed by any currently visible data area
in this list.
|
DataAreasModel |
getOwner() |
int |
getVisibleHeight()
Calculates the sum of the heights of all visible data areas contained in this list.
|
java.util.Collection<DataArea> |
setAllVisible(boolean visible)
Fades all elements in this list in or out.
|
java.util.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, toArraypublic static final int INITIAL_LIST_SIZE
public DataAreaList(DataAreasModel owner, DataAreaListType listType)
owner - the parent element that will contain this listlistType - specifies if list represents data areas displayed above
or underneath the alignmentjava.lang.IllegalArgumentException - if DataAreaListType.SEQUENCE is specified as listTypepublic DataAreaList(DataAreasModel owner, java.lang.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(DataAreasModel owner, DataAreaLocation location)
owner - the parent element that will contain this listlocation - the location this list will have in the alignment areapublic DataAreasModel getOwner()
public DataAreaLocation getLocation()
AlignmentArea.public java.util.Collection<DataArea> setAllVisible(boolean visible)
visible - Specify true here, if you want the elements to be displayed, false otherwise.DataAreasModel.setSequenceDataAreasVisible(boolean)public java.util.Iterator<DataArea> visibleIterator()
DataAreaVisibleIteratorpublic int getVisibleHeight()
public double getMaxLengthBeforeStart()
public double getMaxLengthAfterEnd()