Package org.jmol.modelset
Class Chain
- java.lang.Object
-
- org.jmol.modelset.Chain
-
-
Field Summary
Fields Modifier and Type Field Description intchainIDchainID is either the integer form of a single character or a pointer into a map held in Viewer that allows retrieval of a longer stringintchainNochainNo is for information purposes only; retrieved by {atoms}.chainNointgroupCountGroup[]groupsGroups form the essence of what a Chain is.ModelmodelintselectedGroupCountCalculated just prior to coloring by group so that the range is appropriate for each chain.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) voidcalcSelectedGroupsCount(BS bsSelected)prior to coloring by group, we need the chain count per chain that is selected(package private) voidfixIndices(int atomsDeleted, BS bsDeleted)java.lang.StringgetIDStr()voidsetAtomBits(BS bs)voidsetAtomBitsAndClear(BS bs, BS bsOut)
-
-
-
Field Detail
-
model
public Model model
-
chainID
public int chainID
chainID is either the integer form of a single character or a pointer into a map held in Viewer that allows retrieval of a longer string
-
chainNo
public int chainNo
chainNo is for information purposes only; retrieved by {atoms}.chainNo
-
groups
public Group[] groups
Groups form the essence of what a Chain is. This number will be 0 if there is no chain designation in the PDB or CIF file or when the file is not of a type that would have chain designations.
-
groupCount
public int groupCount
-
selectedGroupCount
public int selectedGroupCount
Calculated just prior to coloring by group so that the range is appropriate for each chain.
-
-
Constructor Detail
-
Chain
Chain(Model model, int chainID, int chainNo)
-
-
Method Detail
-
getIDStr
public java.lang.String getIDStr()
- Returns:
- actual string form of the chain identifier
-
calcSelectedGroupsCount
void calcSelectedGroupsCount(BS bsSelected)
prior to coloring by group, we need the chain count per chain that is selected- Parameters:
bsSelected-
-
fixIndices
void fixIndices(int atomsDeleted, BS bsDeleted)
-
setAtomBits
public void setAtomBits(BS bs)
- Specified by:
setAtomBitsin interfaceStructure
-
setAtomBitsAndClear
public void setAtomBitsAndClear(BS bs, BS bsOut)
- Specified by:
setAtomBitsAndClearin interfaceStructure
-
-