public interface RichLocation extends Location, RichAnnotatable, Comparable
Modifier and Type | Interface and Description |
---|---|
static class |
RichLocation.Strand
This class represents a strand on which a location may lie.
|
static class |
RichLocation.Tools
Some useful tools for working with Locations.
|
Annotatable.AnnotationForwarder
Modifier and Type | Field and Description |
---|---|
static ChangeType |
CIRCULAR |
static RichLocation |
EMPTY_LOCATION
The empty location matches nothing.
|
static ChangeType |
FEATURE |
static ChangeType |
NOTE |
static ChangeType |
RANK |
static ChangeType |
TERM |
empty, full, naturalOrder
ANNOTATION
Modifier and Type | Method and Description |
---|---|
int |
getCircularLength()
Retrieves the circular length of this location.
|
CrossRef |
getCrossRef()
Retrieves the crossref associated with this location.
|
RichFeature |
getFeature()
Retrieves the feature this location is associated with.
|
Position |
getMaxPosition()
Retrieves the end position of this location.
|
Position |
getMinPosition()
Retrieves the start position of this location.
|
int |
getRank()
Retrieves the rank associated with this location.
|
RichLocation.Strand |
getStrand()
Retrieves the strand associated with this location.
|
ComparableTerm |
getTerm()
Retrieves the term associated with this location.
|
void |
setCircularLength(int sourceSeqLength)
Sets the circular length of this location.
|
void |
setCrossRefResolver(CrossReferenceResolver r)
Sets the cross ref resolver to use when retrieving remote symbols.
|
void |
setFeature(RichFeature feature)
Sets the feature this location is associated with.
|
void |
setPositionResolver(PositionResolver p)
Sets the resolver to use when working out actual base coordinates from
fuzzy positions.
|
void |
setRank(int rank)
Sets the rank for this location.
|
void |
setTerm(ComparableTerm term)
Sets the term for this location.
|
void |
sort()
Sorts the member locations of a compound location.
|
blockIterator, contains, contains, equals, getDecorator, getMax, getMin, intersection, isContiguous, newInstance, overlaps, symbols, translate, union
getNoteSet, getRichAnnotation, setNoteSet
getAnnotation
addChangeListener, addChangeListener, isUnchanging, removeChangeListener, removeChangeListener
compareTo
static final ChangeType NOTE
static final ChangeType TERM
static final ChangeType RANK
static final ChangeType CIRCULAR
static final ChangeType FEATURE
static final RichLocation EMPTY_LOCATION
void sort()
RichFeature getFeature()
void setFeature(RichFeature feature) throws ChangeVetoException
feature
- the feature.ChangeVetoException
CrossRef getCrossRef()
ComparableTerm getTerm()
void setTerm(ComparableTerm term) throws ChangeVetoException
term
- the term this location should adopt.ChangeVetoException
- in case of error.RichLocation.Strand getStrand()
int getRank()
void setRank(int rank) throws ChangeVetoException
rank
- the rank this location should adopt.ChangeVetoException
- in case of error.Position getMinPosition()
Position getMaxPosition()
void setPositionResolver(PositionResolver p)
p
- the position resolver to use.int getCircularLength()
void setCircularLength(int sourceSeqLength) throws ChangeVetoException
sourceSeqLength
- the circular length of this locationChangeVetoException
- if it doesn't want to change.void setCrossRefResolver(CrossReferenceResolver r)
r
- the resolver to use.Copyright © 2014 BioJava. All rights reserved.