|
BioLegato 0.5.7 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.biolegato.core.data.seqdoc.SeqWrap
public class SeqWrap
Used to wrap sequences; this object is used to give sequences start offsets, so they may be ordered within a SeqDoc structure.
| Constructor Summary | |
|---|---|
SeqWrap(int offset,
Sequence seq)
Creates a new instance of SeqWrap. |
|
| Method Summary | |
|---|---|
void |
addListener(SequenceListener listener)
Adds a listener to the wrapped sequence. |
boolean |
equals(java.lang.Object test)
Tests equality of the inner sequence. |
protected void |
finalize()
Removes the sequence wrapper as a sequence listener. |
java.lang.Object |
getField(java.lang.String key)
Returns the content of a field within the wrapped sequence. |
Sequence |
getSequence()
Retrieves the wrapped sequence object. |
int |
getStart()
Retrieves the start offset for the sequence wrapper object. |
void |
sequenceChanged(Sequence sequence,
java.lang.String key)
Handles changes to the inner sequence. |
void |
setField(java.lang.String key,
java.lang.Object value)
Alters the content of a field within the wrapped sequence. |
void |
setStart(int offset)
Changes the start offset of the sequence. |
Sequence |
subseq(int start)
Extracts a portion of the wrapper's sequence. |
Sequence |
subseq(int start,
int end)
Extracts a portion of the wrapper's sequence. |
| Methods inherited from class java.lang.Object |
|---|
clone, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SeqWrap(int offset,
Sequence seq)
offset - the start offset of the sequence wrapper.seq - the sequence to wrap.| Method Detail |
|---|
public int getStart()
public java.lang.Object getField(java.lang.String key)
key - the key of the field to retrieve.
public void setField(java.lang.String key,
java.lang.Object value)
key - the key of the field to alter.value - the new value of the field.public Sequence subseq(int start)
start - the position to start the extraction.
public Sequence subseq(int start,
int end)
start - the position to start the extraction.end - the position to end the extraction.
public void setStart(int offset)
offset - the new start offset of the sequence.public Sequence getSequence()
public void addListener(SequenceListener listener)
listener - the listener to add.
public void sequenceChanged(Sequence sequence,
java.lang.String key)
sequenceChanged in interface SequenceListenersequence - the sequence modified.key - the key modified.protected void finalize()
finalize in class java.lang.Objectpublic boolean equals(java.lang.Object test)
equals in class java.lang.Objecttest - the object to test for equality.
|
BioLegato 0.5.7 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||