|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
EditableSequence.java Created: Wed Mar 1 19:39:40 2000
Method Summary | |
Element |
deleteElementAt(int index)
Delete the element at index. |
Element[] |
deleteElementAt(int index,
int length)
Delete the elements starting at index for the specified length |
void |
insertElementAt(Element[] element,
int index)
Inserts the elements at this position. |
void |
insertElementAt(Element element,
int index)
Insert the element at the specified index. |
Element[] |
setElementAt(Element[] element,
int index)
|
Element |
setElementAt(Element element,
int index)
Sets the value of the element at the specified index. |
Methods inherited from interface uk.ac.man.bioinf.sequence.Sequence |
getElementAt, getElementAtAsChar, getLength, getSequenceAsChars, getSequenceAsElements, getSequenceType, getSubSequence |
Methods inherited from interface uk.ac.man.bioinf.sequence.identifier.Identifiable |
getIdentifier |
Methods inherited from interface uk.ac.man.bioinf.sequence.event.SequenceEventProvider |
addSequenceListener, addVetoableSequenceListener, removeSequenceListener, removeVetoableSequenceListener |
Method Detail |
public Element setElementAt(Element element, int index) throws NoSuchSequenceElementException, SequenceVetoException
element
- index
-
NoSuchSequenceElementException
- if the element does not
exist (index greater that length + 1 or less than 1)
SequenceVetoException
- if some listener doesnt like thispublic Element[] setElementAt(Element[] element, int index) throws NoSuchSequenceElementException, SequenceVetoException
NoSuchSequenceElementException
SequenceVetoException
public void insertElementAt(Element element, int index) throws NoSuchSequenceElementException, SequenceVetoException
element
- the element to insertindex
- the index at which to insert
NoSuchSequenceElementException
SequenceVetoException
public void insertElementAt(Element[] element, int index) throws NoSuchSequenceElementException, SequenceVetoException
element
- the elements to insertindex
- the index at which to insert
NoSuchSequenceElementException
- if the element does not
exist, which will be the case if index is less than 1 or greater
than sequence length + 1
SequenceVetoException
public Element deleteElementAt(int index) throws NoSuchSequenceElementException, SequenceVetoException
index
- the index to delete
NoSuchSequenceElementException
- if index is less than 1
or greater than the length of the sequence
SequenceVetoException
public Element[] deleteElementAt(int index, int length) throws NoSuchSequenceElementException, SequenceVetoException
index
- the index to start atlength
- the length to delete
NoSuchSequenceElementException
- if the elements do not all
exist, so if index is less than 1, or index + length is greater
than the length of the sequence
SequenceVetoException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |