'STRAP:multiple sequence alignments '

charite.christo.protein
Class BasicResidueSelection

java.lang.Object
  extended by charite.christo.protein.AbstractVisibleIn123
      extended by charite.christo.protein.BasicResidueSelection
All Implemented Interfaces:
Colored, HasImage, HasName, HasPropertyMap, HasRenderer, HasWeakRef, HasProtein, ResidueSelection, VisibleIn123
Direct Known Subclasses:
Distance3DToCursor, Distance3DToHetero

public class BasicResidueSelection
extends AbstractVisibleIn123
implements ResidueSelection, HasName, HasRenderer

A skelleton of an Selection of Residues ResidueSelection.


Field Summary
static int OFFSET_IS_1ST_IDX
           
 
Fields inherited from class charite.christo.protein.AbstractVisibleIn123
WEAK_REF
 
Fields inherited from interface charite.christo.protein.ResidueSelection
NAME_BACKBONE, NAME_CURSOR, NAME_MOUSE_OVER, NAME_STANDARD, NONE
 
Fields inherited from interface charite.christo.HasRenderer
JLIST, STRIKE_THROUGH
 
Fields inherited from interface charite.christo.protein.VisibleIn123
ANYWHERE, ARROW_HEADS, BIT_SHIFT_LINE, HTML, JALVIEW, NO_FLASH, SEQUENCE, STRUCTURE, STYLE_BACKGROUND, STYLE_CIRCLE, STYLE_CURSOR, STYLE_DOTTED, STYLE_HIDDEN, STYLE_IMAGE, STYLE_IMAGE_LUCID, STYLE_LOWER_HALF_BACKGROUND, STYLE_UNDERLINE, STYLE_UPPER_HALF_BACKGROUND
 
Constructor Summary
BasicResidueSelection(int options)
           
BasicResidueSelection(ResidueSelection selection)
           
 
Method Summary
static boolean changeSelectedAA(boolean[] sel, int offset, ResidueSelection s)
           
 java.lang.String getName()
           
 Protein getProtein()
           
 java.lang.Object getRenderer(long options, long[] rendOptions)
           
 void getRGB(int[] rgb)
           
 boolean[] getSelectedAminoacids()
           
 int getSelectedAminoacidsOffset()
           
 java.lang.Object getSharedInstance()
           
static boolean selectRange(int from, int to, ResidueSelection s)
           
static boolean setAminoSelected(boolean onOff, int iA, ResidueSelection s)
           
 void setName(java.lang.String s)
           
 void setProtein(Protein newP)
           
 void setSelectedAminoacids(boolean[] bb, int offset)
          The method body may be kept empty.
 void setSharedInstance(java.lang.Object shared)
           
 java.lang.String toString()
           
 
Methods inherited from class charite.christo.protein.AbstractVisibleIn123
getColor, getImage, getPropertyMap, getStyle, getVisibleWhere, getWeakRef, imageBall, newComboStyle, setColor, setImage, setStyle, setVisibleWhere
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

OFFSET_IS_1ST_IDX

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

BasicResidueSelection

public BasicResidueSelection(ResidueSelection selection)

BasicResidueSelection

public BasicResidueSelection(int options)
Method Detail

setProtein

public void setProtein(Protein newP)
Specified by:
setProtein in interface ResidueSelection

getProtein

public Protein getProtein()
Specified by:
getProtein in interface HasProtein
Specified by:
getProtein in interface ResidueSelection

getSelectedAminoacids

public boolean[] getSelectedAminoacids()
Specified by:
getSelectedAminoacids in interface ResidueSelection
Returns:
true for each selected residue.

getSelectedAminoacidsOffset

public int getSelectedAminoacidsOffset()
Specified by:
getSelectedAminoacidsOffset in interface ResidueSelection
Returns:
A possible offset. For example {true,true} with offset 6 means that that the 6th and 7th residue is selected.

setSelectedAminoacids

public void setSelectedAminoacids(boolean[] bb,
                                  int offset)
Description copied from interface: ResidueSelection
The method body may be kept empty.

Specified by:
setSelectedAminoacids in interface ResidueSelection

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

setName

public void setName(java.lang.String s)

getName

public java.lang.String getName()
Specified by:
getName in interface HasName

getRenderer

public java.lang.Object getRenderer(long options,
                                    long[] rendOptions)
Specified by:
getRenderer in interface HasRenderer

getRGB

public void getRGB(int[] rgb)

selectRange

public static boolean selectRange(int from,
                                  int to,
                                  ResidueSelection s)

changeSelectedAA

public static boolean changeSelectedAA(boolean[] sel,
                                       int offset,
                                       ResidueSelection s)

setAminoSelected

public static boolean setAminoSelected(boolean onOff,
                                       int iA,
                                       ResidueSelection s)

setSharedInstance

public void setSharedInstance(java.lang.Object shared)

getSharedInstance

public java.lang.Object getSharedInstance()

'STRAP:multiple sequence alignments '

'The most important classes are StrapAlign, Protein and StrapEvent.'