X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fdatamodel%2FStructureViewerModel.java;fp=src%2Fjalview%2Fdatamodel%2FStructureViewerModel.java;h=8bc745ab6aec0369bb055d1c72da7b3792c14e6d;hb=2a9991ef1eb02d97e9c8ed1644f292117ae6f600;hp=098372bec0c453bcaae3b92e01f0df6b334b981e;hpb=2ce465aaa3047e1ef758a26af2fbfcf8626b4a69;p=jalview.git diff --git a/src/jalview/datamodel/StructureViewerModel.java b/src/jalview/datamodel/StructureViewerModel.java index 098372b..8bc745a 100644 --- a/src/jalview/datamodel/StructureViewerModel.java +++ b/src/jalview/datamodel/StructureViewerModel.java @@ -27,6 +27,11 @@ public class StructureViewerModel private String stateData = ""; + private String viewId; + + // CHIMERA or JMOL (for projects from Jalview 2.9 on) + private String type; + private Map fileData = new HashMap(); public class StructureData @@ -36,7 +41,6 @@ public class StructureViewerModel private String pdbId; private List seqList; - // TODO and possibly a list of chains? /** @@ -85,7 +89,7 @@ public class StructureViewerModel public StructureViewerModel(int x, int y, int width, int height, boolean alignWithPanel, boolean colourWithAlignPanel, - boolean colourByViewer) + boolean colourByViewer, String viewId, String type) { this.x = x; this.y = y; @@ -94,6 +98,8 @@ public class StructureViewerModel this.alignWithPanel = alignWithPanel; this.colourWithAlignPanel = colourWithAlignPanel; this.colourByViewer = colourByViewer; + this.viewId = viewId; + this.type = type; } public int getX() @@ -186,4 +192,13 @@ public class StructureViewerModel this.fileData = fileData; } + public String getViewId() + { + return this.viewId; + } + + public String getType() + { + return this.type; + } }