Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

apollo.gui
Class SelectionSet  view SelectionSet download SelectionSet.java

java.lang.Object
  extended byapollo.gui.SelectionSet
Direct Known Subclasses:
EvidenceSelectionSet

public class SelectionSet
extends java.lang.Object

This is a convienience class for determining and making easily available which sets, transcripts and genes a group of features come from.


Field Summary
(package private)  java.util.Vector features
          features contains only leaf features(descendants of sets)
(package private)  java.util.Vector genes
           
private  java.util.Vector originalFeatures
          Vector of the original selection vector passed in, contains all different types of features.
(package private)  java.util.Vector sets
           
(package private)  java.util.Vector transcripts
           
(package private)  boolean used
           
 
Constructor Summary
SelectionSet(Selection sel)
           
SelectionSet(Selection sel, apollo.gui.genomemap.ViewI v)
           
SelectionSet(java.util.Vector df)
           
 
Method Summary
private  void addSeqFeature(apollo.datamodel.SeqFeatureI sf, java.util.Vector sets)
           
 void dump(java.lang.String desc)
           
private  java.util.Vector findGenes(java.util.Vector tran)
           
private  java.util.Vector findSeqFeatures(java.util.Vector features)
           
private  java.util.Vector findSets(java.util.Vector features)
          Goes through vector of features finding FeatureSets.
private  java.util.Vector findTranscripts(java.util.Vector features)
           
 apollo.datamodel.SeqFeatureI getFeature(int index)
           
 java.util.Vector getFeatures()
           
 apollo.datamodel.Transcript getFirstFullySelectedTranscript()
          Returns the first transcript in the selection that has all of its exons selected, if a Transcript is present that certainly qualifies.
 apollo.datamodel.Gene getGene(int index)
           
 java.util.Vector getGenes()
           
 apollo.datamodel.FeatureSetI getSet(int index)
           
 java.util.Vector getSets()
           
 apollo.datamodel.Transcript getTranscript(int index)
           
 java.util.Vector getTranscripts()
          Return all transcript involved in selection, whether fully or partially selected.
 boolean getUsed()
           
 void init(java.util.Vector feat_vect)
           
 void setUsed(boolean state)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

features

java.util.Vector features
features contains only leaf features(descendants of sets)


sets

java.util.Vector sets

transcripts

java.util.Vector transcripts

genes

java.util.Vector genes

originalFeatures

private java.util.Vector originalFeatures
Vector of the original selection vector passed in, contains all different types of features.


used

boolean used
Constructor Detail

SelectionSet

public SelectionSet(java.util.Vector df)

SelectionSet

public SelectionSet(Selection sel)

SelectionSet

public SelectionSet(Selection sel,
                    apollo.gui.genomemap.ViewI v)
Method Detail

init

public void init(java.util.Vector feat_vect)

getUsed

public boolean getUsed()

setUsed

public void setUsed(boolean state)

getFeatures

public java.util.Vector getFeatures()

getFeature

public apollo.datamodel.SeqFeatureI getFeature(int index)

getSets

public java.util.Vector getSets()

getSet

public apollo.datamodel.FeatureSetI getSet(int index)

getTranscripts

public java.util.Vector getTranscripts()
Return all transcript involved in selection, whether fully or partially selected.


getTranscript

public apollo.datamodel.Transcript getTranscript(int index)

getFirstFullySelectedTranscript

public apollo.datamodel.Transcript getFirstFullySelectedTranscript()
Returns the first transcript in the selection that has all of its exons selected, if a Transcript is present that certainly qualifies. This is not the same as getTranscript(0). The transcripts stored in SelectionSet do not have to be fully selected. So getTranscript(0) may return a multi-exon transcript that has only one of its exons selected. At present we only need the first fully selected trans (for AnnEd.moveExonsToTranscript). If in the future we need more than just this, this can be generalized.


getGenes

public java.util.Vector getGenes()

getGene

public apollo.datamodel.Gene getGene(int index)

findTranscripts

private java.util.Vector findTranscripts(java.util.Vector features)

findSeqFeatures

private java.util.Vector findSeqFeatures(java.util.Vector features)

addSeqFeature

private void addSeqFeature(apollo.datamodel.SeqFeatureI sf,
                           java.util.Vector sets)

findSets

private java.util.Vector findSets(java.util.Vector features)
Goes through vector of features finding FeatureSets. If features is a drawable it gets its model feature. If model feature is a FeatureSet adds it to return vector, if not adds parent, if not already added


findGenes

private java.util.Vector findGenes(java.util.Vector tran)

dump

public void dump(java.lang.String desc)