|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--uk.ac.man.bioinf.sequence.AbstractSequence
|
+--uk.ac.man.bioinf.sequence.AbstractMutableSequence
|
+--uk.ac.man.bioinf.sequence.AbstractEditableSequence
AbstractEditableSequence.java This class provides trivial implementations of all of those methods which can be defined in terms of the others of the EditableSequence interface, and also ensures that the event handling occurs correctly Created: Fri Mar 3 12:11:49 2000
| Constructor Summary | |
AbstractEditableSequence(SequenceType type)
|
|
| 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 |
protected abstract Element |
deleteElementAtQuietly(int index)
Do the actual deletion but dont do any event signalling. |
void |
insertElementAt(Element[] elem,
int index)
Provides a trivial implementation of this method by calling multiple single insert methods. |
void |
insertElementAt(Element elem,
int index)
Insert the element at the specified index. |
protected abstract void |
insertElementAtQuietly(Element elem,
int index)
|
Element[] |
setElementAt(Element[] elem,
int index)
Provides a simple implementation of this method by iterating through the element array, and calling the super class method. |
Element |
setElementAt(Element elem,
int index)
Sets the value of the element at the specified index. |
protected abstract Element |
setElementAtQuietly(Element elem,
int index)
|
| Methods inherited from class uk.ac.man.bioinf.sequence.AbstractMutableSequence |
addSequenceListener, addVetoableSequenceListener, fireSequenceEvent, fireVetoableSequenceEvent, hasListeners, removeSequenceListener, removeVetoableSequenceListener |
| Methods inherited from class uk.ac.man.bioinf.sequence.AbstractSequence |
checkRange, checkSequenceType, checkSequenceType, getElementAtAsChar, getSequenceAsChars, getSequenceIndexException, getSequenceType, getSequenceTypeException, getSubSequence |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| 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 |
| Constructor Detail |
public AbstractEditableSequence(SequenceType type)
| Method Detail |
protected abstract Element setElementAtQuietly(Element elem,
int index)
public Element setElementAt(Element elem,
int index)
throws SequenceVetoException
EditableSequence
setElementAt in interface EditableSequenceelem - index -
SequenceVetoException - if some listener doesnt like this
public Element[] setElementAt(Element[] elem,
int index)
throws SequenceVetoException
setElementAt in interface EditableSequenceelem - the elements to setindex - the index at which to start
SequenceVetoException
protected abstract void insertElementAtQuietly(Element elem,
int index)
public void insertElementAt(Element elem,
int index)
throws SequenceVetoException
EditableSequence
insertElementAt in interface EditableSequenceelem - the element to insertindex - the index at which to insert
SequenceVetoException
public void insertElementAt(Element[] elem,
int index)
throws SequenceVetoException
insertElementAt in interface EditableSequenceelem - index -
SequenceVetoExceptionprotected abstract Element deleteElementAtQuietly(int index)
index - the element to delete
public Element deleteElementAt(int index)
throws SequenceVetoException
EditableSequence
deleteElementAt in interface EditableSequenceindex - the index to delete
SequenceVetoException
public Element[] deleteElementAt(int index,
int length)
throws SequenceVetoException
EditableSequence
deleteElementAt in interface EditableSequenceindex - the index to start atlength - the length to delete
SequenceVetoException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||