apollo.gui.detailviewers.sequencealigner.actions
Class SetEndAction

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

public class SetEndAction
extends javax.swing.AbstractAction

An action class for setting the start or end of a 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
SetEndAction(java.lang.String name, GuiCurationState curationState, AnnotationEditor annotationEditor, int terminus)
          Constructor
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent arg0)
          Performs the update
 void setFeature(SeqFeatureI feature)
          Sets the feature which will have its start or end updated
 void setSelectedBasePair(int basepair)
          The base which will become the new start or end
 void setTerminus(int terminus)
          Sets which end will be updated
 
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

SetEndAction

public SetEndAction(java.lang.String name,
                    GuiCurationState curationState,
                    AnnotationEditor annotationEditor,
                    int terminus)
Constructor

Parameters:
name - the name of this action
curationState - the curation state
annotationEditor - the annotation editor
terminus - Either DrawableAnnotationConstants.START or DrawableAnnotationConstants.END or DrawableAnnotationConstants.BOTHENDS
Method Detail

actionPerformed

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


setFeature

public void setFeature(SeqFeatureI feature)
Sets the feature which will have its start or end updated

Parameters:
feature -

setSelectedBasePair

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

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

setTerminus

public void setTerminus(int terminus)
Sets which end will be updated

Parameters:
terminus - Either DrawableAnnotationConstants.START or DrawableAnnotationConstants.END or DrawableAnnotationConstants.BOTHENDS