public class DataAreaLocation extends java.lang.Object
DataArea
. That is either above or below the alignment
or attached to a certain sequence.Constructor and Description |
---|
DataAreaLocation(DataAreaListType listType)
Creates a new instance of this class specifying locations above or underneath the alignment.
|
DataAreaLocation(java.lang.String sequenceID)
Creates a new instance of this class specifying a location attached to one
sequence of the alignment.
|
Modifier and Type | Method and Description |
---|---|
DataAreaListType |
getListType() |
java.lang.String |
getSequenceID() |
void |
setListType(DataAreaListType listType)
Changes the list type.
|
void |
setSequenceID(java.lang.String sequenceID)
Can be used to update the sequence name, if a sequence was renamed or data area is moved.
|
public DataAreaLocation(DataAreaListType listType)
listType
- specifies if list represents data areas displayed above
or underneath the alignmentjava.lang.IllegalArgumentException
- if DataAreaListType.SEQUENCE
is specified as listType
public DataAreaLocation(java.lang.String sequenceID)
The list type is automatically set to DataAreaListType.SEQUENCE
.
sequenceID
- the unique identifier of the sequence the contained data areas will be attached topublic java.lang.String getSequenceID()
public void setSequenceID(java.lang.String sequenceID)
DataAreaListType.SEQUENCE
if an non-null
ID is specified.sequenceID
- the unique identifier of the associated sequencepublic DataAreaListType getListType()
public void setListType(DataAreaListType listType)
DataAreaListType.SEQUENCE
is
specified, the sequence name is automatically set to null
.listType
- the new list type