apollo.gui.detailviewers.sequencealigner.actions
Class SetTranslationStartAction

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

public class SetTranslationStartAction
extends javax.swing.AbstractAction

An Action class for setting a translation start NOTE: I'm not really sure what this actually does. What is a translation start? and how does it relate to the feature?

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
SetTranslationStartAction(java.lang.String name, GuiCurationState curationState, AnnotationEditor annotationEditor)
          Constructor
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
          Performs the update
 void setFeature(SeqFeatureI feature)
          Sets the Feature which will be affected
 void setSelectedBasePair(int basepair)
          The base which will become the new translation start
 
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

SetTranslationStartAction

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

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

actionPerformed

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


setFeature

public void setFeature(SeqFeatureI feature)
Sets the Feature which will be affected

Parameters:
feature - should be of type apollo.datamodel.ExonI

setSelectedBasePair

public void setSelectedBasePair(int basepair)
The base which will become the new translation start

Parameters:
basepair - NOTE should be within the exon region of the feature.