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