util
Class ResidueSelectionManager

java.lang.Object
  extended by util.ResidueSelectionManager

public class ResidueSelectionManager
extends java.lang.Object


Constructor Summary
ResidueSelectionManager()
           
 
Method Summary
static void addResidueByPosition(int position)
           
static void addToCurrentSelection(FuncResidueImpl newSelection)
          Adds an element to the current selection.
static FuncResidueImpl contains(FuncResidueImpl funcResidue)
           
static boolean contains(int position)
           
static boolean contains(int position, char aa)
           
static void emptyCurrentSelection()
          Clear the current selection
static java.util.Vector<FuncResidueImpl> getCurrentSelection()
           
static S3DetObject getS3detobj()
           
static SequencePainter getSeqPainter()
           
static boolean isEmpty()
          Checks if the selection is empty
static void setCurrentSelection(java.util.Vector<FuncResidueImpl> currentSelection)
           
static void setS3detobj(S3DetObject s3detobj)
           
static void setSeqPainter(SequencePainter seqPainter)
           
static void toggleSelection(FuncResidueImpl newSelection)
          Adds an element to the current selection.
static void updateSeqPainter()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResidueSelectionManager

public ResidueSelectionManager()
Method Detail

getCurrentSelection

public static java.util.Vector<FuncResidueImpl> getCurrentSelection()
Returns:
the currentSelection

emptyCurrentSelection

public static void emptyCurrentSelection()
Clear the current selection


setCurrentSelection

public static void setCurrentSelection(java.util.Vector<FuncResidueImpl> currentSelection)
Parameters:
currentSelection - the currentSelection to set

addToCurrentSelection

public static void addToCurrentSelection(FuncResidueImpl newSelection)
Adds an element to the current selection.

Parameters:
Integer - newSelection

toggleSelection

public static void toggleSelection(FuncResidueImpl newSelection)
Adds an element to the current selection.

Parameters:
Integer - newSelection

getS3detobj

public static S3DetObject getS3detobj()
Returns:
the s3detobj

setS3detobj

public static void setS3detobj(S3DetObject s3detobj)
Parameters:
s3detobj - the s3detobj to set

addResidueByPosition

public static void addResidueByPosition(int position)
Parameters:
position - the position of the sequencein s3detobj

getSeqPainter

public static SequencePainter getSeqPainter()
Returns:
the seqPainter

setSeqPainter

public static void setSeqPainter(SequencePainter seqPainter)
Parameters:
seqPainter - the seqPainter to set

updateSeqPainter

public static void updateSeqPainter()
Parameters:
seqPainter - the seqPainter to set

contains

public static FuncResidueImpl contains(FuncResidueImpl funcResidue)
Parameters:
funcResidue - funcResidue to find

contains

public static boolean contains(int position,
                               char aa)
Parameters:
position - position of the aminoacid to find
aa - aminoacid symbol to find

contains

public static boolean contains(int position)
Parameters:
position - position of the aminoacid to find

isEmpty

public static boolean isEmpty()
Checks if the selection is empty

Returns:
true if the selection is empty, false if not