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