import jalview.datamodel.AlignmentI;
import jalview.datamodel.PDBEntry;
import jalview.datamodel.SequenceI;
-import jalview.datamodel.ViewerData;
-import jalview.datamodel.ViewerData.StructureData;
+import jalview.datamodel.StructureViewerModel;
+import jalview.datamodel.StructureViewerModel.StructureData;
import jalview.schemabinding.version2.AlcodMap;
import jalview.schemabinding.version2.Alcodon;
import jalview.schemabinding.version2.AlcodonFrame;
* Run through all PDB ids on the alignment, and collect mappings between
* distinct view ids and all sequences referring to that view.
*/
- Map<String, ViewerData> structureViewers = new LinkedHashMap<String, ViewerData>();
+ Map<String, StructureViewerModel> structureViewers = new LinkedHashMap<String, StructureViewerModel>();
for (int i = 0; i < jseqs.length; i++)
{
}
if (!structureViewers.containsKey(sviewid))
{
- structureViewers.put(sviewid, new ViewerData(x, y, width, height,
+ structureViewers.put(sviewid, new StructureViewerModel(x, y, width, height,
false, false, true));
// Legacy pre-2.7 conversion JAL-823 :
// do not assume any view has to be linked for colour by
// file }, orig_fileloc, SequenceI[][] {{ seqs_file 1 }, {
// seqs_file 2}, boolean[] {
// linkAlignPanel,superposeWithAlignpanel}} from hash
- ViewerData jmoldat = structureViewers.get(sviewid);
+ StructureViewerModel jmoldat = structureViewers.get(sviewid);
jmoldat.setAlignWithPanel(jmoldat.isAlignWithPanel()
| (structureState.hasAlignwithAlignPanel() ? structureState
.getAlignwithAlignPanel() : false));
}
}
// Instantiate the associated structure views
- for (Entry<String, ViewerData> entry : structureViewers.entrySet())
+ for (Entry<String, StructureViewerModel> entry : structureViewers.entrySet())
{
createOrLinkStructureViewer(entry, af, ap);
}
* @param ap
*/
protected void createOrLinkStructureViewer(
- Entry<String, ViewerData> viewerData, AlignFrame af,
+ Entry<String, StructureViewerModel> viewerData, AlignFrame af,
AlignmentPanel ap)
{
- final ViewerData svattrib = viewerData.getValue();
+ final StructureViewerModel svattrib = viewerData.getValue();
/*
* Search for any viewer windows already open from other alignment views
* @param viewerData
* @param af
*/
- protected void createChimeraViewer(Entry<String, ViewerData> viewerData,
+ protected void createChimeraViewer(Entry<String, StructureViewerModel> viewerData,
AlignFrame af)
{
- final ViewerData data = viewerData.getValue();
+ final StructureViewerModel data = viewerData.getValue();
String chimeraSession = data.getStateData();
if (new File(chimeraSession).exists())
* @param af
*/
protected void createJmolViewer(
- final Entry<String, ViewerData> viewerData, AlignFrame af)
+ final Entry<String, StructureViewerModel> viewerData, AlignFrame af)
{
- final ViewerData svattrib = viewerData.getValue();
+ final StructureViewerModel svattrib = viewerData.getValue();
String state = svattrib.getStateData();
List<String> pdbfilenames = new ArrayList<String>();
List<SequenceI[]> seqmaps = new ArrayList<SequenceI[]>();
* @return
*/
protected StructureViewerBase findMatchingViewer(
- Entry<String, ViewerData> viewerData)
+ Entry<String, StructureViewerModel> viewerData)
{
final String sviewid = viewerData.getKey();
- final ViewerData svattrib = viewerData.getValue();
+ final StructureViewerModel svattrib = viewerData.getValue();
StructureViewerBase comp = null;
JInternalFrame[] frames = getAllFrames();
for (JInternalFrame frame : frames)
* @param viewerColouring
*/
protected void linkStructureViewer(AlignmentPanel ap,
- StructureViewerBase viewer, ViewerData svattrib)
+ StructureViewerBase viewer, StructureViewerModel svattrib)
{
// NOTE: if the jalview project is part of a shared session then
// view synchronization should/could be done here.
import jalview.bin.Cache;
import jalview.datamodel.PDBEntry;
import jalview.datamodel.SequenceI;
-import jalview.datamodel.ViewerData;
+import jalview.datamodel.StructureViewerModel;
import jalview.structure.StructureSelectionManager;
import java.awt.Rectangle;
*/
public JalviewStructureDisplayI createView(ViewerType type,
String[] pdbf, String[] id, SequenceI[][] sq,
- AlignmentPanel alignPanel, ViewerData viewerData, String fileloc,
+ AlignmentPanel alignPanel, StructureViewerModel viewerData, String fileloc,
Rectangle rect, String vid)
{
final boolean useinViewerSuperpos = viewerData.isAlignWithPanel();