apollo.editor
Class AnnotationUpdateEvent

java.lang.Object
  extended by java.util.EventObject
      extended by apollo.editor.FeatureChangeEvent
          extended by apollo.editor.AnnotationChangeEvent
              extended by apollo.editor.AnnotationUpdateEvent
All Implemented Interfaces:
UpdateDetailsI, java.io.Serializable

public class AnnotationUpdateEvent
extends AnnotationChangeEvent
implements UpdateDetailsI

See Also:
Serialized Form

Field Summary
 
Fields inherited from class apollo.editor.FeatureChangeEvent
ADD, DELETE, logger, MERGE, parentFeature, REDRAW, REPLACE, SPLIT, SYNC
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
AnnotationUpdateEvent(java.lang.Object source, AnnotatedFeatureI updateFeat, TransactionSubpart subpart)
           
AnnotationUpdateEvent(java.lang.Object source, AnnotatedFeatureI updateFeat, TransactionSubpart subpart, boolean singularEvent)
           
AnnotationUpdateEvent(UpdateTransaction trans)
          New way of doing annotation change events - they are just carriers of transactions.
 
Method Summary
 int getNewSequencingErrorPosition()
           
 Comment getOldComment()
           
 int getOldInt()
           
 SeqFeatureI getOldParent()
           
 RangeI getOldRange()
           
protected  java.lang.String getOperationAsString()
           
 UpdateDetailsI getUpdateDetails()
          generic way to get details of update
 boolean isBooleanUpdate()
           
 boolean isCommentUpdate()
           
 boolean isIntUpdate()
           
 boolean isMove()
          A "move" is when a parent is updated
 boolean isRangeUpdate()
           
 boolean isStringUpdate()
           
 boolean isUpdate()
          Default false - overridden by AnnotationUpdateEvent
 void setOldComment(Comment oldComment)
          For comment deletes
 
Methods inherited from class apollo.editor.AnnotationChangeEvent
addTransaction, getAnnotTop, getChangedAnnot, getChangeTop, getChildChangeEvent, getDeletedFeature, getNumberOfChildren, getOldId, getOldString, getParentFeature, getSubpartRank, isCommentChange, isStringChange, isUndo, setDeletedFeature, setOldId, setOldString, setSubpartRank, toString
 
Methods inherited from class apollo.editor.FeatureChangeEvent
getAddedFeature, getChangedFeature, getOperation, getReplacedFeature, getSource, getSubpart, hasSubpart, isAdd, isCompound, isDelete, isEndOfEditSession, isExonChange, isMerge, isRootAnnotChange, isSplit, isSync, isTranscriptChange, setChangeTop, setParentFeature, setReplacedFeature
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface apollo.editor.UpdateDetailsI
getOldString, getSubpartRank
 

Constructor Detail

AnnotationUpdateEvent

public AnnotationUpdateEvent(UpdateTransaction trans)
New way of doing annotation change events - they are just carriers of transactions. This deals with all the redundancy between annotation change events and transactions.


AnnotationUpdateEvent

public AnnotationUpdateEvent(java.lang.Object source,
                             AnnotatedFeatureI updateFeat,
                             TransactionSubpart subpart)

AnnotationUpdateEvent

public AnnotationUpdateEvent(java.lang.Object source,
                             AnnotatedFeatureI updateFeat,
                             TransactionSubpart subpart,
                             boolean singularEvent)
Method Detail

isUpdate

public boolean isUpdate()
Description copied from class: FeatureChangeEvent
Default false - overridden by AnnotationUpdateEvent

Overrides:
isUpdate in class FeatureChangeEvent

isMove

public boolean isMove()
A "move" is when a parent is updated

Specified by:
isMove in interface UpdateDetailsI
Overrides:
isMove in class FeatureChangeEvent

getOperationAsString

protected java.lang.String getOperationAsString()
Overrides:
getOperationAsString in class FeatureChangeEvent

getUpdateDetails

public UpdateDetailsI getUpdateDetails()
generic way to get details of update

Overrides:
getUpdateDetails in class FeatureChangeEvent

isStringUpdate

public boolean isStringUpdate()
Specified by:
isStringUpdate in interface UpdateDetailsI

getOldParent

public SeqFeatureI getOldParent()
Specified by:
getOldParent in interface UpdateDetailsI

isRangeUpdate

public boolean isRangeUpdate()
Specified by:
isRangeUpdate in interface UpdateDetailsI

getOldRange

public RangeI getOldRange()
Specified by:
getOldRange in interface UpdateDetailsI

getNewSequencingErrorPosition

public int getNewSequencingErrorPosition()
Specified by:
getNewSequencingErrorPosition in interface UpdateDetailsI

getOldInt

public int getOldInt()
Specified by:
getOldInt in interface UpdateDetailsI

isIntUpdate

public boolean isIntUpdate()
Specified by:
isIntUpdate in interface UpdateDetailsI

isBooleanUpdate

public boolean isBooleanUpdate()

setOldComment

public void setOldComment(Comment oldComment)
Description copied from class: AnnotationChangeEvent
For comment deletes

Overrides:
setOldComment in class AnnotationChangeEvent

getOldComment

public Comment getOldComment()
Specified by:
getOldComment in interface UpdateDetailsI
Overrides:
getOldComment in class AnnotationChangeEvent

isCommentUpdate

public boolean isCommentUpdate()
Specified by:
isCommentUpdate in interface UpdateDetailsI