* a list of chains "pdbid:chainid" to show in the viewer;
* empty means show all
*/
- // TODO make private once showStructures() deals with this
+ // TODO make private once deprecated JalviewJmolBinding.centerViewer removed
protected List<String> chainsToShow;
private boolean hideHiddenRegions;
+ protected List<String> chainNames = new ArrayList<>();
+
/**
* Data bean class to simplify parameterisation in superposeStructures
*/
}
/**
- * Returns a list of chains mapped in this viewer.
- *
- * @return
- */
- public abstract List<String> getChainNames();
-
- /**
* Returns the Jalview panel hosting the structure viewer (if any)
*
* @return
* @param viewPanel
* @return
*/
- protected Map<Object, AtomSpecModel> buildColoursMap(
+ public Map<Object, AtomSpecModel> buildColoursMap(
AlignmentViewPanel viewPanel)
{
FeatureRenderer fr = viewPanel.getFeatureRenderer();
{
if (startPos != -1)
{
- ChimeraCommands.addMapRange(colourMap, lastColour,
+ ChimeraCommands.addAtomSpecRange(colourMap, lastColour,
pdbfnum, startPos,
lastPos, lastChain);
}
// final colour range
if (lastColour != null)
{
- ChimeraCommands.addMapRange(colourMap, lastColour, pdbfnum,
+ ChimeraCommands.addAtomSpecRange(colourMap, lastColour,
+ pdbfnum,
startPos, lastPos, lastChain);
}
// break;
}
return colourMap;
}
+
+ /**
+ * Returns a list of chains mapped in this viewer. Note this list is not
+ * currently scoped per structure.
+ *
+ * @return
+ */
+ public List<String> getChainNames()
+ {
+ return chainNames;
+ }
}