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