apollo.gui.detailviewers.sequencealigner.actions
Class FrameShiftAction

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

public class FrameShiftAction
extends javax.swing.AbstractAction

An Action class for performing a frame shift on a feature NOTE: I think that there might be some kind of limit to the number of frame shifts allowed on a feature.

See Also:
Serialized Form

Nested Class Summary
static class FrameShiftAction.FrameShiftType
           
 
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
FrameShiftAction(java.lang.String name, GuiCurationState curationState, AnnotationEditor annotationEditor, FrameShiftAction.FrameShiftType shiftType)
          Constructor
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
          Performs the insertion
 void setFeature(SeqFeatureI feature)
          Sets what feature the frame shift will be added to
 void setSelectedBasePair(int basepair)
          Sets the location of the frame shift
 void setShiftType(FrameShiftAction.FrameShiftType shiftType)
          Sets the shift type for this action
 
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

FrameShiftAction

public FrameShiftAction(java.lang.String name,
                        GuiCurationState curationState,
                        AnnotationEditor annotationEditor,
                        FrameShiftAction.FrameShiftType shiftType)
Constructor

Parameters:
name - the name of this action
curationState - the curation state
annotationEditor - the annotation editor
plus1 - true if this will perform a +1 frame shift
Method Detail

actionPerformed

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


setFeature

public void setFeature(SeqFeatureI feature)
Sets what feature the frame shift will be added to

Parameters:
feature -

setSelectedBasePair

public void setSelectedBasePair(int basepair)
Sets the location of the frame shift

Parameters:
basepair - genomic coordinates NOTE: Does it only make sense to have a frame shift in an exon?

setShiftType

public void setShiftType(FrameShiftAction.FrameShiftType shiftType)
Sets the shift type for this action

Parameters:
shiftType -