apollo.gui.detailviewers.sequencealigner.actions
Class SequenceEditAction

java.lang.Object
  extended by javax.swing.AbstractAction
      extended by apollo.gui.detailviewers.sequencealigner.actions.SequenceEditAction
All Implemented Interfaces:
java.awt.event.ActionListener, java.io.Serializable, java.lang.Cloneable, java.util.EventListener, javax.swing.Action

public class SequenceEditAction
extends javax.swing.AbstractAction

An Action class for creating a single base sequence edit. The types of edits allowed are: SequenceI.INSERTION SequenceI.DELETION SequenceI.SUBSTITUTION SequenceI.CLEAR_EDIT

See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.swing.AbstractAction
changeSupport, enabled
 
Fields inherited from interface javax.swing.Action
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SHORT_DESCRIPTION, SMALL_ICON
 
Constructor Summary
SequenceEditAction(java.lang.String name, GuiCurationState curationState, AnnotationEditor annotationEditor)
          Constructor
SequenceEditAction(java.lang.String name, GuiCurationState curationState, AnnotationEditor annotationEditor, java.lang.String type)
          Constructor
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
          Performs the sequence edit
 void setFeature(SeqFeatureI feature)
          Sets the feature to be edited
 void setParent(javax.swing.JComponent parent)
          Sets the parent component for the dialog box that pops up
 void setSelectedBasePair(int basepair)
          Sets the base pair to be edited
 void setType(java.lang.String type)
          Sets the type of edit which will happen Should be one of: SequenceI.INSERTION SequenceI.DELETION SequenceI.SUBSTITUTION SequenceI.CLEAR_EDIT
 
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SequenceEditAction

public SequenceEditAction(java.lang.String name,
                          GuiCurationState curationState,
                          AnnotationEditor annotationEditor)
Constructor

Parameters:
name - the name of this action
curationState - the curation state
annotationEditor - the annotation editor

SequenceEditAction

public SequenceEditAction(java.lang.String name,
                          GuiCurationState curationState,
                          AnnotationEditor annotationEditor,
                          java.lang.String type)
Constructor

Parameters:
name - the name of this action
curationState - the curation state
annotationEditor - the annotation editor
type - the type of sequence edit this action will perform
Method Detail

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)
Performs the sequence edit


setFeature

public void setFeature(SeqFeatureI feature)
Sets the feature to be edited

Parameters:
feature -

setSelectedBasePair

public void setSelectedBasePair(int basepair)
Sets the base pair to be edited

Parameters:
basepair - NOTE: does this have to be within an exon region of a feature? I don't think so

setType

public void setType(java.lang.String type)
Sets the type of edit which will happen Should be one of: SequenceI.INSERTION SequenceI.DELETION SequenceI.SUBSTITUTION SequenceI.CLEAR_EDIT

Parameters:
type -

setParent

public void setParent(javax.swing.JComponent parent)
Sets the parent component for the dialog box that pops up

Parameters:
parent -