update author list in license for (JAL-826)
[jalview.git] / src / jalview / binding / Viewport.java
1 /*******************************************************************************
2  * Jalview - A Sequence Alignment Editor and Viewer (Version 2.7)
3  * Copyright (C) 2011 J Procter, AM Waterhouse, J Engelhardt, LM Lui, G Barton, M Clamp, S Searle
4  *
5  * This file is part of Jalview.
6  *
7  * Jalview is free software: you can redistribute it and/or
8  * modify it under the terms of the GNU General Public License 
9  * as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
10  *
11  * Jalview is distributed in the hope that it will be useful, but 
12  * WITHOUT ANY WARRANTY; without even the implied warranty 
13  * of MERCHANTABILITY or FITNESS FOR A PARTICULAR 
14  * PURPOSE.  See the GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License along with Jalview.  If not, see <http://www.gnu.org/licenses/>.
17  *******************************************************************************/
18 /*
19  * This class was automatically generated with 
20  * <a href="http://www.castor.org">Castor 1.1</a>, using an XML
21  * Schema.
22  * $Id$
23  */
24
25 package jalview.binding;
26
27   //---------------------------------/
28  //- Imported classes and packages -/
29 //---------------------------------/
30
31 import org.exolab.castor.xml.Marshaller;
32 import org.exolab.castor.xml.Unmarshaller;
33
34 /**
35  * Class Viewport.
36  * 
37  * @version $Revision$ $Date$
38  */
39 public class Viewport implements java.io.Serializable {
40
41
42       //--------------------------/
43      //- Class/Member Variables -/
44     //--------------------------/
45
46     /**
47      * Field _conservationSelected.
48      */
49     private boolean _conservationSelected;
50
51     /**
52      * keeps track of state for field: _conservationSelected
53      */
54     private boolean _has_conservationSelected;
55
56     /**
57      * Field _pidSelected.
58      */
59     private boolean _pidSelected;
60
61     /**
62      * keeps track of state for field: _pidSelected
63      */
64     private boolean _has_pidSelected;
65
66     /**
67      * Field _bgColour.
68      */
69     private java.lang.String _bgColour;
70
71     /**
72      * Field _consThreshold.
73      */
74     private int _consThreshold;
75
76     /**
77      * keeps track of state for field: _consThreshold
78      */
79     private boolean _has_consThreshold;
80
81     /**
82      * Field _pidThreshold.
83      */
84     private int _pidThreshold;
85
86     /**
87      * keeps track of state for field: _pidThreshold
88      */
89     private boolean _has_pidThreshold;
90
91     /**
92      * Field _title.
93      */
94     private java.lang.String _title;
95
96     /**
97      * Field _showFullId.
98      */
99     private boolean _showFullId;
100
101     /**
102      * keeps track of state for field: _showFullId
103      */
104     private boolean _has_showFullId;
105
106     /**
107      * Field _showText.
108      */
109     private boolean _showText;
110
111     /**
112      * keeps track of state for field: _showText
113      */
114     private boolean _has_showText;
115
116     /**
117      * Field _showColourText.
118      */
119     private boolean _showColourText;
120
121     /**
122      * keeps track of state for field: _showColourText
123      */
124     private boolean _has_showColourText;
125
126     /**
127      * Field _showBoxes.
128      */
129     private boolean _showBoxes;
130
131     /**
132      * keeps track of state for field: _showBoxes
133      */
134     private boolean _has_showBoxes;
135
136     /**
137      * Field _wrapAlignment.
138      */
139     private boolean _wrapAlignment;
140
141     /**
142      * keeps track of state for field: _wrapAlignment
143      */
144     private boolean _has_wrapAlignment;
145
146     /**
147      * Field _renderGaps.
148      */
149     private boolean _renderGaps;
150
151     /**
152      * keeps track of state for field: _renderGaps
153      */
154     private boolean _has_renderGaps;
155
156     /**
157      * Field _showSequenceFeatures.
158      */
159     private boolean _showSequenceFeatures;
160
161     /**
162      * keeps track of state for field: _showSequenceFeatures
163      */
164     private boolean _has_showSequenceFeatures;
165
166     /**
167      * Field _showAnnotation.
168      */
169     private boolean _showAnnotation;
170
171     /**
172      * keeps track of state for field: _showAnnotation
173      */
174     private boolean _has_showAnnotation;
175
176     /**
177      * Field _showConservation.
178      */
179     private boolean _showConservation;
180
181     /**
182      * keeps track of state for field: _showConservation
183      */
184     private boolean _has_showConservation;
185
186     /**
187      * Field _showQuality.
188      */
189     private boolean _showQuality;
190
191     /**
192      * keeps track of state for field: _showQuality
193      */
194     private boolean _has_showQuality;
195
196     /**
197      * Field _showIdentity.
198      */
199     private boolean _showIdentity;
200
201     /**
202      * keeps track of state for field: _showIdentity
203      */
204     private boolean _has_showIdentity;
205
206     /**
207      * Field _xpos.
208      */
209     private int _xpos;
210
211     /**
212      * keeps track of state for field: _xpos
213      */
214     private boolean _has_xpos;
215
216     /**
217      * Field _ypos.
218      */
219     private int _ypos;
220
221     /**
222      * keeps track of state for field: _ypos
223      */
224     private boolean _has_ypos;
225
226     /**
227      * Field _width.
228      */
229     private int _width;
230
231     /**
232      * keeps track of state for field: _width
233      */
234     private boolean _has_width;
235
236     /**
237      * Field _height.
238      */
239     private int _height;
240
241     /**
242      * keeps track of state for field: _height
243      */
244     private boolean _has_height;
245
246     /**
247      * Field _startRes.
248      */
249     private int _startRes;
250
251     /**
252      * keeps track of state for field: _startRes
253      */
254     private boolean _has_startRes;
255
256     /**
257      * Field _startSeq.
258      */
259     private int _startSeq;
260
261     /**
262      * keeps track of state for field: _startSeq
263      */
264     private boolean _has_startSeq;
265
266     /**
267      * Field _fontName.
268      */
269     private java.lang.String _fontName;
270
271     /**
272      * Field _fontSize.
273      */
274     private int _fontSize;
275
276     /**
277      * keeps track of state for field: _fontSize
278      */
279     private boolean _has_fontSize;
280
281     /**
282      * Field _fontStyle.
283      */
284     private int _fontStyle;
285
286     /**
287      * keeps track of state for field: _fontStyle
288      */
289     private boolean _has_fontStyle;
290
291
292       //----------------/
293      //- Constructors -/
294     //----------------/
295
296     public Viewport() {
297         super();
298     }
299
300
301       //-----------/
302      //- Methods -/
303     //-----------/
304
305     /**
306      */
307     public void deleteConsThreshold(
308     ) {
309         this._has_consThreshold= false;
310     }
311
312     /**
313      */
314     public void deleteConservationSelected(
315     ) {
316         this._has_conservationSelected= false;
317     }
318
319     /**
320      */
321     public void deleteFontSize(
322     ) {
323         this._has_fontSize= false;
324     }
325
326     /**
327      */
328     public void deleteFontStyle(
329     ) {
330         this._has_fontStyle= false;
331     }
332
333     /**
334      */
335     public void deleteHeight(
336     ) {
337         this._has_height= false;
338     }
339
340     /**
341      */
342     public void deletePidSelected(
343     ) {
344         this._has_pidSelected= false;
345     }
346
347     /**
348      */
349     public void deletePidThreshold(
350     ) {
351         this._has_pidThreshold= false;
352     }
353
354     /**
355      */
356     public void deleteRenderGaps(
357     ) {
358         this._has_renderGaps= false;
359     }
360
361     /**
362      */
363     public void deleteShowAnnotation(
364     ) {
365         this._has_showAnnotation= false;
366     }
367
368     /**
369      */
370     public void deleteShowBoxes(
371     ) {
372         this._has_showBoxes= false;
373     }
374
375     /**
376      */
377     public void deleteShowColourText(
378     ) {
379         this._has_showColourText= false;
380     }
381
382     /**
383      */
384     public void deleteShowConservation(
385     ) {
386         this._has_showConservation= false;
387     }
388
389     /**
390      */
391     public void deleteShowFullId(
392     ) {
393         this._has_showFullId= false;
394     }
395
396     /**
397      */
398     public void deleteShowIdentity(
399     ) {
400         this._has_showIdentity= false;
401     }
402
403     /**
404      */
405     public void deleteShowQuality(
406     ) {
407         this._has_showQuality= false;
408     }
409
410     /**
411      */
412     public void deleteShowSequenceFeatures(
413     ) {
414         this._has_showSequenceFeatures= false;
415     }
416
417     /**
418      */
419     public void deleteShowText(
420     ) {
421         this._has_showText= false;
422     }
423
424     /**
425      */
426     public void deleteStartRes(
427     ) {
428         this._has_startRes= false;
429     }
430
431     /**
432      */
433     public void deleteStartSeq(
434     ) {
435         this._has_startSeq= false;
436     }
437
438     /**
439      */
440     public void deleteWidth(
441     ) {
442         this._has_width= false;
443     }
444
445     /**
446      */
447     public void deleteWrapAlignment(
448     ) {
449         this._has_wrapAlignment= false;
450     }
451
452     /**
453      */
454     public void deleteXpos(
455     ) {
456         this._has_xpos= false;
457     }
458
459     /**
460      */
461     public void deleteYpos(
462     ) {
463         this._has_ypos= false;
464     }
465
466     /**
467      * Returns the value of field 'bgColour'.
468      * 
469      * @return the value of field 'BgColour'.
470      */
471     public java.lang.String getBgColour(
472     ) {
473         return this._bgColour;
474     }
475
476     /**
477      * Returns the value of field 'consThreshold'.
478      * 
479      * @return the value of field 'ConsThreshold'.
480      */
481     public int getConsThreshold(
482     ) {
483         return this._consThreshold;
484     }
485
486     /**
487      * Returns the value of field 'conservationSelected'.
488      * 
489      * @return the value of field 'ConservationSelected'.
490      */
491     public boolean getConservationSelected(
492     ) {
493         return this._conservationSelected;
494     }
495
496     /**
497      * Returns the value of field 'fontName'.
498      * 
499      * @return the value of field 'FontName'.
500      */
501     public java.lang.String getFontName(
502     ) {
503         return this._fontName;
504     }
505
506     /**
507      * Returns the value of field 'fontSize'.
508      * 
509      * @return the value of field 'FontSize'.
510      */
511     public int getFontSize(
512     ) {
513         return this._fontSize;
514     }
515
516     /**
517      * Returns the value of field 'fontStyle'.
518      * 
519      * @return the value of field 'FontStyle'.
520      */
521     public int getFontStyle(
522     ) {
523         return this._fontStyle;
524     }
525
526     /**
527      * Returns the value of field 'height'.
528      * 
529      * @return the value of field 'Height'.
530      */
531     public int getHeight(
532     ) {
533         return this._height;
534     }
535
536     /**
537      * Returns the value of field 'pidSelected'.
538      * 
539      * @return the value of field 'PidSelected'.
540      */
541     public boolean getPidSelected(
542     ) {
543         return this._pidSelected;
544     }
545
546     /**
547      * Returns the value of field 'pidThreshold'.
548      * 
549      * @return the value of field 'PidThreshold'.
550      */
551     public int getPidThreshold(
552     ) {
553         return this._pidThreshold;
554     }
555
556     /**
557      * Returns the value of field 'renderGaps'.
558      * 
559      * @return the value of field 'RenderGaps'.
560      */
561     public boolean getRenderGaps(
562     ) {
563         return this._renderGaps;
564     }
565
566     /**
567      * Returns the value of field 'showAnnotation'.
568      * 
569      * @return the value of field 'ShowAnnotation'.
570      */
571     public boolean getShowAnnotation(
572     ) {
573         return this._showAnnotation;
574     }
575
576     /**
577      * Returns the value of field 'showBoxes'.
578      * 
579      * @return the value of field 'ShowBoxes'.
580      */
581     public boolean getShowBoxes(
582     ) {
583         return this._showBoxes;
584     }
585
586     /**
587      * Returns the value of field 'showColourText'.
588      * 
589      * @return the value of field 'ShowColourText'.
590      */
591     public boolean getShowColourText(
592     ) {
593         return this._showColourText;
594     }
595
596     /**
597      * Returns the value of field 'showConservation'.
598      * 
599      * @return the value of field 'ShowConservation'.
600      */
601     public boolean getShowConservation(
602     ) {
603         return this._showConservation;
604     }
605
606     /**
607      * Returns the value of field 'showFullId'.
608      * 
609      * @return the value of field 'ShowFullId'.
610      */
611     public boolean getShowFullId(
612     ) {
613         return this._showFullId;
614     }
615
616     /**
617      * Returns the value of field 'showIdentity'.
618      * 
619      * @return the value of field 'ShowIdentity'.
620      */
621     public boolean getShowIdentity(
622     ) {
623         return this._showIdentity;
624     }
625
626     /**
627      * Returns the value of field 'showQuality'.
628      * 
629      * @return the value of field 'ShowQuality'.
630      */
631     public boolean getShowQuality(
632     ) {
633         return this._showQuality;
634     }
635
636     /**
637      * Returns the value of field 'showSequenceFeatures'.
638      * 
639      * @return the value of field 'ShowSequenceFeatures'.
640      */
641     public boolean getShowSequenceFeatures(
642     ) {
643         return this._showSequenceFeatures;
644     }
645
646     /**
647      * Returns the value of field 'showText'.
648      * 
649      * @return the value of field 'ShowText'.
650      */
651     public boolean getShowText(
652     ) {
653         return this._showText;
654     }
655
656     /**
657      * Returns the value of field 'startRes'.
658      * 
659      * @return the value of field 'StartRes'.
660      */
661     public int getStartRes(
662     ) {
663         return this._startRes;
664     }
665
666     /**
667      * Returns the value of field 'startSeq'.
668      * 
669      * @return the value of field 'StartSeq'.
670      */
671     public int getStartSeq(
672     ) {
673         return this._startSeq;
674     }
675
676     /**
677      * Returns the value of field 'title'.
678      * 
679      * @return the value of field 'Title'.
680      */
681     public java.lang.String getTitle(
682     ) {
683         return this._title;
684     }
685
686     /**
687      * Returns the value of field 'width'.
688      * 
689      * @return the value of field 'Width'.
690      */
691     public int getWidth(
692     ) {
693         return this._width;
694     }
695
696     /**
697      * Returns the value of field 'wrapAlignment'.
698      * 
699      * @return the value of field 'WrapAlignment'.
700      */
701     public boolean getWrapAlignment(
702     ) {
703         return this._wrapAlignment;
704     }
705
706     /**
707      * Returns the value of field 'xpos'.
708      * 
709      * @return the value of field 'Xpos'.
710      */
711     public int getXpos(
712     ) {
713         return this._xpos;
714     }
715
716     /**
717      * Returns the value of field 'ypos'.
718      * 
719      * @return the value of field 'Ypos'.
720      */
721     public int getYpos(
722     ) {
723         return this._ypos;
724     }
725
726     /**
727      * Method hasConsThreshold.
728      * 
729      * @return true if at least one ConsThreshold has been added
730      */
731     public boolean hasConsThreshold(
732     ) {
733         return this._has_consThreshold;
734     }
735
736     /**
737      * Method hasConservationSelected.
738      * 
739      * @return true if at least one ConservationSelected has been
740      * added
741      */
742     public boolean hasConservationSelected(
743     ) {
744         return this._has_conservationSelected;
745     }
746
747     /**
748      * Method hasFontSize.
749      * 
750      * @return true if at least one FontSize has been added
751      */
752     public boolean hasFontSize(
753     ) {
754         return this._has_fontSize;
755     }
756
757     /**
758      * Method hasFontStyle.
759      * 
760      * @return true if at least one FontStyle has been added
761      */
762     public boolean hasFontStyle(
763     ) {
764         return this._has_fontStyle;
765     }
766
767     /**
768      * Method hasHeight.
769      * 
770      * @return true if at least one Height has been added
771      */
772     public boolean hasHeight(
773     ) {
774         return this._has_height;
775     }
776
777     /**
778      * Method hasPidSelected.
779      * 
780      * @return true if at least one PidSelected has been added
781      */
782     public boolean hasPidSelected(
783     ) {
784         return this._has_pidSelected;
785     }
786
787     /**
788      * Method hasPidThreshold.
789      * 
790      * @return true if at least one PidThreshold has been added
791      */
792     public boolean hasPidThreshold(
793     ) {
794         return this._has_pidThreshold;
795     }
796
797     /**
798      * Method hasRenderGaps.
799      * 
800      * @return true if at least one RenderGaps has been added
801      */
802     public boolean hasRenderGaps(
803     ) {
804         return this._has_renderGaps;
805     }
806
807     /**
808      * Method hasShowAnnotation.
809      * 
810      * @return true if at least one ShowAnnotation has been added
811      */
812     public boolean hasShowAnnotation(
813     ) {
814         return this._has_showAnnotation;
815     }
816
817     /**
818      * Method hasShowBoxes.
819      * 
820      * @return true if at least one ShowBoxes has been added
821      */
822     public boolean hasShowBoxes(
823     ) {
824         return this._has_showBoxes;
825     }
826
827     /**
828      * Method hasShowColourText.
829      * 
830      * @return true if at least one ShowColourText has been added
831      */
832     public boolean hasShowColourText(
833     ) {
834         return this._has_showColourText;
835     }
836
837     /**
838      * Method hasShowConservation.
839      * 
840      * @return true if at least one ShowConservation has been added
841      */
842     public boolean hasShowConservation(
843     ) {
844         return this._has_showConservation;
845     }
846
847     /**
848      * Method hasShowFullId.
849      * 
850      * @return true if at least one ShowFullId has been added
851      */
852     public boolean hasShowFullId(
853     ) {
854         return this._has_showFullId;
855     }
856
857     /**
858      * Method hasShowIdentity.
859      * 
860      * @return true if at least one ShowIdentity has been added
861      */
862     public boolean hasShowIdentity(
863     ) {
864         return this._has_showIdentity;
865     }
866
867     /**
868      * Method hasShowQuality.
869      * 
870      * @return true if at least one ShowQuality has been added
871      */
872     public boolean hasShowQuality(
873     ) {
874         return this._has_showQuality;
875     }
876
877     /**
878      * Method hasShowSequenceFeatures.
879      * 
880      * @return true if at least one ShowSequenceFeatures has been
881      * added
882      */
883     public boolean hasShowSequenceFeatures(
884     ) {
885         return this._has_showSequenceFeatures;
886     }
887
888     /**
889      * Method hasShowText.
890      * 
891      * @return true if at least one ShowText has been added
892      */
893     public boolean hasShowText(
894     ) {
895         return this._has_showText;
896     }
897
898     /**
899      * Method hasStartRes.
900      * 
901      * @return true if at least one StartRes has been added
902      */
903     public boolean hasStartRes(
904     ) {
905         return this._has_startRes;
906     }
907
908     /**
909      * Method hasStartSeq.
910      * 
911      * @return true if at least one StartSeq has been added
912      */
913     public boolean hasStartSeq(
914     ) {
915         return this._has_startSeq;
916     }
917
918     /**
919      * Method hasWidth.
920      * 
921      * @return true if at least one Width has been added
922      */
923     public boolean hasWidth(
924     ) {
925         return this._has_width;
926     }
927
928     /**
929      * Method hasWrapAlignment.
930      * 
931      * @return true if at least one WrapAlignment has been added
932      */
933     public boolean hasWrapAlignment(
934     ) {
935         return this._has_wrapAlignment;
936     }
937
938     /**
939      * Method hasXpos.
940      * 
941      * @return true if at least one Xpos has been added
942      */
943     public boolean hasXpos(
944     ) {
945         return this._has_xpos;
946     }
947
948     /**
949      * Method hasYpos.
950      * 
951      * @return true if at least one Ypos has been added
952      */
953     public boolean hasYpos(
954     ) {
955         return this._has_ypos;
956     }
957
958     /**
959      * Returns the value of field 'conservationSelected'.
960      * 
961      * @return the value of field 'ConservationSelected'.
962      */
963     public boolean isConservationSelected(
964     ) {
965         return this._conservationSelected;
966     }
967
968     /**
969      * Returns the value of field 'pidSelected'.
970      * 
971      * @return the value of field 'PidSelected'.
972      */
973     public boolean isPidSelected(
974     ) {
975         return this._pidSelected;
976     }
977
978     /**
979      * Returns the value of field 'renderGaps'.
980      * 
981      * @return the value of field 'RenderGaps'.
982      */
983     public boolean isRenderGaps(
984     ) {
985         return this._renderGaps;
986     }
987
988     /**
989      * Returns the value of field 'showAnnotation'.
990      * 
991      * @return the value of field 'ShowAnnotation'.
992      */
993     public boolean isShowAnnotation(
994     ) {
995         return this._showAnnotation;
996     }
997
998     /**
999      * Returns the value of field 'showBoxes'.
1000      * 
1001      * @return the value of field 'ShowBoxes'.
1002      */
1003     public boolean isShowBoxes(
1004     ) {
1005         return this._showBoxes;
1006     }
1007
1008     /**
1009      * Returns the value of field 'showColourText'.
1010      * 
1011      * @return the value of field 'ShowColourText'.
1012      */
1013     public boolean isShowColourText(
1014     ) {
1015         return this._showColourText;
1016     }
1017
1018     /**
1019      * Returns the value of field 'showConservation'.
1020      * 
1021      * @return the value of field 'ShowConservation'.
1022      */
1023     public boolean isShowConservation(
1024     ) {
1025         return this._showConservation;
1026     }
1027
1028     /**
1029      * Returns the value of field 'showFullId'.
1030      * 
1031      * @return the value of field 'ShowFullId'.
1032      */
1033     public boolean isShowFullId(
1034     ) {
1035         return this._showFullId;
1036     }
1037
1038     /**
1039      * Returns the value of field 'showIdentity'.
1040      * 
1041      * @return the value of field 'ShowIdentity'.
1042      */
1043     public boolean isShowIdentity(
1044     ) {
1045         return this._showIdentity;
1046     }
1047
1048     /**
1049      * Returns the value of field 'showQuality'.
1050      * 
1051      * @return the value of field 'ShowQuality'.
1052      */
1053     public boolean isShowQuality(
1054     ) {
1055         return this._showQuality;
1056     }
1057
1058     /**
1059      * Returns the value of field 'showSequenceFeatures'.
1060      * 
1061      * @return the value of field 'ShowSequenceFeatures'.
1062      */
1063     public boolean isShowSequenceFeatures(
1064     ) {
1065         return this._showSequenceFeatures;
1066     }
1067
1068     /**
1069      * Returns the value of field 'showText'.
1070      * 
1071      * @return the value of field 'ShowText'.
1072      */
1073     public boolean isShowText(
1074     ) {
1075         return this._showText;
1076     }
1077
1078     /**
1079      * Method isValid.
1080      * 
1081      * @return true if this object is valid according to the schema
1082      */
1083     public boolean isValid(
1084     ) {
1085         try {
1086             validate();
1087         } catch (org.exolab.castor.xml.ValidationException vex) {
1088             return false;
1089         }
1090         return true;
1091     }
1092
1093     /**
1094      * Returns the value of field 'wrapAlignment'.
1095      * 
1096      * @return the value of field 'WrapAlignment'.
1097      */
1098     public boolean isWrapAlignment(
1099     ) {
1100         return this._wrapAlignment;
1101     }
1102
1103     /**
1104      * 
1105      * 
1106      * @param out
1107      * @throws org.exolab.castor.xml.MarshalException if object is
1108      * null or if any SAXException is thrown during marshaling
1109      * @throws org.exolab.castor.xml.ValidationException if this
1110      * object is an invalid instance according to the schema
1111      */
1112     public void marshal(
1113             final java.io.Writer out)
1114     throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
1115         Marshaller.marshal(this, out);
1116     }
1117
1118     /**
1119      * 
1120      * 
1121      * @param handler
1122      * @throws java.io.IOException if an IOException occurs during
1123      * marshaling
1124      * @throws org.exolab.castor.xml.ValidationException if this
1125      * object is an invalid instance according to the schema
1126      * @throws org.exolab.castor.xml.MarshalException if object is
1127      * null or if any SAXException is thrown during marshaling
1128      */
1129     public void marshal(
1130             final org.xml.sax.ContentHandler handler)
1131     throws java.io.IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
1132         Marshaller.marshal(this, handler);
1133     }
1134
1135     /**
1136      * Sets the value of field 'bgColour'.
1137      * 
1138      * @param bgColour the value of field 'bgColour'.
1139      */
1140     public void setBgColour(
1141             final java.lang.String bgColour) {
1142         this._bgColour = bgColour;
1143     }
1144
1145     /**
1146      * Sets the value of field 'consThreshold'.
1147      * 
1148      * @param consThreshold the value of field 'consThreshold'.
1149      */
1150     public void setConsThreshold(
1151             final int consThreshold) {
1152         this._consThreshold = consThreshold;
1153         this._has_consThreshold = true;
1154     }
1155
1156     /**
1157      * Sets the value of field 'conservationSelected'.
1158      * 
1159      * @param conservationSelected the value of field
1160      * 'conservationSelected'.
1161      */
1162     public void setConservationSelected(
1163             final boolean conservationSelected) {
1164         this._conservationSelected = conservationSelected;
1165         this._has_conservationSelected = true;
1166     }
1167
1168     /**
1169      * Sets the value of field 'fontName'.
1170      * 
1171      * @param fontName the value of field 'fontName'.
1172      */
1173     public void setFontName(
1174             final java.lang.String fontName) {
1175         this._fontName = fontName;
1176     }
1177
1178     /**
1179      * Sets the value of field 'fontSize'.
1180      * 
1181      * @param fontSize the value of field 'fontSize'.
1182      */
1183     public void setFontSize(
1184             final int fontSize) {
1185         this._fontSize = fontSize;
1186         this._has_fontSize = true;
1187     }
1188
1189     /**
1190      * Sets the value of field 'fontStyle'.
1191      * 
1192      * @param fontStyle the value of field 'fontStyle'.
1193      */
1194     public void setFontStyle(
1195             final int fontStyle) {
1196         this._fontStyle = fontStyle;
1197         this._has_fontStyle = true;
1198     }
1199
1200     /**
1201      * Sets the value of field 'height'.
1202      * 
1203      * @param height the value of field 'height'.
1204      */
1205     public void setHeight(
1206             final int height) {
1207         this._height = height;
1208         this._has_height = true;
1209     }
1210
1211     /**
1212      * Sets the value of field 'pidSelected'.
1213      * 
1214      * @param pidSelected the value of field 'pidSelected'.
1215      */
1216     public void setPidSelected(
1217             final boolean pidSelected) {
1218         this._pidSelected = pidSelected;
1219         this._has_pidSelected = true;
1220     }
1221
1222     /**
1223      * Sets the value of field 'pidThreshold'.
1224      * 
1225      * @param pidThreshold the value of field 'pidThreshold'.
1226      */
1227     public void setPidThreshold(
1228             final int pidThreshold) {
1229         this._pidThreshold = pidThreshold;
1230         this._has_pidThreshold = true;
1231     }
1232
1233     /**
1234      * Sets the value of field 'renderGaps'.
1235      * 
1236      * @param renderGaps the value of field 'renderGaps'.
1237      */
1238     public void setRenderGaps(
1239             final boolean renderGaps) {
1240         this._renderGaps = renderGaps;
1241         this._has_renderGaps = true;
1242     }
1243
1244     /**
1245      * Sets the value of field 'showAnnotation'.
1246      * 
1247      * @param showAnnotation the value of field 'showAnnotation'.
1248      */
1249     public void setShowAnnotation(
1250             final boolean showAnnotation) {
1251         this._showAnnotation = showAnnotation;
1252         this._has_showAnnotation = true;
1253     }
1254
1255     /**
1256      * Sets the value of field 'showBoxes'.
1257      * 
1258      * @param showBoxes the value of field 'showBoxes'.
1259      */
1260     public void setShowBoxes(
1261             final boolean showBoxes) {
1262         this._showBoxes = showBoxes;
1263         this._has_showBoxes = true;
1264     }
1265
1266     /**
1267      * Sets the value of field 'showColourText'.
1268      * 
1269      * @param showColourText the value of field 'showColourText'.
1270      */
1271     public void setShowColourText(
1272             final boolean showColourText) {
1273         this._showColourText = showColourText;
1274         this._has_showColourText = true;
1275     }
1276
1277     /**
1278      * Sets the value of field 'showConservation'.
1279      * 
1280      * @param showConservation the value of field 'showConservation'
1281      */
1282     public void setShowConservation(
1283             final boolean showConservation) {
1284         this._showConservation = showConservation;
1285         this._has_showConservation = true;
1286     }
1287
1288     /**
1289      * Sets the value of field 'showFullId'.
1290      * 
1291      * @param showFullId the value of field 'showFullId'.
1292      */
1293     public void setShowFullId(
1294             final boolean showFullId) {
1295         this._showFullId = showFullId;
1296         this._has_showFullId = true;
1297     }
1298
1299     /**
1300      * Sets the value of field 'showIdentity'.
1301      * 
1302      * @param showIdentity the value of field 'showIdentity'.
1303      */
1304     public void setShowIdentity(
1305             final boolean showIdentity) {
1306         this._showIdentity = showIdentity;
1307         this._has_showIdentity = true;
1308     }
1309
1310     /**
1311      * Sets the value of field 'showQuality'.
1312      * 
1313      * @param showQuality the value of field 'showQuality'.
1314      */
1315     public void setShowQuality(
1316             final boolean showQuality) {
1317         this._showQuality = showQuality;
1318         this._has_showQuality = true;
1319     }
1320
1321     /**
1322      * Sets the value of field 'showSequenceFeatures'.
1323      * 
1324      * @param showSequenceFeatures the value of field
1325      * 'showSequenceFeatures'.
1326      */
1327     public void setShowSequenceFeatures(
1328             final boolean showSequenceFeatures) {
1329         this._showSequenceFeatures = showSequenceFeatures;
1330         this._has_showSequenceFeatures = true;
1331     }
1332
1333     /**
1334      * Sets the value of field 'showText'.
1335      * 
1336      * @param showText the value of field 'showText'.
1337      */
1338     public void setShowText(
1339             final boolean showText) {
1340         this._showText = showText;
1341         this._has_showText = true;
1342     }
1343
1344     /**
1345      * Sets the value of field 'startRes'.
1346      * 
1347      * @param startRes the value of field 'startRes'.
1348      */
1349     public void setStartRes(
1350             final int startRes) {
1351         this._startRes = startRes;
1352         this._has_startRes = true;
1353     }
1354
1355     /**
1356      * Sets the value of field 'startSeq'.
1357      * 
1358      * @param startSeq the value of field 'startSeq'.
1359      */
1360     public void setStartSeq(
1361             final int startSeq) {
1362         this._startSeq = startSeq;
1363         this._has_startSeq = true;
1364     }
1365
1366     /**
1367      * Sets the value of field 'title'.
1368      * 
1369      * @param title the value of field 'title'.
1370      */
1371     public void setTitle(
1372             final java.lang.String title) {
1373         this._title = title;
1374     }
1375
1376     /**
1377      * Sets the value of field 'width'.
1378      * 
1379      * @param width the value of field 'width'.
1380      */
1381     public void setWidth(
1382             final int width) {
1383         this._width = width;
1384         this._has_width = true;
1385     }
1386
1387     /**
1388      * Sets the value of field 'wrapAlignment'.
1389      * 
1390      * @param wrapAlignment the value of field 'wrapAlignment'.
1391      */
1392     public void setWrapAlignment(
1393             final boolean wrapAlignment) {
1394         this._wrapAlignment = wrapAlignment;
1395         this._has_wrapAlignment = true;
1396     }
1397
1398     /**
1399      * Sets the value of field 'xpos'.
1400      * 
1401      * @param xpos the value of field 'xpos'.
1402      */
1403     public void setXpos(
1404             final int xpos) {
1405         this._xpos = xpos;
1406         this._has_xpos = true;
1407     }
1408
1409     /**
1410      * Sets the value of field 'ypos'.
1411      * 
1412      * @param ypos the value of field 'ypos'.
1413      */
1414     public void setYpos(
1415             final int ypos) {
1416         this._ypos = ypos;
1417         this._has_ypos = true;
1418     }
1419
1420     /**
1421      * Method unmarshal.
1422      * 
1423      * @param reader
1424      * @throws org.exolab.castor.xml.MarshalException if object is
1425      * null or if any SAXException is thrown during marshaling
1426      * @throws org.exolab.castor.xml.ValidationException if this
1427      * object is an invalid instance according to the schema
1428      * @return the unmarshaled jalview.binding.Viewport
1429      */
1430     public static jalview.binding.Viewport unmarshal(
1431             final java.io.Reader reader)
1432     throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
1433         return (jalview.binding.Viewport) Unmarshaller.unmarshal(jalview.binding.Viewport.class, reader);
1434     }
1435
1436     /**
1437      * 
1438      * 
1439      * @throws org.exolab.castor.xml.ValidationException if this
1440      * object is an invalid instance according to the schema
1441      */
1442     public void validate(
1443     )
1444     throws org.exolab.castor.xml.ValidationException {
1445         org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
1446         validator.validate(this);
1447     }
1448
1449 }