|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectutil.SelectionManager
public class SelectionManager
This manager class handles the selections made by the user.
Field Summary | |
---|---|
static int |
NO_SELECTION
Constant for marking no selection. |
Constructor Summary | |
---|---|
SelectionManager()
|
Method Summary | |
---|---|
static void |
addSequenceByPosition(int position)
|
static void |
addToCurrentSelection(int newSelection)
Adds an element to the current selection. |
static boolean |
contains(int newSelection)
Checks if an element is selected |
static void |
emptyCurrentSelection()
Delete all elements from the current selection. |
static java.util.Vector<java.lang.Integer> |
getCurrentSelection()
|
static java.util.Vector<java.lang.Integer> |
getFullSelection()
Creates a combination vector of positions from SelectionManager and ResidueSelectionManager |
static int |
getLastSelection()
|
static S3DetObject |
getS3detobj()
|
static SequencePainter |
getSeqPainter()
|
static boolean |
isEmpty()
Checks if the selection is empty |
static boolean |
isEnabled()
|
static boolean |
isUpperSelectionOn()
|
static void |
setCurrentSelection(java.util.Vector<java.lang.Integer> currentSelection)
|
static void |
setEnabled(boolean enabled)
|
static void |
setLastSelection(int lastSelection,
boolean centerSelection)
|
static void |
setS3detobj(S3DetObject s3detobj)
|
static void |
setSeqPainter(SequencePainter seqPainter)
|
static void |
setUpperSelectionOn(boolean upperSelectionOn)
|
static void |
toggleSelection(int newSelection,
boolean centerSelection)
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 |
Field Detail |
---|
public static final int NO_SELECTION
Constructor Detail |
---|
public SelectionManager()
Method Detail |
---|
public static boolean isEnabled()
public static void setEnabled(boolean enabled)
public static java.util.Vector<java.lang.Integer> getCurrentSelection()
public static void setCurrentSelection(java.util.Vector<java.lang.Integer> currentSelection)
public static void addToCurrentSelection(int newSelection)
Integer
- newSelectionpublic static void toggleSelection(int newSelection, boolean centerSelection)
Integer
- newSelectionpublic static void emptyCurrentSelection()
public static boolean isUpperSelectionOn()
public static void setUpperSelectionOn(boolean upperSelectionOn)
public static SequencePainter getSeqPainter()
public static void setSeqPainter(SequencePainter seqPainter)
seqPainter
- the seqPainter to setpublic static void updateSeqPainter()
seqPainter
- the seqPainter to setpublic static S3DetObject getS3detobj()
public static void setS3detobj(S3DetObject s3detobj)
s3detobj
- the s3detobj to setpublic static void addSequenceByPosition(int position)
position
- the position of the sequencein s3detobjpublic static boolean contains(int newSelection)
newSelection
- element to find
public static boolean isEmpty()
public static java.util.Vector<java.lang.Integer> getFullSelection()
public static int getLastSelection()
public static void setLastSelection(int lastSelection, boolean centerSelection)
lastSelection
- the lastSelection to set
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |