apollo.gui.event
Class FeatureSelectionEvent

java.lang.Object
  extended by java.util.EventObject
      extended by apollo.gui.event.FeatureSelectionEvent
All Implemented Interfaces:
java.io.Serializable

public class FeatureSelectionEvent
extends java.util.EventObject

See Also:
Serialized Form

Field Summary
static int FEATURES
           
static int SEQUENCE
           
static int SYNLINK
           
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
FeatureSelectionEvent(java.lang.Object source, FeatureList feats)
           
FeatureSelectionEvent(java.lang.Object source, Selection selected)
           
FeatureSelectionEvent(java.lang.Object source, Selection selected, boolean force_selection)
           
FeatureSelectionEvent(java.lang.Object source, SeqFeatureI feature)
           
FeatureSelectionEvent(java.lang.Object source, java.util.Vector features)
           
FeatureSelectionEvent(java.lang.Object source, java.util.Vector features, int type)
           
 
Method Summary
 boolean forceSelection()
          whether this event requires attention.
 SeqFeatureI getFeature()
          Returns fist feature - rename getFirstFeature
 FeatureList getFeatures()
           
 Selection getSelection()
           
 java.lang.Object getSource()
           
 int getType()
           
 
Methods inherited from class java.util.EventObject
toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

FEATURES

public static final int FEATURES
See Also:
Constant Field Values

SEQUENCE

public static final int SEQUENCE
See Also:
Constant Field Values

SYNLINK

public static final int SYNLINK
See Also:
Constant Field Values
Constructor Detail

FeatureSelectionEvent

public FeatureSelectionEvent(java.lang.Object source,
                             java.util.Vector features,
                             int type)

FeatureSelectionEvent

public FeatureSelectionEvent(java.lang.Object source,
                             FeatureList feats)

FeatureSelectionEvent

public FeatureSelectionEvent(java.lang.Object source,
                             SeqFeatureI feature)

FeatureSelectionEvent

public FeatureSelectionEvent(java.lang.Object source,
                             java.util.Vector features)

FeatureSelectionEvent

public FeatureSelectionEvent(java.lang.Object source,
                             Selection selected)

FeatureSelectionEvent

public FeatureSelectionEvent(java.lang.Object source,
                             Selection selected,
                             boolean force_selection)
Method Detail

getType

public int getType()

getFeatures

public FeatureList getFeatures()

getFeature

public SeqFeatureI getFeature()
Returns fist feature - rename getFirstFeature


getSelection

public Selection getSelection()

getSource

public java.lang.Object getSource()
Overrides:
getSource in class java.util.EventObject

forceSelection

public boolean forceSelection()
whether this event requires attention. some of the i/fs have a checkbox to ignore changes to selection, but if the change to the selection is a delete or a replace then the change must not be ignored