import jalview.structure.StructureCommandsBase;
import jalview.structure.StructureMapping;
import jalview.structure.StructureSelectionManager;
-import jalview.structure.StructureCommandsI.AtomSpecType;
import jalview.util.Comparison;
import jalview.util.Platform;
.append("|");
sb.append(getAtomSpec(refAtoms, AtomSpecType.RESIDUE_ONLY))
.append(getCommandSeparator()).append("cartoons");
+ return Arrays.asList(new StructureCommand(sb.toString()));
+ }
+ @Override
+ public List<StructureCommandI> centerViewOn(List<AtomSpecModel> residues)
+ {
+ StringBuilder sb = new StringBuilder(64);
+ sb.append("center ");
+ for (AtomSpecModel ranges : residues)
+ {
+ if (sb.length() > 9)
+ {
+ sb.append(" or ");
+ }
+ sb.append(getAtomSpec(ranges, AtomSpecType.RESIDUE_ONLY));
+ }
return Arrays.asList(new StructureCommand(sb.toString()));
}
*/
package jalview.ext.rbvi.chimera;
-import java.util.Locale;
-
import java.awt.Color;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
+import java.util.Locale;
import java.util.Map;
import jalview.structure.AtomSpecModel;
import jalview.structure.StructureCommand;
import jalview.structure.StructureCommandI;
import jalview.structure.StructureCommandsBase;
-import jalview.structure.StructureCommandsI.AtomSpecType;
import jalview.util.ColorUtils;
/**
return new StructureCommand("list residues attr '" + attName + "'");
}
+ @Override
+ public List<StructureCommandI> centerViewOn(List<AtomSpecModel> residues)
+ {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
}