import java.util.ArrayList;
import java.util.Arrays;
import java.util.BitSet;
+import java.util.Collections;
import java.util.HashMap;
import java.util.LinkedHashMap;
import java.util.List;
{
for (int s : cs.getSelected())
{
- if (hiddenCols == null)
- {
- matched.set(s);
- }
- else
- {
- matched.set(hiddenCols.visibleToAbsoluteColumn(s));
- }
+ matched.set(s);
}
}
else
lastChain = chain;
}
// final colour range
- if (lastColour != null)
+ if (lastColour != null && startPos!=-1)
{
addAtomSpecRange(colourMap, lastColour, modelId, startPos,
lastPos, lastChain);
return f;
}
-
/**
* Use restoreSession when you want to restore a previously saved sesssion to
* the running viewer instance.
public void restoreSession(String absolutePath)
{
String prefix = getViewerType().toString();
- try {
+ try
+ {
StructureCommandI cmd = commandGenerator.restoreSession(absolutePath);
if (cmd != null)
{
return 0;
}
+
+ /**
+ * list the ligands available for display/hiding in the current view
+ *
+ * @return HETATM CODE:Molecule name
+ */
+ public Map<String, String> getHetatmNames()
+ {
+ return Collections.EMPTY_MAP;
+ }
+
+ /**
+ * Generates and executes a command to show the given hetatm types as CPK
+ *
+ * @param toShow
+ * - one or more of strings from getHetatmNames
+ */
+ public void showHetatms(List<String> toShow)
+ {
+ executeCommands(commandGenerator.showHetatms(toShow), false,
+ "Adjusting hetatm visibility");
+ }
+
}