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