charite.christo.protein
Class BasicResidueSelection
java.lang.Object
charite.christo.protein.AbstractVisibleIn123
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
.
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 |
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 |
OFFSET_IS_1ST_IDX
public static final int OFFSET_IS_1ST_IDX
- See Also:
- Constant Field Values
BasicResidueSelection
public BasicResidueSelection(ResidueSelection selection)
BasicResidueSelection
public BasicResidueSelection(int options)
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()
'The most important classes are StrapAlign, Protein and StrapEvent.'