1 Clazz.declarePackage ("jalview.datamodel");
\r
2 Clazz.load (["java.util.HashMap"], "jalview.datamodel.StructureViewerModel", ["java.util.ArrayList"], function () {
\r
3 c$ = Clazz.decorateAsClass (function () {
\r
8 this.alignWithPanel = false;
\r
9 this.colourWithAlignPanel = false;
\r
10 this.colourByViewer = false;
\r
11 this.stateData = "";
\r
14 this.fileData = null;
\r
15 if (!Clazz.isClassDefined ("jalview.datamodel.StructureViewerModel.StructureData")) {
\r
16 jalview.datamodel.StructureViewerModel.$StructureViewerModel$StructureData$ ();
\r
18 Clazz.instantialize (this, arguments);
\r
19 }, jalview.datamodel, "StructureViewerModel");
\r
20 Clazz.prepareFields (c$, function () {
\r
21 this.fileData = new java.util.HashMap ();
\r
23 Clazz.makeConstructor (c$,
\r
24 function (x, y, width, height, alignWithPanel, colourWithAlignPanel, colourByViewer, viewId, type) {
\r
28 this.height = height;
\r
29 this.alignWithPanel = alignWithPanel;
\r
30 this.colourWithAlignPanel = colourWithAlignPanel;
\r
31 this.colourByViewer = colourByViewer;
\r
32 this.viewId = viewId;
\r
34 }, "~N,~N,~N,~N,~B,~B,~B,~S,~S");
\r
35 Clazz.defineMethod (c$, "getX",
\r
39 Clazz.defineMethod (c$, "setX",
\r
43 Clazz.defineMethod (c$, "getY",
\r
47 Clazz.defineMethod (c$, "setY",
\r
51 Clazz.defineMethod (c$, "getWidth",
\r
55 Clazz.defineMethod (c$, "setWidth",
\r
59 Clazz.defineMethod (c$, "getHeight",
\r
63 Clazz.defineMethod (c$, "setHeight",
\r
65 this.height = height;
\r
67 Clazz.defineMethod (c$, "isAlignWithPanel",
\r
69 return this.alignWithPanel;
\r
71 Clazz.defineMethod (c$, "setAlignWithPanel",
\r
72 function (alignWithPanel) {
\r
73 this.alignWithPanel = alignWithPanel;
\r
75 Clazz.defineMethod (c$, "isColourWithAlignPanel",
\r
77 return this.colourWithAlignPanel;
\r
79 Clazz.defineMethod (c$, "setColourWithAlignPanel",
\r
80 function (colourWithAlignPanel) {
\r
81 this.colourWithAlignPanel = colourWithAlignPanel;
\r
83 Clazz.defineMethod (c$, "isColourByViewer",
\r
85 return this.colourByViewer;
\r
87 Clazz.defineMethod (c$, "setColourByViewer",
\r
88 function (colourByViewer) {
\r
89 this.colourByViewer = colourByViewer;
\r
91 Clazz.defineMethod (c$, "getStateData",
\r
93 return this.stateData;
\r
95 Clazz.defineMethod (c$, "setStateData",
\r
96 function (stateData) {
\r
97 this.stateData = stateData;
\r
99 Clazz.defineMethod (c$, "getFileData",
\r
101 return this.fileData;
\r
103 Clazz.defineMethod (c$, "setFileData",
\r
104 function (fileData) {
\r
105 this.fileData = fileData;
\r
106 }, "java.util.Map");
\r
107 Clazz.defineMethod (c$, "getViewId",
\r
109 return this.viewId;
\r
111 Clazz.defineMethod (c$, "getType",
\r
115 c$.$StructureViewerModel$StructureData$ = function () {
\r
117 c$ = Clazz.decorateAsClass (function () {
\r
118 Clazz.prepareCallback (this, arguments);
\r
119 this.filePath = null;
\r
121 this.seqList = null;
\r
122 Clazz.instantialize (this, arguments);
\r
123 }, jalview.datamodel.StructureViewerModel, "StructureData");
\r
124 Clazz.makeConstructor (c$,
\r
128 this.seqList = new java.util.ArrayList ();
\r
130 Clazz.defineMethod (c$, "getFilePath",
\r
132 return this.filePath;
\r
134 Clazz.defineMethod (c$, "setFilePath",
\r
138 Clazz.defineMethod (c$, "getPdbId",
\r
142 Clazz.defineMethod (c$, "setPdbId",
\r
146 Clazz.defineMethod (c$, "getSeqList",
\r
148 return this.seqList;
\r
150 Clazz.defineMethod (c$, "setSeqList",
\r
153 }, "java.util.List");
\r