JAL-1807 Bob's JalviewJS prototype first commit
[jalviewjs.git] / site / j2s / jalview / datamodel / StructureViewerModel.js
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
4 this.x = 0;\r
5 this.y = 0;\r
6 this.width = 0;\r
7 this.height = 0;\r
8 this.alignWithPanel = false;\r
9 this.colourWithAlignPanel = false;\r
10 this.colourByViewer = false;\r
11 this.stateData = "";\r
12 this.viewId = null;\r
13 this.type = null;\r
14 this.fileData = null;\r
15 if (!Clazz.isClassDefined ("jalview.datamodel.StructureViewerModel.StructureData")) {\r
16 jalview.datamodel.StructureViewerModel.$StructureViewerModel$StructureData$ ();\r
17 }\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
22 });\r
23 Clazz.makeConstructor (c$, \r
24 function (x, y, width, height, alignWithPanel, colourWithAlignPanel, colourByViewer, viewId, type) {\r
25 this.x = x;\r
26 this.y = y;\r
27 this.width = width;\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
33 this.type = type;\r
34 }, "~N,~N,~N,~N,~B,~B,~B,~S,~S");\r
35 Clazz.defineMethod (c$, "getX", \r
36 function () {\r
37 return this.x;\r
38 });\r
39 Clazz.defineMethod (c$, "setX", \r
40 function (x) {\r
41 this.x = x;\r
42 }, "~N");\r
43 Clazz.defineMethod (c$, "getY", \r
44 function () {\r
45 return this.y;\r
46 });\r
47 Clazz.defineMethod (c$, "setY", \r
48 function (y) {\r
49 this.y = y;\r
50 }, "~N");\r
51 Clazz.defineMethod (c$, "getWidth", \r
52 function () {\r
53 return this.width;\r
54 });\r
55 Clazz.defineMethod (c$, "setWidth", \r
56 function (width) {\r
57 this.width = width;\r
58 }, "~N");\r
59 Clazz.defineMethod (c$, "getHeight", \r
60 function () {\r
61 return this.height;\r
62 });\r
63 Clazz.defineMethod (c$, "setHeight", \r
64 function (height) {\r
65 this.height = height;\r
66 }, "~N");\r
67 Clazz.defineMethod (c$, "isAlignWithPanel", \r
68 function () {\r
69 return this.alignWithPanel;\r
70 });\r
71 Clazz.defineMethod (c$, "setAlignWithPanel", \r
72 function (alignWithPanel) {\r
73 this.alignWithPanel = alignWithPanel;\r
74 }, "~B");\r
75 Clazz.defineMethod (c$, "isColourWithAlignPanel", \r
76 function () {\r
77 return this.colourWithAlignPanel;\r
78 });\r
79 Clazz.defineMethod (c$, "setColourWithAlignPanel", \r
80 function (colourWithAlignPanel) {\r
81 this.colourWithAlignPanel = colourWithAlignPanel;\r
82 }, "~B");\r
83 Clazz.defineMethod (c$, "isColourByViewer", \r
84 function () {\r
85 return this.colourByViewer;\r
86 });\r
87 Clazz.defineMethod (c$, "setColourByViewer", \r
88 function (colourByViewer) {\r
89 this.colourByViewer = colourByViewer;\r
90 }, "~B");\r
91 Clazz.defineMethod (c$, "getStateData", \r
92 function () {\r
93 return this.stateData;\r
94 });\r
95 Clazz.defineMethod (c$, "setStateData", \r
96 function (stateData) {\r
97 this.stateData = stateData;\r
98 }, "~S");\r
99 Clazz.defineMethod (c$, "getFileData", \r
100 function () {\r
101 return this.fileData;\r
102 });\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
108 function () {\r
109 return this.viewId;\r
110 });\r
111 Clazz.defineMethod (c$, "getType", \r
112 function () {\r
113 return this.type;\r
114 });\r
115 c$.$StructureViewerModel$StructureData$ = function () {\r
116 Clazz.pu$h(self.c$);\r
117 c$ = Clazz.decorateAsClass (function () {\r
118 Clazz.prepareCallback (this, arguments);\r
119 this.filePath = null;\r
120 this.pdbId = null;\r
121 this.seqList = null;\r
122 Clazz.instantialize (this, arguments);\r
123 }, jalview.datamodel.StructureViewerModel, "StructureData");\r
124 Clazz.makeConstructor (c$, \r
125 function (a, b) {\r
126 this.filePath = a;\r
127 this.pdbId = b;\r
128 this.seqList =  new java.util.ArrayList ();\r
129 }, "~S,~S");\r
130 Clazz.defineMethod (c$, "getFilePath", \r
131 function () {\r
132 return this.filePath;\r
133 });\r
134 Clazz.defineMethod (c$, "setFilePath", \r
135 function (a) {\r
136 this.filePath = a;\r
137 }, "~S");\r
138 Clazz.defineMethod (c$, "getPdbId", \r
139 function () {\r
140 return this.pdbId;\r
141 });\r
142 Clazz.defineMethod (c$, "setPdbId", \r
143 function (a) {\r
144 this.pdbId = a;\r
145 }, "~S");\r
146 Clazz.defineMethod (c$, "getSeqList", \r
147 function () {\r
148 return this.seqList;\r
149 });\r
150 Clazz.defineMethod (c$, "setSeqList", \r
151 function (a) {\r
152 this.seqList = a;\r
153 }, "java.util.List");\r
154 c$ = Clazz.p0p ();\r
155 };\r
156 });\r