apollo.editor
Class AnnotationCompoundEvent

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

public class AnnotationCompoundEvent
extends AnnotationChangeEvent

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
AnnotationCompoundEvent(CompoundTransaction ct)
          Constructor It defaults the transaction to not undo
 
Method Summary
 void addTransaction(CompoundTransaction trans)
           
 void addTransaction(Transaction trans)
          If compound change event, add trans to compound transaction AnnotationCompoundEvent overrides no-op
 AnnotatedFeatureI getAnnotTop()
          returns the annot top of the first child.
 AnnotationChangeEvent getChildChangeEvent(int i)
          Default is null.
 int getNumberOfChildren()
          If compound event return # of child events, default 0
 boolean isCompound()
          whether event is a compound event - ie contains child transactions/events.
 boolean isEndOfEditSession()
          Returns true.
 boolean isMove()
          Move is a special case of UPDATE - updating parent subpart AnnotationUpdateEvent overrides this
 
Methods inherited from class apollo.editor.AnnotationChangeEvent
getChangedAnnot, getChangeTop, getDeletedFeature, getOldComment, getOldId, getOldString, getParentFeature, getSubpartRank, isCommentChange, isStringChange, isUndo, setDeletedFeature, setOldComment, setOldId, setOldString, setSubpartRank, toString
 
Methods inherited from class apollo.editor.FeatureChangeEvent
getAddedFeature, getChangedFeature, getOperation, getOperationAsString, getReplacedFeature, getSource, getSubpart, getUpdateDetails, hasSubpart, isAdd, isDelete, isExonChange, isMerge, isRootAnnotChange, isSplit, isSync, isTranscriptChange, isUpdate, setChangeTop, setParentFeature, setReplacedFeature
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AnnotationCompoundEvent

public AnnotationCompoundEvent(CompoundTransaction ct)
Constructor It defaults the transaction to not undo

Parameters:
ct - - CompoundTransaction to generate the events from
Method Detail

isCompound

public boolean isCompound()
Description copied from class: FeatureChangeEvent
whether event is a compound event - ie contains child transactions/events. default is false.

Overrides:
isCompound in class FeatureChangeEvent

getNumberOfChildren

public int getNumberOfChildren()
Description copied from class: AnnotationChangeEvent
If compound event return # of child events, default 0

Overrides:
getNumberOfChildren in class AnnotationChangeEvent

addTransaction

public void addTransaction(Transaction trans)
Description copied from class: AnnotationChangeEvent
If compound change event, add trans to compound transaction AnnotationCompoundEvent overrides no-op

Overrides:
addTransaction in class AnnotationChangeEvent

addTransaction

public void addTransaction(CompoundTransaction trans)

getChildChangeEvent

public AnnotationChangeEvent getChildChangeEvent(int i)
Description copied from class: AnnotationChangeEvent
Default is null. If compound event return ith chil event

Overrides:
getChildChangeEvent in class AnnotationChangeEvent

isEndOfEditSession

public boolean isEndOfEditSession()
Returns true. This method should be phased out once compound events and transactions are fully in place - not there yet

Overrides:
isEndOfEditSession in class FeatureChangeEvent

getAnnotTop

public AnnotatedFeatureI getAnnotTop()
returns the annot top of the first child. this bascially assumes all children have same annot top, but what else are ya gonna do here? i think this is probably sufficient

Overrides:
getAnnotTop in class AnnotationChangeEvent

isMove

public boolean isMove()
Description copied from class: FeatureChangeEvent
Move is a special case of UPDATE - updating parent subpart AnnotationUpdateEvent overrides this

Overrides:
isMove in class FeatureChangeEvent