55604ab98f521f236f9efaaeb0021a3ac49a2f10
[jalview.git] / src / jalview / schemabinding / version2 / Viewport.java
1 /*
2  * This class was automatically generated with 
3  * <a href="http://www.castor.org">Castor 1.1</a>, using an XML
4  * Schema.
5  * $Id$
6  */
7
8 package jalview.schemabinding.version2;
9
10   //---------------------------------/
11  //- Imported classes and packages -/
12 //---------------------------------/
13
14 import org.exolab.castor.xml.Marshaller;
15 import org.exolab.castor.xml.Unmarshaller;
16
17 /**
18  * Class Viewport.
19  * 
20  * @version $Revision$ $Date$
21  */
22 public class Viewport implements java.io.Serializable {
23
24
25       //--------------------------/
26      //- Class/Member Variables -/
27     //--------------------------/
28
29     /**
30      * Field _conservationSelected.
31      */
32     private boolean _conservationSelected;
33
34     /**
35      * keeps track of state for field: _conservationSelected
36      */
37     private boolean _has_conservationSelected;
38
39     /**
40      * Field _pidSelected.
41      */
42     private boolean _pidSelected;
43
44     /**
45      * keeps track of state for field: _pidSelected
46      */
47     private boolean _has_pidSelected;
48
49     /**
50      * Field _bgColour.
51      */
52     private java.lang.String _bgColour;
53
54     /**
55      * Field _consThreshold.
56      */
57     private int _consThreshold;
58
59     /**
60      * keeps track of state for field: _consThreshold
61      */
62     private boolean _has_consThreshold;
63
64     /**
65      * Field _pidThreshold.
66      */
67     private int _pidThreshold;
68
69     /**
70      * keeps track of state for field: _pidThreshold
71      */
72     private boolean _has_pidThreshold;
73
74     /**
75      * Field _title.
76      */
77     private java.lang.String _title;
78
79     /**
80      * Field _showFullId.
81      */
82     private boolean _showFullId;
83
84     /**
85      * keeps track of state for field: _showFullId
86      */
87     private boolean _has_showFullId;
88
89     /**
90      * Field _rightAlignIds.
91      */
92     private boolean _rightAlignIds;
93
94     /**
95      * keeps track of state for field: _rightAlignIds
96      */
97     private boolean _has_rightAlignIds;
98
99     /**
100      * Field _showText.
101      */
102     private boolean _showText;
103
104     /**
105      * keeps track of state for field: _showText
106      */
107     private boolean _has_showText;
108
109     /**
110      * Field _showColourText.
111      */
112     private boolean _showColourText;
113
114     /**
115      * keeps track of state for field: _showColourText
116      */
117     private boolean _has_showColourText;
118
119     /**
120      * Field _showUnconserved.
121      */
122     private boolean _showUnconserved = false;
123
124     /**
125      * keeps track of state for field: _showUnconserved
126      */
127     private boolean _has_showUnconserved;
128
129     /**
130      * Field _showBoxes.
131      */
132     private boolean _showBoxes;
133
134     /**
135      * keeps track of state for field: _showBoxes
136      */
137     private boolean _has_showBoxes;
138
139     /**
140      * Field _wrapAlignment.
141      */
142     private boolean _wrapAlignment;
143
144     /**
145      * keeps track of state for field: _wrapAlignment
146      */
147     private boolean _has_wrapAlignment;
148
149     /**
150      * Field _renderGaps.
151      */
152     private boolean _renderGaps;
153
154     /**
155      * keeps track of state for field: _renderGaps
156      */
157     private boolean _has_renderGaps;
158
159     /**
160      * Field _showSequenceFeatures.
161      */
162     private boolean _showSequenceFeatures;
163
164     /**
165      * keeps track of state for field: _showSequenceFeatures
166      */
167     private boolean _has_showSequenceFeatures;
168
169     /**
170      * Field _showNPfeatureTooltip.
171      */
172     private boolean _showNPfeatureTooltip;
173
174     /**
175      * keeps track of state for field: _showNPfeatureTooltip
176      */
177     private boolean _has_showNPfeatureTooltip;
178
179     /**
180      * Field _showDbRefTooltip.
181      */
182     private boolean _showDbRefTooltip;
183
184     /**
185      * keeps track of state for field: _showDbRefTooltip
186      */
187     private boolean _has_showDbRefTooltip;
188
189     /**
190      * Field _followHighlight.
191      */
192     private boolean _followHighlight = true;
193
194     /**
195      * keeps track of state for field: _followHighlight
196      */
197     private boolean _has_followHighlight;
198
199     /**
200      * Field _followSelection.
201      */
202     private boolean _followSelection = true;
203
204     /**
205      * keeps track of state for field: _followSelection
206      */
207     private boolean _has_followSelection;
208
209     /**
210      * Field _showAnnotation.
211      */
212     private boolean _showAnnotation;
213
214     /**
215      * keeps track of state for field: _showAnnotation
216      */
217     private boolean _has_showAnnotation;
218
219     /**
220      * Field _centreColumnLabels.
221      */
222     private boolean _centreColumnLabels = false;
223
224     /**
225      * keeps track of state for field: _centreColumnLabels
226      */
227     private boolean _has_centreColumnLabels;
228
229     /**
230      * Field _showGroupConservation.
231      */
232     private boolean _showGroupConservation = false;
233
234     /**
235      * keeps track of state for field: _showGroupConservation
236      */
237     private boolean _has_showGroupConservation;
238
239     /**
240      * Field _showGroupConsensus.
241      */
242     private boolean _showGroupConsensus = false;
243
244     /**
245      * keeps track of state for field: _showGroupConsensus
246      */
247     private boolean _has_showGroupConsensus;
248
249     /**
250      * Field _showConsensusHistogram.
251      */
252     private boolean _showConsensusHistogram = true;
253
254     /**
255      * keeps track of state for field: _showConsensusHistogram
256      */
257     private boolean _has_showConsensusHistogram;
258
259     /**
260      * Field _showSequenceLogo.
261      */
262     private boolean _showSequenceLogo = false;
263
264     /**
265      * keeps track of state for field: _showSequenceLogo
266      */
267     private boolean _has_showSequenceLogo;
268
269     /**
270      * Field _ignoreGapsinConsensus.
271      */
272     private boolean _ignoreGapsinConsensus = true;
273
274     /**
275      * keeps track of state for field: _ignoreGapsinConsensus
276      */
277     private boolean _has_ignoreGapsinConsensus;
278
279     /**
280      * Field _startRes.
281      */
282     private int _startRes;
283
284     /**
285      * keeps track of state for field: _startRes
286      */
287     private boolean _has_startRes;
288
289     /**
290      * Field _startSeq.
291      */
292     private int _startSeq;
293
294     /**
295      * keeps track of state for field: _startSeq
296      */
297     private boolean _has_startSeq;
298
299     /**
300      * Field _fontName.
301      */
302     private java.lang.String _fontName;
303
304     /**
305      * Field _fontSize.
306      */
307     private int _fontSize;
308
309     /**
310      * keeps track of state for field: _fontSize
311      */
312     private boolean _has_fontSize;
313
314     /**
315      * Field _fontStyle.
316      */
317     private int _fontStyle;
318
319     /**
320      * keeps track of state for field: _fontStyle
321      */
322     private boolean _has_fontStyle;
323
324     /**
325      * Field _viewName.
326      */
327     private java.lang.String _viewName;
328
329     /**
330      * Field _sequenceSetId.
331      */
332     private java.lang.String _sequenceSetId;
333
334     /**
335      * Field _gatheredViews.
336      */
337     private boolean _gatheredViews;
338
339     /**
340      * keeps track of state for field: _gatheredViews
341      */
342     private boolean _has_gatheredViews;
343
344     /**
345      * Field _textCol1.
346      */
347     private int _textCol1;
348
349     /**
350      * keeps track of state for field: _textCol1
351      */
352     private boolean _has_textCol1;
353
354     /**
355      * Field _textCol2.
356      */
357     private int _textCol2;
358
359     /**
360      * keeps track of state for field: _textCol2
361      */
362     private boolean _has_textCol2;
363
364     /**
365      * Field _textColThreshold.
366      */
367     private int _textColThreshold;
368
369     /**
370      * keeps track of state for field: _textColThreshold
371      */
372     private boolean _has_textColThreshold;
373
374     /**
375      * unique id used by jalview to synchronize between stored and
376      * instantiated views
377      *  
378      */
379     private java.lang.String _id;
380
381     /**
382      * Field _width.
383      */
384     private int _width;
385
386     /**
387      * keeps track of state for field: _width
388      */
389     private boolean _has_width;
390
391     /**
392      * Field _height.
393      */
394     private int _height;
395
396     /**
397      * keeps track of state for field: _height
398      */
399     private boolean _has_height;
400
401     /**
402      * Field _xpos.
403      */
404     private int _xpos;
405
406     /**
407      * keeps track of state for field: _xpos
408      */
409     private boolean _has_xpos;
410
411     /**
412      * Field _ypos.
413      */
414     private int _ypos;
415
416     /**
417      * keeps track of state for field: _ypos
418      */
419     private boolean _has_ypos;
420
421     /**
422      * Field _annotationColours.
423      */
424     private jalview.schemabinding.version2.AnnotationColours _annotationColours;
425
426     /**
427      * Field _hiddenColumnsList.
428      */
429     private java.util.Vector _hiddenColumnsList;
430
431
432       //----------------/
433      //- Constructors -/
434     //----------------/
435
436     public Viewport() {
437         super();
438         this._hiddenColumnsList = new java.util.Vector();
439     }
440
441
442       //-----------/
443      //- Methods -/
444     //-----------/
445
446     /**
447      * 
448      * 
449      * @param vHiddenColumns
450      * @throws java.lang.IndexOutOfBoundsException if the index
451      * given is outside the bounds of the collection
452      */
453     public void addHiddenColumns(
454             final jalview.schemabinding.version2.HiddenColumns vHiddenColumns)
455     throws java.lang.IndexOutOfBoundsException {
456         this._hiddenColumnsList.addElement(vHiddenColumns);
457     }
458
459     /**
460      * 
461      * 
462      * @param index
463      * @param vHiddenColumns
464      * @throws java.lang.IndexOutOfBoundsException if the index
465      * given is outside the bounds of the collection
466      */
467     public void addHiddenColumns(
468             final int index,
469             final jalview.schemabinding.version2.HiddenColumns vHiddenColumns)
470     throws java.lang.IndexOutOfBoundsException {
471         this._hiddenColumnsList.add(index, vHiddenColumns);
472     }
473
474     /**
475      */
476     public void deleteCentreColumnLabels(
477     ) {
478         this._has_centreColumnLabels= false;
479     }
480
481     /**
482      */
483     public void deleteConsThreshold(
484     ) {
485         this._has_consThreshold= false;
486     }
487
488     /**
489      */
490     public void deleteConservationSelected(
491     ) {
492         this._has_conservationSelected= false;
493     }
494
495     /**
496      */
497     public void deleteFollowHighlight(
498     ) {
499         this._has_followHighlight= false;
500     }
501
502     /**
503      */
504     public void deleteFollowSelection(
505     ) {
506         this._has_followSelection= false;
507     }
508
509     /**
510      */
511     public void deleteFontSize(
512     ) {
513         this._has_fontSize= false;
514     }
515
516     /**
517      */
518     public void deleteFontStyle(
519     ) {
520         this._has_fontStyle= false;
521     }
522
523     /**
524      */
525     public void deleteGatheredViews(
526     ) {
527         this._has_gatheredViews= false;
528     }
529
530     /**
531      */
532     public void deleteHeight(
533     ) {
534         this._has_height= false;
535     }
536
537     /**
538      */
539     public void deleteIgnoreGapsinConsensus(
540     ) {
541         this._has_ignoreGapsinConsensus= false;
542     }
543
544     /**
545      */
546     public void deletePidSelected(
547     ) {
548         this._has_pidSelected= false;
549     }
550
551     /**
552      */
553     public void deletePidThreshold(
554     ) {
555         this._has_pidThreshold= false;
556     }
557
558     /**
559      */
560     public void deleteRenderGaps(
561     ) {
562         this._has_renderGaps= false;
563     }
564
565     /**
566      */
567     public void deleteRightAlignIds(
568     ) {
569         this._has_rightAlignIds= false;
570     }
571
572     /**
573      */
574     public void deleteShowAnnotation(
575     ) {
576         this._has_showAnnotation= false;
577     }
578
579     /**
580      */
581     public void deleteShowBoxes(
582     ) {
583         this._has_showBoxes= false;
584     }
585
586     /**
587      */
588     public void deleteShowColourText(
589     ) {
590         this._has_showColourText= false;
591     }
592
593     /**
594      */
595     public void deleteShowConsensusHistogram(
596     ) {
597         this._has_showConsensusHistogram= false;
598     }
599
600     /**
601      */
602     public void deleteShowDbRefTooltip(
603     ) {
604         this._has_showDbRefTooltip= false;
605     }
606
607     /**
608      */
609     public void deleteShowFullId(
610     ) {
611         this._has_showFullId= false;
612     }
613
614     /**
615      */
616     public void deleteShowGroupConsensus(
617     ) {
618         this._has_showGroupConsensus= false;
619     }
620
621     /**
622      */
623     public void deleteShowGroupConservation(
624     ) {
625         this._has_showGroupConservation= false;
626     }
627
628     /**
629      */
630     public void deleteShowNPfeatureTooltip(
631     ) {
632         this._has_showNPfeatureTooltip= false;
633     }
634
635     /**
636      */
637     public void deleteShowSequenceFeatures(
638     ) {
639         this._has_showSequenceFeatures= false;
640     }
641
642     /**
643      */
644     public void deleteShowSequenceLogo(
645     ) {
646         this._has_showSequenceLogo= false;
647     }
648
649     /**
650      */
651     public void deleteShowText(
652     ) {
653         this._has_showText= false;
654     }
655
656     /**
657      */
658     public void deleteShowUnconserved(
659     ) {
660         this._has_showUnconserved= false;
661     }
662
663     /**
664      */
665     public void deleteStartRes(
666     ) {
667         this._has_startRes= false;
668     }
669
670     /**
671      */
672     public void deleteStartSeq(
673     ) {
674         this._has_startSeq= false;
675     }
676
677     /**
678      */
679     public void deleteTextCol1(
680     ) {
681         this._has_textCol1= false;
682     }
683
684     /**
685      */
686     public void deleteTextCol2(
687     ) {
688         this._has_textCol2= false;
689     }
690
691     /**
692      */
693     public void deleteTextColThreshold(
694     ) {
695         this._has_textColThreshold= false;
696     }
697
698     /**
699      */
700     public void deleteWidth(
701     ) {
702         this._has_width= false;
703     }
704
705     /**
706      */
707     public void deleteWrapAlignment(
708     ) {
709         this._has_wrapAlignment= false;
710     }
711
712     /**
713      */
714     public void deleteXpos(
715     ) {
716         this._has_xpos= false;
717     }
718
719     /**
720      */
721     public void deleteYpos(
722     ) {
723         this._has_ypos= false;
724     }
725
726     /**
727      * Method enumerateHiddenColumns.
728      * 
729      * @return an Enumeration over all
730      * jalview.schemabinding.version2.HiddenColumns elements
731      */
732     public java.util.Enumeration enumerateHiddenColumns(
733     ) {
734         return this._hiddenColumnsList.elements();
735     }
736
737     /**
738      * Returns the value of field 'annotationColours'.
739      * 
740      * @return the value of field 'AnnotationColours'.
741      */
742     public jalview.schemabinding.version2.AnnotationColours getAnnotationColours(
743     ) {
744         return this._annotationColours;
745     }
746
747     /**
748      * Returns the value of field 'bgColour'.
749      * 
750      * @return the value of field 'BgColour'.
751      */
752     public java.lang.String getBgColour(
753     ) {
754         return this._bgColour;
755     }
756
757     /**
758      * Returns the value of field 'centreColumnLabels'.
759      * 
760      * @return the value of field 'CentreColumnLabels'.
761      */
762     public boolean getCentreColumnLabels(
763     ) {
764         return this._centreColumnLabels;
765     }
766
767     /**
768      * Returns the value of field 'consThreshold'.
769      * 
770      * @return the value of field 'ConsThreshold'.
771      */
772     public int getConsThreshold(
773     ) {
774         return this._consThreshold;
775     }
776
777     /**
778      * Returns the value of field 'conservationSelected'.
779      * 
780      * @return the value of field 'ConservationSelected'.
781      */
782     public boolean getConservationSelected(
783     ) {
784         return this._conservationSelected;
785     }
786
787     /**
788      * Returns the value of field 'followHighlight'.
789      * 
790      * @return the value of field 'FollowHighlight'.
791      */
792     public boolean getFollowHighlight(
793     ) {
794         return this._followHighlight;
795     }
796
797     /**
798      * Returns the value of field 'followSelection'.
799      * 
800      * @return the value of field 'FollowSelection'.
801      */
802     public boolean getFollowSelection(
803     ) {
804         return this._followSelection;
805     }
806
807     /**
808      * Returns the value of field 'fontName'.
809      * 
810      * @return the value of field 'FontName'.
811      */
812     public java.lang.String getFontName(
813     ) {
814         return this._fontName;
815     }
816
817     /**
818      * Returns the value of field 'fontSize'.
819      * 
820      * @return the value of field 'FontSize'.
821      */
822     public int getFontSize(
823     ) {
824         return this._fontSize;
825     }
826
827     /**
828      * Returns the value of field 'fontStyle'.
829      * 
830      * @return the value of field 'FontStyle'.
831      */
832     public int getFontStyle(
833     ) {
834         return this._fontStyle;
835     }
836
837     /**
838      * Returns the value of field 'gatheredViews'.
839      * 
840      * @return the value of field 'GatheredViews'.
841      */
842     public boolean getGatheredViews(
843     ) {
844         return this._gatheredViews;
845     }
846
847     /**
848      * Returns the value of field 'height'.
849      * 
850      * @return the value of field 'Height'.
851      */
852     public int getHeight(
853     ) {
854         return this._height;
855     }
856
857     /**
858      * Method getHiddenColumns.
859      * 
860      * @param index
861      * @throws java.lang.IndexOutOfBoundsException if the index
862      * given is outside the bounds of the collection
863      * @return the value of the
864      * jalview.schemabinding.version2.HiddenColumns at the given
865      * index
866      */
867     public jalview.schemabinding.version2.HiddenColumns getHiddenColumns(
868             final int index)
869     throws java.lang.IndexOutOfBoundsException {
870         // check bounds for index
871         if (index < 0 || index >= this._hiddenColumnsList.size()) {
872             throw new IndexOutOfBoundsException("getHiddenColumns: Index value '" + index + "' not in range [0.." + (this._hiddenColumnsList.size() - 1) + "]");
873         }
874         
875         return (jalview.schemabinding.version2.HiddenColumns) _hiddenColumnsList.get(index);
876     }
877
878     /**
879      * Method getHiddenColumns.Returns the contents of the
880      * collection in an Array.  <p>Note:  Just in case the
881      * collection contents are changing in another thread, we pass
882      * a 0-length Array of the correct type into the API call. 
883      * This way we <i>know</i> that the Array returned is of
884      * exactly the correct length.
885      * 
886      * @return this collection as an Array
887      */
888     public jalview.schemabinding.version2.HiddenColumns[] getHiddenColumns(
889     ) {
890         jalview.schemabinding.version2.HiddenColumns[] array = new jalview.schemabinding.version2.HiddenColumns[0];
891         return (jalview.schemabinding.version2.HiddenColumns[]) this._hiddenColumnsList.toArray(array);
892     }
893
894     /**
895      * Method getHiddenColumnsCount.
896      * 
897      * @return the size of this collection
898      */
899     public int getHiddenColumnsCount(
900     ) {
901         return this._hiddenColumnsList.size();
902     }
903
904     /**
905      * Returns the value of field 'id'. The field 'id' has the
906      * following description: unique id used by jalview to
907      * synchronize between stored and instantiated views
908      *  
909      * 
910      * @return the value of field 'Id'.
911      */
912     public java.lang.String getId(
913     ) {
914         return this._id;
915     }
916
917     /**
918      * Returns the value of field 'ignoreGapsinConsensus'.
919      * 
920      * @return the value of field 'IgnoreGapsinConsensus'.
921      */
922     public boolean getIgnoreGapsinConsensus(
923     ) {
924         return this._ignoreGapsinConsensus;
925     }
926
927     /**
928      * Returns the value of field 'pidSelected'.
929      * 
930      * @return the value of field 'PidSelected'.
931      */
932     public boolean getPidSelected(
933     ) {
934         return this._pidSelected;
935     }
936
937     /**
938      * Returns the value of field 'pidThreshold'.
939      * 
940      * @return the value of field 'PidThreshold'.
941      */
942     public int getPidThreshold(
943     ) {
944         return this._pidThreshold;
945     }
946
947     /**
948      * Returns the value of field 'renderGaps'.
949      * 
950      * @return the value of field 'RenderGaps'.
951      */
952     public boolean getRenderGaps(
953     ) {
954         return this._renderGaps;
955     }
956
957     /**
958      * Returns the value of field 'rightAlignIds'.
959      * 
960      * @return the value of field 'RightAlignIds'.
961      */
962     public boolean getRightAlignIds(
963     ) {
964         return this._rightAlignIds;
965     }
966
967     /**
968      * Returns the value of field 'sequenceSetId'.
969      * 
970      * @return the value of field 'SequenceSetId'.
971      */
972     public java.lang.String getSequenceSetId(
973     ) {
974         return this._sequenceSetId;
975     }
976
977     /**
978      * Returns the value of field 'showAnnotation'.
979      * 
980      * @return the value of field 'ShowAnnotation'.
981      */
982     public boolean getShowAnnotation(
983     ) {
984         return this._showAnnotation;
985     }
986
987     /**
988      * Returns the value of field 'showBoxes'.
989      * 
990      * @return the value of field 'ShowBoxes'.
991      */
992     public boolean getShowBoxes(
993     ) {
994         return this._showBoxes;
995     }
996
997     /**
998      * Returns the value of field 'showColourText'.
999      * 
1000      * @return the value of field 'ShowColourText'.
1001      */
1002     public boolean getShowColourText(
1003     ) {
1004         return this._showColourText;
1005     }
1006
1007     /**
1008      * Returns the value of field 'showConsensusHistogram'.
1009      * 
1010      * @return the value of field 'ShowConsensusHistogram'.
1011      */
1012     public boolean getShowConsensusHistogram(
1013     ) {
1014         return this._showConsensusHistogram;
1015     }
1016
1017     /**
1018      * Returns the value of field 'showDbRefTooltip'.
1019      * 
1020      * @return the value of field 'ShowDbRefTooltip'.
1021      */
1022     public boolean getShowDbRefTooltip(
1023     ) {
1024         return this._showDbRefTooltip;
1025     }
1026
1027     /**
1028      * Returns the value of field 'showFullId'.
1029      * 
1030      * @return the value of field 'ShowFullId'.
1031      */
1032     public boolean getShowFullId(
1033     ) {
1034         return this._showFullId;
1035     }
1036
1037     /**
1038      * Returns the value of field 'showGroupConsensus'.
1039      * 
1040      * @return the value of field 'ShowGroupConsensus'.
1041      */
1042     public boolean getShowGroupConsensus(
1043     ) {
1044         return this._showGroupConsensus;
1045     }
1046
1047     /**
1048      * Returns the value of field 'showGroupConservation'.
1049      * 
1050      * @return the value of field 'ShowGroupConservation'.
1051      */
1052     public boolean getShowGroupConservation(
1053     ) {
1054         return this._showGroupConservation;
1055     }
1056
1057     /**
1058      * Returns the value of field 'showNPfeatureTooltip'.
1059      * 
1060      * @return the value of field 'ShowNPfeatureTooltip'.
1061      */
1062     public boolean getShowNPfeatureTooltip(
1063     ) {
1064         return this._showNPfeatureTooltip;
1065     }
1066
1067     /**
1068      * Returns the value of field 'showSequenceFeatures'.
1069      * 
1070      * @return the value of field 'ShowSequenceFeatures'.
1071      */
1072     public boolean getShowSequenceFeatures(
1073     ) {
1074         return this._showSequenceFeatures;
1075     }
1076
1077     /**
1078      * Returns the value of field 'showSequenceLogo'.
1079      * 
1080      * @return the value of field 'ShowSequenceLogo'.
1081      */
1082     public boolean getShowSequenceLogo(
1083     ) {
1084         return this._showSequenceLogo;
1085     }
1086
1087     /**
1088      * Returns the value of field 'showText'.
1089      * 
1090      * @return the value of field 'ShowText'.
1091      */
1092     public boolean getShowText(
1093     ) {
1094         return this._showText;
1095     }
1096
1097     /**
1098      * Returns the value of field 'showUnconserved'.
1099      * 
1100      * @return the value of field 'ShowUnconserved'.
1101      */
1102     public boolean getShowUnconserved(
1103     ) {
1104         return this._showUnconserved;
1105     }
1106
1107     /**
1108      * Returns the value of field 'startRes'.
1109      * 
1110      * @return the value of field 'StartRes'.
1111      */
1112     public int getStartRes(
1113     ) {
1114         return this._startRes;
1115     }
1116
1117     /**
1118      * Returns the value of field 'startSeq'.
1119      * 
1120      * @return the value of field 'StartSeq'.
1121      */
1122     public int getStartSeq(
1123     ) {
1124         return this._startSeq;
1125     }
1126
1127     /**
1128      * Returns the value of field 'textCol1'.
1129      * 
1130      * @return the value of field 'TextCol1'.
1131      */
1132     public int getTextCol1(
1133     ) {
1134         return this._textCol1;
1135     }
1136
1137     /**
1138      * Returns the value of field 'textCol2'.
1139      * 
1140      * @return the value of field 'TextCol2'.
1141      */
1142     public int getTextCol2(
1143     ) {
1144         return this._textCol2;
1145     }
1146
1147     /**
1148      * Returns the value of field 'textColThreshold'.
1149      * 
1150      * @return the value of field 'TextColThreshold'.
1151      */
1152     public int getTextColThreshold(
1153     ) {
1154         return this._textColThreshold;
1155     }
1156
1157     /**
1158      * Returns the value of field 'title'.
1159      * 
1160      * @return the value of field 'Title'.
1161      */
1162     public java.lang.String getTitle(
1163     ) {
1164         return this._title;
1165     }
1166
1167     /**
1168      * Returns the value of field 'viewName'.
1169      * 
1170      * @return the value of field 'ViewName'.
1171      */
1172     public java.lang.String getViewName(
1173     ) {
1174         return this._viewName;
1175     }
1176
1177     /**
1178      * Returns the value of field 'width'.
1179      * 
1180      * @return the value of field 'Width'.
1181      */
1182     public int getWidth(
1183     ) {
1184         return this._width;
1185     }
1186
1187     /**
1188      * Returns the value of field 'wrapAlignment'.
1189      * 
1190      * @return the value of field 'WrapAlignment'.
1191      */
1192     public boolean getWrapAlignment(
1193     ) {
1194         return this._wrapAlignment;
1195     }
1196
1197     /**
1198      * Returns the value of field 'xpos'.
1199      * 
1200      * @return the value of field 'Xpos'.
1201      */
1202     public int getXpos(
1203     ) {
1204         return this._xpos;
1205     }
1206
1207     /**
1208      * Returns the value of field 'ypos'.
1209      * 
1210      * @return the value of field 'Ypos'.
1211      */
1212     public int getYpos(
1213     ) {
1214         return this._ypos;
1215     }
1216
1217     /**
1218      * Method hasCentreColumnLabels.
1219      * 
1220      * @return true if at least one CentreColumnLabels has been adde
1221      */
1222     public boolean hasCentreColumnLabels(
1223     ) {
1224         return this._has_centreColumnLabels;
1225     }
1226
1227     /**
1228      * Method hasConsThreshold.
1229      * 
1230      * @return true if at least one ConsThreshold has been added
1231      */
1232     public boolean hasConsThreshold(
1233     ) {
1234         return this._has_consThreshold;
1235     }
1236
1237     /**
1238      * Method hasConservationSelected.
1239      * 
1240      * @return true if at least one ConservationSelected has been
1241      * added
1242      */
1243     public boolean hasConservationSelected(
1244     ) {
1245         return this._has_conservationSelected;
1246     }
1247
1248     /**
1249      * Method hasFollowHighlight.
1250      * 
1251      * @return true if at least one FollowHighlight has been added
1252      */
1253     public boolean hasFollowHighlight(
1254     ) {
1255         return this._has_followHighlight;
1256     }
1257
1258     /**
1259      * Method hasFollowSelection.
1260      * 
1261      * @return true if at least one FollowSelection has been added
1262      */
1263     public boolean hasFollowSelection(
1264     ) {
1265         return this._has_followSelection;
1266     }
1267
1268     /**
1269      * Method hasFontSize.
1270      * 
1271      * @return true if at least one FontSize has been added
1272      */
1273     public boolean hasFontSize(
1274     ) {
1275         return this._has_fontSize;
1276     }
1277
1278     /**
1279      * Method hasFontStyle.
1280      * 
1281      * @return true if at least one FontStyle has been added
1282      */
1283     public boolean hasFontStyle(
1284     ) {
1285         return this._has_fontStyle;
1286     }
1287
1288     /**
1289      * Method hasGatheredViews.
1290      * 
1291      * @return true if at least one GatheredViews has been added
1292      */
1293     public boolean hasGatheredViews(
1294     ) {
1295         return this._has_gatheredViews;
1296     }
1297
1298     /**
1299      * Method hasHeight.
1300      * 
1301      * @return true if at least one Height has been added
1302      */
1303     public boolean hasHeight(
1304     ) {
1305         return this._has_height;
1306     }
1307
1308     /**
1309      * Method hasIgnoreGapsinConsensus.
1310      * 
1311      * @return true if at least one IgnoreGapsinConsensus has been
1312      * added
1313      */
1314     public boolean hasIgnoreGapsinConsensus(
1315     ) {
1316         return this._has_ignoreGapsinConsensus;
1317     }
1318
1319     /**
1320      * Method hasPidSelected.
1321      * 
1322      * @return true if at least one PidSelected has been added
1323      */
1324     public boolean hasPidSelected(
1325     ) {
1326         return this._has_pidSelected;
1327     }
1328
1329     /**
1330      * Method hasPidThreshold.
1331      * 
1332      * @return true if at least one PidThreshold has been added
1333      */
1334     public boolean hasPidThreshold(
1335     ) {
1336         return this._has_pidThreshold;
1337     }
1338
1339     /**
1340      * Method hasRenderGaps.
1341      * 
1342      * @return true if at least one RenderGaps has been added
1343      */
1344     public boolean hasRenderGaps(
1345     ) {
1346         return this._has_renderGaps;
1347     }
1348
1349     /**
1350      * Method hasRightAlignIds.
1351      * 
1352      * @return true if at least one RightAlignIds has been added
1353      */
1354     public boolean hasRightAlignIds(
1355     ) {
1356         return this._has_rightAlignIds;
1357     }
1358
1359     /**
1360      * Method hasShowAnnotation.
1361      * 
1362      * @return true if at least one ShowAnnotation has been added
1363      */
1364     public boolean hasShowAnnotation(
1365     ) {
1366         return this._has_showAnnotation;
1367     }
1368
1369     /**
1370      * Method hasShowBoxes.
1371      * 
1372      * @return true if at least one ShowBoxes has been added
1373      */
1374     public boolean hasShowBoxes(
1375     ) {
1376         return this._has_showBoxes;
1377     }
1378
1379     /**
1380      * Method hasShowColourText.
1381      * 
1382      * @return true if at least one ShowColourText has been added
1383      */
1384     public boolean hasShowColourText(
1385     ) {
1386         return this._has_showColourText;
1387     }
1388
1389     /**
1390      * Method hasShowConsensusHistogram.
1391      * 
1392      * @return true if at least one ShowConsensusHistogram has been
1393      * added
1394      */
1395     public boolean hasShowConsensusHistogram(
1396     ) {
1397         return this._has_showConsensusHistogram;
1398     }
1399
1400     /**
1401      * Method hasShowDbRefTooltip.
1402      * 
1403      * @return true if at least one ShowDbRefTooltip has been added
1404      */
1405     public boolean hasShowDbRefTooltip(
1406     ) {
1407         return this._has_showDbRefTooltip;
1408     }
1409
1410     /**
1411      * Method hasShowFullId.
1412      * 
1413      * @return true if at least one ShowFullId has been added
1414      */
1415     public boolean hasShowFullId(
1416     ) {
1417         return this._has_showFullId;
1418     }
1419
1420     /**
1421      * Method hasShowGroupConsensus.
1422      * 
1423      * @return true if at least one ShowGroupConsensus has been adde
1424      */
1425     public boolean hasShowGroupConsensus(
1426     ) {
1427         return this._has_showGroupConsensus;
1428     }
1429
1430     /**
1431      * Method hasShowGroupConservation.
1432      * 
1433      * @return true if at least one ShowGroupConservation has been
1434      * added
1435      */
1436     public boolean hasShowGroupConservation(
1437     ) {
1438         return this._has_showGroupConservation;
1439     }
1440
1441     /**
1442      * Method hasShowNPfeatureTooltip.
1443      * 
1444      * @return true if at least one ShowNPfeatureTooltip has been
1445      * added
1446      */
1447     public boolean hasShowNPfeatureTooltip(
1448     ) {
1449         return this._has_showNPfeatureTooltip;
1450     }
1451
1452     /**
1453      * Method hasShowSequenceFeatures.
1454      * 
1455      * @return true if at least one ShowSequenceFeatures has been
1456      * added
1457      */
1458     public boolean hasShowSequenceFeatures(
1459     ) {
1460         return this._has_showSequenceFeatures;
1461     }
1462
1463     /**
1464      * Method hasShowSequenceLogo.
1465      * 
1466      * @return true if at least one ShowSequenceLogo has been added
1467      */
1468     public boolean hasShowSequenceLogo(
1469     ) {
1470         return this._has_showSequenceLogo;
1471     }
1472
1473     /**
1474      * Method hasShowText.
1475      * 
1476      * @return true if at least one ShowText has been added
1477      */
1478     public boolean hasShowText(
1479     ) {
1480         return this._has_showText;
1481     }
1482
1483     /**
1484      * Method hasShowUnconserved.
1485      * 
1486      * @return true if at least one ShowUnconserved has been added
1487      */
1488     public boolean hasShowUnconserved(
1489     ) {
1490         return this._has_showUnconserved;
1491     }
1492
1493     /**
1494      * Method hasStartRes.
1495      * 
1496      * @return true if at least one StartRes has been added
1497      */
1498     public boolean hasStartRes(
1499     ) {
1500         return this._has_startRes;
1501     }
1502
1503     /**
1504      * Method hasStartSeq.
1505      * 
1506      * @return true if at least one StartSeq has been added
1507      */
1508     public boolean hasStartSeq(
1509     ) {
1510         return this._has_startSeq;
1511     }
1512
1513     /**
1514      * Method hasTextCol1.
1515      * 
1516      * @return true if at least one TextCol1 has been added
1517      */
1518     public boolean hasTextCol1(
1519     ) {
1520         return this._has_textCol1;
1521     }
1522
1523     /**
1524      * Method hasTextCol2.
1525      * 
1526      * @return true if at least one TextCol2 has been added
1527      */
1528     public boolean hasTextCol2(
1529     ) {
1530         return this._has_textCol2;
1531     }
1532
1533     /**
1534      * Method hasTextColThreshold.
1535      * 
1536      * @return true if at least one TextColThreshold has been added
1537      */
1538     public boolean hasTextColThreshold(
1539     ) {
1540         return this._has_textColThreshold;
1541     }
1542
1543     /**
1544      * Method hasWidth.
1545      * 
1546      * @return true if at least one Width has been added
1547      */
1548     public boolean hasWidth(
1549     ) {
1550         return this._has_width;
1551     }
1552
1553     /**
1554      * Method hasWrapAlignment.
1555      * 
1556      * @return true if at least one WrapAlignment has been added
1557      */
1558     public boolean hasWrapAlignment(
1559     ) {
1560         return this._has_wrapAlignment;
1561     }
1562
1563     /**
1564      * Method hasXpos.
1565      * 
1566      * @return true if at least one Xpos has been added
1567      */
1568     public boolean hasXpos(
1569     ) {
1570         return this._has_xpos;
1571     }
1572
1573     /**
1574      * Method hasYpos.
1575      * 
1576      * @return true if at least one Ypos has been added
1577      */
1578     public boolean hasYpos(
1579     ) {
1580         return this._has_ypos;
1581     }
1582
1583     /**
1584      * Returns the value of field 'centreColumnLabels'.
1585      * 
1586      * @return the value of field 'CentreColumnLabels'.
1587      */
1588     public boolean isCentreColumnLabels(
1589     ) {
1590         return this._centreColumnLabels;
1591     }
1592
1593     /**
1594      * Returns the value of field 'conservationSelected'.
1595      * 
1596      * @return the value of field 'ConservationSelected'.
1597      */
1598     public boolean isConservationSelected(
1599     ) {
1600         return this._conservationSelected;
1601     }
1602
1603     /**
1604      * Returns the value of field 'followHighlight'.
1605      * 
1606      * @return the value of field 'FollowHighlight'.
1607      */
1608     public boolean isFollowHighlight(
1609     ) {
1610         return this._followHighlight;
1611     }
1612
1613     /**
1614      * Returns the value of field 'followSelection'.
1615      * 
1616      * @return the value of field 'FollowSelection'.
1617      */
1618     public boolean isFollowSelection(
1619     ) {
1620         return this._followSelection;
1621     }
1622
1623     /**
1624      * Returns the value of field 'gatheredViews'.
1625      * 
1626      * @return the value of field 'GatheredViews'.
1627      */
1628     public boolean isGatheredViews(
1629     ) {
1630         return this._gatheredViews;
1631     }
1632
1633     /**
1634      * Returns the value of field 'ignoreGapsinConsensus'.
1635      * 
1636      * @return the value of field 'IgnoreGapsinConsensus'.
1637      */
1638     public boolean isIgnoreGapsinConsensus(
1639     ) {
1640         return this._ignoreGapsinConsensus;
1641     }
1642
1643     /**
1644      * Returns the value of field 'pidSelected'.
1645      * 
1646      * @return the value of field 'PidSelected'.
1647      */
1648     public boolean isPidSelected(
1649     ) {
1650         return this._pidSelected;
1651     }
1652
1653     /**
1654      * Returns the value of field 'renderGaps'.
1655      * 
1656      * @return the value of field 'RenderGaps'.
1657      */
1658     public boolean isRenderGaps(
1659     ) {
1660         return this._renderGaps;
1661     }
1662
1663     /**
1664      * Returns the value of field 'rightAlignIds'.
1665      * 
1666      * @return the value of field 'RightAlignIds'.
1667      */
1668     public boolean isRightAlignIds(
1669     ) {
1670         return this._rightAlignIds;
1671     }
1672
1673     /**
1674      * Returns the value of field 'showAnnotation'.
1675      * 
1676      * @return the value of field 'ShowAnnotation'.
1677      */
1678     public boolean isShowAnnotation(
1679     ) {
1680         return this._showAnnotation;
1681     }
1682
1683     /**
1684      * Returns the value of field 'showBoxes'.
1685      * 
1686      * @return the value of field 'ShowBoxes'.
1687      */
1688     public boolean isShowBoxes(
1689     ) {
1690         return this._showBoxes;
1691     }
1692
1693     /**
1694      * Returns the value of field 'showColourText'.
1695      * 
1696      * @return the value of field 'ShowColourText'.
1697      */
1698     public boolean isShowColourText(
1699     ) {
1700         return this._showColourText;
1701     }
1702
1703     /**
1704      * Returns the value of field 'showConsensusHistogram'.
1705      * 
1706      * @return the value of field 'ShowConsensusHistogram'.
1707      */
1708     public boolean isShowConsensusHistogram(
1709     ) {
1710         return this._showConsensusHistogram;
1711     }
1712
1713     /**
1714      * Returns the value of field 'showDbRefTooltip'.
1715      * 
1716      * @return the value of field 'ShowDbRefTooltip'.
1717      */
1718     public boolean isShowDbRefTooltip(
1719     ) {
1720         return this._showDbRefTooltip;
1721     }
1722
1723     /**
1724      * Returns the value of field 'showFullId'.
1725      * 
1726      * @return the value of field 'ShowFullId'.
1727      */
1728     public boolean isShowFullId(
1729     ) {
1730         return this._showFullId;
1731     }
1732
1733     /**
1734      * Returns the value of field 'showGroupConsensus'.
1735      * 
1736      * @return the value of field 'ShowGroupConsensus'.
1737      */
1738     public boolean isShowGroupConsensus(
1739     ) {
1740         return this._showGroupConsensus;
1741     }
1742
1743     /**
1744      * Returns the value of field 'showGroupConservation'.
1745      * 
1746      * @return the value of field 'ShowGroupConservation'.
1747      */
1748     public boolean isShowGroupConservation(
1749     ) {
1750         return this._showGroupConservation;
1751     }
1752
1753     /**
1754      * Returns the value of field 'showNPfeatureTooltip'.
1755      * 
1756      * @return the value of field 'ShowNPfeatureTooltip'.
1757      */
1758     public boolean isShowNPfeatureTooltip(
1759     ) {
1760         return this._showNPfeatureTooltip;
1761     }
1762
1763     /**
1764      * Returns the value of field 'showSequenceFeatures'.
1765      * 
1766      * @return the value of field 'ShowSequenceFeatures'.
1767      */
1768     public boolean isShowSequenceFeatures(
1769     ) {
1770         return this._showSequenceFeatures;
1771     }
1772
1773     /**
1774      * Returns the value of field 'showSequenceLogo'.
1775      * 
1776      * @return the value of field 'ShowSequenceLogo'.
1777      */
1778     public boolean isShowSequenceLogo(
1779     ) {
1780         return this._showSequenceLogo;
1781     }
1782
1783     /**
1784      * Returns the value of field 'showText'.
1785      * 
1786      * @return the value of field 'ShowText'.
1787      */
1788     public boolean isShowText(
1789     ) {
1790         return this._showText;
1791     }
1792
1793     /**
1794      * Returns the value of field 'showUnconserved'.
1795      * 
1796      * @return the value of field 'ShowUnconserved'.
1797      */
1798     public boolean isShowUnconserved(
1799     ) {
1800         return this._showUnconserved;
1801     }
1802
1803     /**
1804      * Method isValid.
1805      * 
1806      * @return true if this object is valid according to the schema
1807      */
1808     public boolean isValid(
1809     ) {
1810         try {
1811             validate();
1812         } catch (org.exolab.castor.xml.ValidationException vex) {
1813             return false;
1814         }
1815         return true;
1816     }
1817
1818     /**
1819      * Returns the value of field 'wrapAlignment'.
1820      * 
1821      * @return the value of field 'WrapAlignment'.
1822      */
1823     public boolean isWrapAlignment(
1824     ) {
1825         return this._wrapAlignment;
1826     }
1827
1828     /**
1829      * 
1830      * 
1831      * @param out
1832      * @throws org.exolab.castor.xml.MarshalException if object is
1833      * null or if any SAXException is thrown during marshaling
1834      * @throws org.exolab.castor.xml.ValidationException if this
1835      * object is an invalid instance according to the schema
1836      */
1837     public void marshal(
1838             final java.io.Writer out)
1839     throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
1840         Marshaller.marshal(this, out);
1841     }
1842
1843     /**
1844      * 
1845      * 
1846      * @param handler
1847      * @throws java.io.IOException if an IOException occurs during
1848      * marshaling
1849      * @throws org.exolab.castor.xml.ValidationException if this
1850      * object is an invalid instance according to the schema
1851      * @throws org.exolab.castor.xml.MarshalException if object is
1852      * null or if any SAXException is thrown during marshaling
1853      */
1854     public void marshal(
1855             final org.xml.sax.ContentHandler handler)
1856     throws java.io.IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
1857         Marshaller.marshal(this, handler);
1858     }
1859
1860     /**
1861      */
1862     public void removeAllHiddenColumns(
1863     ) {
1864         this._hiddenColumnsList.clear();
1865     }
1866
1867     /**
1868      * Method removeHiddenColumns.
1869      * 
1870      * @param vHiddenColumns
1871      * @return true if the object was removed from the collection.
1872      */
1873     public boolean removeHiddenColumns(
1874             final jalview.schemabinding.version2.HiddenColumns vHiddenColumns) {
1875         boolean removed = _hiddenColumnsList.remove(vHiddenColumns);
1876         return removed;
1877     }
1878
1879     /**
1880      * Method removeHiddenColumnsAt.
1881      * 
1882      * @param index
1883      * @return the element removed from the collection
1884      */
1885     public jalview.schemabinding.version2.HiddenColumns removeHiddenColumnsAt(
1886             final int index) {
1887         java.lang.Object obj = this._hiddenColumnsList.remove(index);
1888         return (jalview.schemabinding.version2.HiddenColumns) obj;
1889     }
1890
1891     /**
1892      * Sets the value of field 'annotationColours'.
1893      * 
1894      * @param annotationColours the value of field
1895      * 'annotationColours'.
1896      */
1897     public void setAnnotationColours(
1898             final jalview.schemabinding.version2.AnnotationColours annotationColours) {
1899         this._annotationColours = annotationColours;
1900     }
1901
1902     /**
1903      * Sets the value of field 'bgColour'.
1904      * 
1905      * @param bgColour the value of field 'bgColour'.
1906      */
1907     public void setBgColour(
1908             final java.lang.String bgColour) {
1909         this._bgColour = bgColour;
1910     }
1911
1912     /**
1913      * Sets the value of field 'centreColumnLabels'.
1914      * 
1915      * @param centreColumnLabels the value of field
1916      * 'centreColumnLabels'.
1917      */
1918     public void setCentreColumnLabels(
1919             final boolean centreColumnLabels) {
1920         this._centreColumnLabels = centreColumnLabels;
1921         this._has_centreColumnLabels = true;
1922     }
1923
1924     /**
1925      * Sets the value of field 'consThreshold'.
1926      * 
1927      * @param consThreshold the value of field 'consThreshold'.
1928      */
1929     public void setConsThreshold(
1930             final int consThreshold) {
1931         this._consThreshold = consThreshold;
1932         this._has_consThreshold = true;
1933     }
1934
1935     /**
1936      * Sets the value of field 'conservationSelected'.
1937      * 
1938      * @param conservationSelected the value of field
1939      * 'conservationSelected'.
1940      */
1941     public void setConservationSelected(
1942             final boolean conservationSelected) {
1943         this._conservationSelected = conservationSelected;
1944         this._has_conservationSelected = true;
1945     }
1946
1947     /**
1948      * Sets the value of field 'followHighlight'.
1949      * 
1950      * @param followHighlight the value of field 'followHighlight'.
1951      */
1952     public void setFollowHighlight(
1953             final boolean followHighlight) {
1954         this._followHighlight = followHighlight;
1955         this._has_followHighlight = true;
1956     }
1957
1958     /**
1959      * Sets the value of field 'followSelection'.
1960      * 
1961      * @param followSelection the value of field 'followSelection'.
1962      */
1963     public void setFollowSelection(
1964             final boolean followSelection) {
1965         this._followSelection = followSelection;
1966         this._has_followSelection = true;
1967     }
1968
1969     /**
1970      * Sets the value of field 'fontName'.
1971      * 
1972      * @param fontName the value of field 'fontName'.
1973      */
1974     public void setFontName(
1975             final java.lang.String fontName) {
1976         this._fontName = fontName;
1977     }
1978
1979     /**
1980      * Sets the value of field 'fontSize'.
1981      * 
1982      * @param fontSize the value of field 'fontSize'.
1983      */
1984     public void setFontSize(
1985             final int fontSize) {
1986         this._fontSize = fontSize;
1987         this._has_fontSize = true;
1988     }
1989
1990     /**
1991      * Sets the value of field 'fontStyle'.
1992      * 
1993      * @param fontStyle the value of field 'fontStyle'.
1994      */
1995     public void setFontStyle(
1996             final int fontStyle) {
1997         this._fontStyle = fontStyle;
1998         this._has_fontStyle = true;
1999     }
2000
2001     /**
2002      * Sets the value of field 'gatheredViews'.
2003      * 
2004      * @param gatheredViews the value of field 'gatheredViews'.
2005      */
2006     public void setGatheredViews(
2007             final boolean gatheredViews) {
2008         this._gatheredViews = gatheredViews;
2009         this._has_gatheredViews = true;
2010     }
2011
2012     /**
2013      * Sets the value of field 'height'.
2014      * 
2015      * @param height the value of field 'height'.
2016      */
2017     public void setHeight(
2018             final int height) {
2019         this._height = height;
2020         this._has_height = true;
2021     }
2022
2023     /**
2024      * 
2025      * 
2026      * @param index
2027      * @param vHiddenColumns
2028      * @throws java.lang.IndexOutOfBoundsException if the index
2029      * given is outside the bounds of the collection
2030      */
2031     public void setHiddenColumns(
2032             final int index,
2033             final jalview.schemabinding.version2.HiddenColumns vHiddenColumns)
2034     throws java.lang.IndexOutOfBoundsException {
2035         // check bounds for index
2036         if (index < 0 || index >= this._hiddenColumnsList.size()) {
2037             throw new IndexOutOfBoundsException("setHiddenColumns: Index value '" + index + "' not in range [0.." + (this._hiddenColumnsList.size() - 1) + "]");
2038         }
2039         
2040         this._hiddenColumnsList.set(index, vHiddenColumns);
2041     }
2042
2043     /**
2044      * 
2045      * 
2046      * @param vHiddenColumnsArray
2047      */
2048     public void setHiddenColumns(
2049             final jalview.schemabinding.version2.HiddenColumns[] vHiddenColumnsArray) {
2050         //-- copy array
2051         _hiddenColumnsList.clear();
2052         
2053         for (int i = 0; i < vHiddenColumnsArray.length; i++) {
2054                 this._hiddenColumnsList.add(vHiddenColumnsArray[i]);
2055         }
2056     }
2057
2058     /**
2059      * Sets the value of field 'id'. The field 'id' has the
2060      * following description: unique id used by jalview to
2061      * synchronize between stored and instantiated views
2062      *  
2063      * 
2064      * @param id the value of field 'id'.
2065      */
2066     public void setId(
2067             final java.lang.String id) {
2068         this._id = id;
2069     }
2070
2071     /**
2072      * Sets the value of field 'ignoreGapsinConsensus'.
2073      * 
2074      * @param ignoreGapsinConsensus the value of field
2075      * 'ignoreGapsinConsensus'.
2076      */
2077     public void setIgnoreGapsinConsensus(
2078             final boolean ignoreGapsinConsensus) {
2079         this._ignoreGapsinConsensus = ignoreGapsinConsensus;
2080         this._has_ignoreGapsinConsensus = true;
2081     }
2082
2083     /**
2084      * Sets the value of field 'pidSelected'.
2085      * 
2086      * @param pidSelected the value of field 'pidSelected'.
2087      */
2088     public void setPidSelected(
2089             final boolean pidSelected) {
2090         this._pidSelected = pidSelected;
2091         this._has_pidSelected = true;
2092     }
2093
2094     /**
2095      * Sets the value of field 'pidThreshold'.
2096      * 
2097      * @param pidThreshold the value of field 'pidThreshold'.
2098      */
2099     public void setPidThreshold(
2100             final int pidThreshold) {
2101         this._pidThreshold = pidThreshold;
2102         this._has_pidThreshold = true;
2103     }
2104
2105     /**
2106      * Sets the value of field 'renderGaps'.
2107      * 
2108      * @param renderGaps the value of field 'renderGaps'.
2109      */
2110     public void setRenderGaps(
2111             final boolean renderGaps) {
2112         this._renderGaps = renderGaps;
2113         this._has_renderGaps = true;
2114     }
2115
2116     /**
2117      * Sets the value of field 'rightAlignIds'.
2118      * 
2119      * @param rightAlignIds the value of field 'rightAlignIds'.
2120      */
2121     public void setRightAlignIds(
2122             final boolean rightAlignIds) {
2123         this._rightAlignIds = rightAlignIds;
2124         this._has_rightAlignIds = true;
2125     }
2126
2127     /**
2128      * Sets the value of field 'sequenceSetId'.
2129      * 
2130      * @param sequenceSetId the value of field 'sequenceSetId'.
2131      */
2132     public void setSequenceSetId(
2133             final java.lang.String sequenceSetId) {
2134         this._sequenceSetId = sequenceSetId;
2135     }
2136
2137     /**
2138      * Sets the value of field 'showAnnotation'.
2139      * 
2140      * @param showAnnotation the value of field 'showAnnotation'.
2141      */
2142     public void setShowAnnotation(
2143             final boolean showAnnotation) {
2144         this._showAnnotation = showAnnotation;
2145         this._has_showAnnotation = true;
2146     }
2147
2148     /**
2149      * Sets the value of field 'showBoxes'.
2150      * 
2151      * @param showBoxes the value of field 'showBoxes'.
2152      */
2153     public void setShowBoxes(
2154             final boolean showBoxes) {
2155         this._showBoxes = showBoxes;
2156         this._has_showBoxes = true;
2157     }
2158
2159     /**
2160      * Sets the value of field 'showColourText'.
2161      * 
2162      * @param showColourText the value of field 'showColourText'.
2163      */
2164     public void setShowColourText(
2165             final boolean showColourText) {
2166         this._showColourText = showColourText;
2167         this._has_showColourText = true;
2168     }
2169
2170     /**
2171      * Sets the value of field 'showConsensusHistogram'.
2172      * 
2173      * @param showConsensusHistogram the value of field
2174      * 'showConsensusHistogram'.
2175      */
2176     public void setShowConsensusHistogram(
2177             final boolean showConsensusHistogram) {
2178         this._showConsensusHistogram = showConsensusHistogram;
2179         this._has_showConsensusHistogram = true;
2180     }
2181
2182     /**
2183      * Sets the value of field 'showDbRefTooltip'.
2184      * 
2185      * @param showDbRefTooltip the value of field 'showDbRefTooltip'
2186      */
2187     public void setShowDbRefTooltip(
2188             final boolean showDbRefTooltip) {
2189         this._showDbRefTooltip = showDbRefTooltip;
2190         this._has_showDbRefTooltip = true;
2191     }
2192
2193     /**
2194      * Sets the value of field 'showFullId'.
2195      * 
2196      * @param showFullId the value of field 'showFullId'.
2197      */
2198     public void setShowFullId(
2199             final boolean showFullId) {
2200         this._showFullId = showFullId;
2201         this._has_showFullId = true;
2202     }
2203
2204     /**
2205      * Sets the value of field 'showGroupConsensus'.
2206      * 
2207      * @param showGroupConsensus the value of field
2208      * 'showGroupConsensus'.
2209      */
2210     public void setShowGroupConsensus(
2211             final boolean showGroupConsensus) {
2212         this._showGroupConsensus = showGroupConsensus;
2213         this._has_showGroupConsensus = true;
2214     }
2215
2216     /**
2217      * Sets the value of field 'showGroupConservation'.
2218      * 
2219      * @param showGroupConservation the value of field
2220      * 'showGroupConservation'.
2221      */
2222     public void setShowGroupConservation(
2223             final boolean showGroupConservation) {
2224         this._showGroupConservation = showGroupConservation;
2225         this._has_showGroupConservation = true;
2226     }
2227
2228     /**
2229      * Sets the value of field 'showNPfeatureTooltip'.
2230      * 
2231      * @param showNPfeatureTooltip the value of field
2232      * 'showNPfeatureTooltip'.
2233      */
2234     public void setShowNPfeatureTooltip(
2235             final boolean showNPfeatureTooltip) {
2236         this._showNPfeatureTooltip = showNPfeatureTooltip;
2237         this._has_showNPfeatureTooltip = true;
2238     }
2239
2240     /**
2241      * Sets the value of field 'showSequenceFeatures'.
2242      * 
2243      * @param showSequenceFeatures the value of field
2244      * 'showSequenceFeatures'.
2245      */
2246     public void setShowSequenceFeatures(
2247             final boolean showSequenceFeatures) {
2248         this._showSequenceFeatures = showSequenceFeatures;
2249         this._has_showSequenceFeatures = true;
2250     }
2251
2252     /**
2253      * Sets the value of field 'showSequenceLogo'.
2254      * 
2255      * @param showSequenceLogo the value of field 'showSequenceLogo'
2256      */
2257     public void setShowSequenceLogo(
2258             final boolean showSequenceLogo) {
2259         this._showSequenceLogo = showSequenceLogo;
2260         this._has_showSequenceLogo = true;
2261     }
2262
2263     /**
2264      * Sets the value of field 'showText'.
2265      * 
2266      * @param showText the value of field 'showText'.
2267      */
2268     public void setShowText(
2269             final boolean showText) {
2270         this._showText = showText;
2271         this._has_showText = true;
2272     }
2273
2274     /**
2275      * Sets the value of field 'showUnconserved'.
2276      * 
2277      * @param showUnconserved the value of field 'showUnconserved'.
2278      */
2279     public void setShowUnconserved(
2280             final boolean showUnconserved) {
2281         this._showUnconserved = showUnconserved;
2282         this._has_showUnconserved = true;
2283     }
2284
2285     /**
2286      * Sets the value of field 'startRes'.
2287      * 
2288      * @param startRes the value of field 'startRes'.
2289      */
2290     public void setStartRes(
2291             final int startRes) {
2292         this._startRes = startRes;
2293         this._has_startRes = true;
2294     }
2295
2296     /**
2297      * Sets the value of field 'startSeq'.
2298      * 
2299      * @param startSeq the value of field 'startSeq'.
2300      */
2301     public void setStartSeq(
2302             final int startSeq) {
2303         this._startSeq = startSeq;
2304         this._has_startSeq = true;
2305     }
2306
2307     /**
2308      * Sets the value of field 'textCol1'.
2309      * 
2310      * @param textCol1 the value of field 'textCol1'.
2311      */
2312     public void setTextCol1(
2313             final int textCol1) {
2314         this._textCol1 = textCol1;
2315         this._has_textCol1 = true;
2316     }
2317
2318     /**
2319      * Sets the value of field 'textCol2'.
2320      * 
2321      * @param textCol2 the value of field 'textCol2'.
2322      */
2323     public void setTextCol2(
2324             final int textCol2) {
2325         this._textCol2 = textCol2;
2326         this._has_textCol2 = true;
2327     }
2328
2329     /**
2330      * Sets the value of field 'textColThreshold'.
2331      * 
2332      * @param textColThreshold the value of field 'textColThreshold'
2333      */
2334     public void setTextColThreshold(
2335             final int textColThreshold) {
2336         this._textColThreshold = textColThreshold;
2337         this._has_textColThreshold = true;
2338     }
2339
2340     /**
2341      * Sets the value of field 'title'.
2342      * 
2343      * @param title the value of field 'title'.
2344      */
2345     public void setTitle(
2346             final java.lang.String title) {
2347         this._title = title;
2348     }
2349
2350     /**
2351      * Sets the value of field 'viewName'.
2352      * 
2353      * @param viewName the value of field 'viewName'.
2354      */
2355     public void setViewName(
2356             final java.lang.String viewName) {
2357         this._viewName = viewName;
2358     }
2359
2360     /**
2361      * Sets the value of field 'width'.
2362      * 
2363      * @param width the value of field 'width'.
2364      */
2365     public void setWidth(
2366             final int width) {
2367         this._width = width;
2368         this._has_width = true;
2369     }
2370
2371     /**
2372      * Sets the value of field 'wrapAlignment'.
2373      * 
2374      * @param wrapAlignment the value of field 'wrapAlignment'.
2375      */
2376     public void setWrapAlignment(
2377             final boolean wrapAlignment) {
2378         this._wrapAlignment = wrapAlignment;
2379         this._has_wrapAlignment = true;
2380     }
2381
2382     /**
2383      * Sets the value of field 'xpos'.
2384      * 
2385      * @param xpos the value of field 'xpos'.
2386      */
2387     public void setXpos(
2388             final int xpos) {
2389         this._xpos = xpos;
2390         this._has_xpos = true;
2391     }
2392
2393     /**
2394      * Sets the value of field 'ypos'.
2395      * 
2396      * @param ypos the value of field 'ypos'.
2397      */
2398     public void setYpos(
2399             final int ypos) {
2400         this._ypos = ypos;
2401         this._has_ypos = true;
2402     }
2403
2404     /**
2405      * Method unmarshal.
2406      * 
2407      * @param reader
2408      * @throws org.exolab.castor.xml.MarshalException if object is
2409      * null or if any SAXException is thrown during marshaling
2410      * @throws org.exolab.castor.xml.ValidationException if this
2411      * object is an invalid instance according to the schema
2412      * @return the unmarshaled
2413      * jalview.schemabinding.version2.Viewport
2414      */
2415     public static jalview.schemabinding.version2.Viewport unmarshal(
2416             final java.io.Reader reader)
2417     throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
2418         return (jalview.schemabinding.version2.Viewport) Unmarshaller.unmarshal(jalview.schemabinding.version2.Viewport.class, reader);
2419     }
2420
2421     /**
2422      * 
2423      * 
2424      * @throws org.exolab.castor.xml.ValidationException if this
2425      * object is an invalid instance according to the schema
2426      */
2427     public void validate(
2428     )
2429     throws org.exolab.castor.xml.ValidationException {
2430         org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
2431         validator.validate(this);
2432     }
2433
2434 }