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