extended Colour element with additional optional attributes for graduated colour
[jalview.git] / src / jalview / binding / Viewport.java
1 /*
2  * Jalview - A Sequence Alignment Editor and Viewer (Version 2.4.1)
3  * Copyright (C) 2009 AM Waterhouse, J Procter, G Barton, M Clamp, S Searle
4  * 
5  * This program is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU General Public License
7  * as published by the Free Software Foundation; either version 2
8  * of the License, or (at your option) any later version.
9  * 
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13  * GNU General Public License for more details.
14  * 
15  * You should have received a copy of the GNU General Public License
16  * along with this program; if not, write to the Free Software
17  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA
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       //----------------/
287      //- Constructors -/
288     //----------------/
289
290     public Viewport() {
291         super();
292     }
293
294
295       //-----------/
296      //- Methods -/
297     //-----------/
298
299     /**
300      */
301     public void deleteConsThreshold(
302     ) {
303         this._has_consThreshold= false;
304     }
305
306     /**
307      */
308     public void deleteConservationSelected(
309     ) {
310         this._has_conservationSelected= false;
311     }
312
313     /**
314      */
315     public void deleteFontSize(
316     ) {
317         this._has_fontSize= false;
318     }
319
320     /**
321      */
322     public void deleteFontStyle(
323     ) {
324         this._has_fontStyle= false;
325     }
326
327     /**
328      */
329     public void deleteHeight(
330     ) {
331         this._has_height= false;
332     }
333
334     /**
335      */
336     public void deletePidSelected(
337     ) {
338         this._has_pidSelected= false;
339     }
340
341     /**
342      */
343     public void deletePidThreshold(
344     ) {
345         this._has_pidThreshold= false;
346     }
347
348     /**
349      */
350     public void deleteRenderGaps(
351     ) {
352         this._has_renderGaps= false;
353     }
354
355     /**
356      */
357     public void deleteShowAnnotation(
358     ) {
359         this._has_showAnnotation= false;
360     }
361
362     /**
363      */
364     public void deleteShowBoxes(
365     ) {
366         this._has_showBoxes= false;
367     }
368
369     /**
370      */
371     public void deleteShowColourText(
372     ) {
373         this._has_showColourText= false;
374     }
375
376     /**
377      */
378     public void deleteShowConservation(
379     ) {
380         this._has_showConservation= false;
381     }
382
383     /**
384      */
385     public void deleteShowFullId(
386     ) {
387         this._has_showFullId= false;
388     }
389
390     /**
391      */
392     public void deleteShowIdentity(
393     ) {
394         this._has_showIdentity= false;
395     }
396
397     /**
398      */
399     public void deleteShowQuality(
400     ) {
401         this._has_showQuality= false;
402     }
403
404     /**
405      */
406     public void deleteShowSequenceFeatures(
407     ) {
408         this._has_showSequenceFeatures= false;
409     }
410
411     /**
412      */
413     public void deleteShowText(
414     ) {
415         this._has_showText= false;
416     }
417
418     /**
419      */
420     public void deleteStartRes(
421     ) {
422         this._has_startRes= false;
423     }
424
425     /**
426      */
427     public void deleteStartSeq(
428     ) {
429         this._has_startSeq= false;
430     }
431
432     /**
433      */
434     public void deleteWidth(
435     ) {
436         this._has_width= false;
437     }
438
439     /**
440      */
441     public void deleteWrapAlignment(
442     ) {
443         this._has_wrapAlignment= false;
444     }
445
446     /**
447      */
448     public void deleteXpos(
449     ) {
450         this._has_xpos= false;
451     }
452
453     /**
454      */
455     public void deleteYpos(
456     ) {
457         this._has_ypos= false;
458     }
459
460     /**
461      * Returns the value of field 'bgColour'.
462      * 
463      * @return the value of field 'BgColour'.
464      */
465     public java.lang.String getBgColour(
466     ) {
467         return this._bgColour;
468     }
469
470     /**
471      * Returns the value of field 'consThreshold'.
472      * 
473      * @return the value of field 'ConsThreshold'.
474      */
475     public int getConsThreshold(
476     ) {
477         return this._consThreshold;
478     }
479
480     /**
481      * Returns the value of field 'conservationSelected'.
482      * 
483      * @return the value of field 'ConservationSelected'.
484      */
485     public boolean getConservationSelected(
486     ) {
487         return this._conservationSelected;
488     }
489
490     /**
491      * Returns the value of field 'fontName'.
492      * 
493      * @return the value of field 'FontName'.
494      */
495     public java.lang.String getFontName(
496     ) {
497         return this._fontName;
498     }
499
500     /**
501      * Returns the value of field 'fontSize'.
502      * 
503      * @return the value of field 'FontSize'.
504      */
505     public int getFontSize(
506     ) {
507         return this._fontSize;
508     }
509
510     /**
511      * Returns the value of field 'fontStyle'.
512      * 
513      * @return the value of field 'FontStyle'.
514      */
515     public int getFontStyle(
516     ) {
517         return this._fontStyle;
518     }
519
520     /**
521      * Returns the value of field 'height'.
522      * 
523      * @return the value of field 'Height'.
524      */
525     public int getHeight(
526     ) {
527         return this._height;
528     }
529
530     /**
531      * Returns the value of field 'pidSelected'.
532      * 
533      * @return the value of field 'PidSelected'.
534      */
535     public boolean getPidSelected(
536     ) {
537         return this._pidSelected;
538     }
539
540     /**
541      * Returns the value of field 'pidThreshold'.
542      * 
543      * @return the value of field 'PidThreshold'.
544      */
545     public int getPidThreshold(
546     ) {
547         return this._pidThreshold;
548     }
549
550     /**
551      * Returns the value of field 'renderGaps'.
552      * 
553      * @return the value of field 'RenderGaps'.
554      */
555     public boolean getRenderGaps(
556     ) {
557         return this._renderGaps;
558     }
559
560     /**
561      * Returns the value of field 'showAnnotation'.
562      * 
563      * @return the value of field 'ShowAnnotation'.
564      */
565     public boolean getShowAnnotation(
566     ) {
567         return this._showAnnotation;
568     }
569
570     /**
571      * Returns the value of field 'showBoxes'.
572      * 
573      * @return the value of field 'ShowBoxes'.
574      */
575     public boolean getShowBoxes(
576     ) {
577         return this._showBoxes;
578     }
579
580     /**
581      * Returns the value of field 'showColourText'.
582      * 
583      * @return the value of field 'ShowColourText'.
584      */
585     public boolean getShowColourText(
586     ) {
587         return this._showColourText;
588     }
589
590     /**
591      * Returns the value of field 'showConservation'.
592      * 
593      * @return the value of field 'ShowConservation'.
594      */
595     public boolean getShowConservation(
596     ) {
597         return this._showConservation;
598     }
599
600     /**
601      * Returns the value of field 'showFullId'.
602      * 
603      * @return the value of field 'ShowFullId'.
604      */
605     public boolean getShowFullId(
606     ) {
607         return this._showFullId;
608     }
609
610     /**
611      * Returns the value of field 'showIdentity'.
612      * 
613      * @return the value of field 'ShowIdentity'.
614      */
615     public boolean getShowIdentity(
616     ) {
617         return this._showIdentity;
618     }
619
620     /**
621      * Returns the value of field 'showQuality'.
622      * 
623      * @return the value of field 'ShowQuality'.
624      */
625     public boolean getShowQuality(
626     ) {
627         return this._showQuality;
628     }
629
630     /**
631      * Returns the value of field 'showSequenceFeatures'.
632      * 
633      * @return the value of field 'ShowSequenceFeatures'.
634      */
635     public boolean getShowSequenceFeatures(
636     ) {
637         return this._showSequenceFeatures;
638     }
639
640     /**
641      * Returns the value of field 'showText'.
642      * 
643      * @return the value of field 'ShowText'.
644      */
645     public boolean getShowText(
646     ) {
647         return this._showText;
648     }
649
650     /**
651      * Returns the value of field 'startRes'.
652      * 
653      * @return the value of field 'StartRes'.
654      */
655     public int getStartRes(
656     ) {
657         return this._startRes;
658     }
659
660     /**
661      * Returns the value of field 'startSeq'.
662      * 
663      * @return the value of field 'StartSeq'.
664      */
665     public int getStartSeq(
666     ) {
667         return this._startSeq;
668     }
669
670     /**
671      * Returns the value of field 'title'.
672      * 
673      * @return the value of field 'Title'.
674      */
675     public java.lang.String getTitle(
676     ) {
677         return this._title;
678     }
679
680     /**
681      * Returns the value of field 'width'.
682      * 
683      * @return the value of field 'Width'.
684      */
685     public int getWidth(
686     ) {
687         return this._width;
688     }
689
690     /**
691      * Returns the value of field 'wrapAlignment'.
692      * 
693      * @return the value of field 'WrapAlignment'.
694      */
695     public boolean getWrapAlignment(
696     ) {
697         return this._wrapAlignment;
698     }
699
700     /**
701      * Returns the value of field 'xpos'.
702      * 
703      * @return the value of field 'Xpos'.
704      */
705     public int getXpos(
706     ) {
707         return this._xpos;
708     }
709
710     /**
711      * Returns the value of field 'ypos'.
712      * 
713      * @return the value of field 'Ypos'.
714      */
715     public int getYpos(
716     ) {
717         return this._ypos;
718     }
719
720     /**
721      * Method hasConsThreshold.
722      * 
723      * @return true if at least one ConsThreshold has been added
724      */
725     public boolean hasConsThreshold(
726     ) {
727         return this._has_consThreshold;
728     }
729
730     /**
731      * Method hasConservationSelected.
732      * 
733      * @return true if at least one ConservationSelected has been
734      * added
735      */
736     public boolean hasConservationSelected(
737     ) {
738         return this._has_conservationSelected;
739     }
740
741     /**
742      * Method hasFontSize.
743      * 
744      * @return true if at least one FontSize has been added
745      */
746     public boolean hasFontSize(
747     ) {
748         return this._has_fontSize;
749     }
750
751     /**
752      * Method hasFontStyle.
753      * 
754      * @return true if at least one FontStyle has been added
755      */
756     public boolean hasFontStyle(
757     ) {
758         return this._has_fontStyle;
759     }
760
761     /**
762      * Method hasHeight.
763      * 
764      * @return true if at least one Height has been added
765      */
766     public boolean hasHeight(
767     ) {
768         return this._has_height;
769     }
770
771     /**
772      * Method hasPidSelected.
773      * 
774      * @return true if at least one PidSelected has been added
775      */
776     public boolean hasPidSelected(
777     ) {
778         return this._has_pidSelected;
779     }
780
781     /**
782      * Method hasPidThreshold.
783      * 
784      * @return true if at least one PidThreshold has been added
785      */
786     public boolean hasPidThreshold(
787     ) {
788         return this._has_pidThreshold;
789     }
790
791     /**
792      * Method hasRenderGaps.
793      * 
794      * @return true if at least one RenderGaps has been added
795      */
796     public boolean hasRenderGaps(
797     ) {
798         return this._has_renderGaps;
799     }
800
801     /**
802      * Method hasShowAnnotation.
803      * 
804      * @return true if at least one ShowAnnotation has been added
805      */
806     public boolean hasShowAnnotation(
807     ) {
808         return this._has_showAnnotation;
809     }
810
811     /**
812      * Method hasShowBoxes.
813      * 
814      * @return true if at least one ShowBoxes has been added
815      */
816     public boolean hasShowBoxes(
817     ) {
818         return this._has_showBoxes;
819     }
820
821     /**
822      * Method hasShowColourText.
823      * 
824      * @return true if at least one ShowColourText has been added
825      */
826     public boolean hasShowColourText(
827     ) {
828         return this._has_showColourText;
829     }
830
831     /**
832      * Method hasShowConservation.
833      * 
834      * @return true if at least one ShowConservation has been added
835      */
836     public boolean hasShowConservation(
837     ) {
838         return this._has_showConservation;
839     }
840
841     /**
842      * Method hasShowFullId.
843      * 
844      * @return true if at least one ShowFullId has been added
845      */
846     public boolean hasShowFullId(
847     ) {
848         return this._has_showFullId;
849     }
850
851     /**
852      * Method hasShowIdentity.
853      * 
854      * @return true if at least one ShowIdentity has been added
855      */
856     public boolean hasShowIdentity(
857     ) {
858         return this._has_showIdentity;
859     }
860
861     /**
862      * Method hasShowQuality.
863      * 
864      * @return true if at least one ShowQuality has been added
865      */
866     public boolean hasShowQuality(
867     ) {
868         return this._has_showQuality;
869     }
870
871     /**
872      * Method hasShowSequenceFeatures.
873      * 
874      * @return true if at least one ShowSequenceFeatures has been
875      * added
876      */
877     public boolean hasShowSequenceFeatures(
878     ) {
879         return this._has_showSequenceFeatures;
880     }
881
882     /**
883      * Method hasShowText.
884      * 
885      * @return true if at least one ShowText has been added
886      */
887     public boolean hasShowText(
888     ) {
889         return this._has_showText;
890     }
891
892     /**
893      * Method hasStartRes.
894      * 
895      * @return true if at least one StartRes has been added
896      */
897     public boolean hasStartRes(
898     ) {
899         return this._has_startRes;
900     }
901
902     /**
903      * Method hasStartSeq.
904      * 
905      * @return true if at least one StartSeq has been added
906      */
907     public boolean hasStartSeq(
908     ) {
909         return this._has_startSeq;
910     }
911
912     /**
913      * Method hasWidth.
914      * 
915      * @return true if at least one Width has been added
916      */
917     public boolean hasWidth(
918     ) {
919         return this._has_width;
920     }
921
922     /**
923      * Method hasWrapAlignment.
924      * 
925      * @return true if at least one WrapAlignment has been added
926      */
927     public boolean hasWrapAlignment(
928     ) {
929         return this._has_wrapAlignment;
930     }
931
932     /**
933      * Method hasXpos.
934      * 
935      * @return true if at least one Xpos has been added
936      */
937     public boolean hasXpos(
938     ) {
939         return this._has_xpos;
940     }
941
942     /**
943      * Method hasYpos.
944      * 
945      * @return true if at least one Ypos has been added
946      */
947     public boolean hasYpos(
948     ) {
949         return this._has_ypos;
950     }
951
952     /**
953      * Returns the value of field 'conservationSelected'.
954      * 
955      * @return the value of field 'ConservationSelected'.
956      */
957     public boolean isConservationSelected(
958     ) {
959         return this._conservationSelected;
960     }
961
962     /**
963      * Returns the value of field 'pidSelected'.
964      * 
965      * @return the value of field 'PidSelected'.
966      */
967     public boolean isPidSelected(
968     ) {
969         return this._pidSelected;
970     }
971
972     /**
973      * Returns the value of field 'renderGaps'.
974      * 
975      * @return the value of field 'RenderGaps'.
976      */
977     public boolean isRenderGaps(
978     ) {
979         return this._renderGaps;
980     }
981
982     /**
983      * Returns the value of field 'showAnnotation'.
984      * 
985      * @return the value of field 'ShowAnnotation'.
986      */
987     public boolean isShowAnnotation(
988     ) {
989         return this._showAnnotation;
990     }
991
992     /**
993      * Returns the value of field 'showBoxes'.
994      * 
995      * @return the value of field 'ShowBoxes'.
996      */
997     public boolean isShowBoxes(
998     ) {
999         return this._showBoxes;
1000     }
1001
1002     /**
1003      * Returns the value of field 'showColourText'.
1004      * 
1005      * @return the value of field 'ShowColourText'.
1006      */
1007     public boolean isShowColourText(
1008     ) {
1009         return this._showColourText;
1010     }
1011
1012     /**
1013      * Returns the value of field 'showConservation'.
1014      * 
1015      * @return the value of field 'ShowConservation'.
1016      */
1017     public boolean isShowConservation(
1018     ) {
1019         return this._showConservation;
1020     }
1021
1022     /**
1023      * Returns the value of field 'showFullId'.
1024      * 
1025      * @return the value of field 'ShowFullId'.
1026      */
1027     public boolean isShowFullId(
1028     ) {
1029         return this._showFullId;
1030     }
1031
1032     /**
1033      * Returns the value of field 'showIdentity'.
1034      * 
1035      * @return the value of field 'ShowIdentity'.
1036      */
1037     public boolean isShowIdentity(
1038     ) {
1039         return this._showIdentity;
1040     }
1041
1042     /**
1043      * Returns the value of field 'showQuality'.
1044      * 
1045      * @return the value of field 'ShowQuality'.
1046      */
1047     public boolean isShowQuality(
1048     ) {
1049         return this._showQuality;
1050     }
1051
1052     /**
1053      * Returns the value of field 'showSequenceFeatures'.
1054      * 
1055      * @return the value of field 'ShowSequenceFeatures'.
1056      */
1057     public boolean isShowSequenceFeatures(
1058     ) {
1059         return this._showSequenceFeatures;
1060     }
1061
1062     /**
1063      * Returns the value of field 'showText'.
1064      * 
1065      * @return the value of field 'ShowText'.
1066      */
1067     public boolean isShowText(
1068     ) {
1069         return this._showText;
1070     }
1071
1072     /**
1073      * Method isValid.
1074      * 
1075      * @return true if this object is valid according to the schema
1076      */
1077     public boolean isValid(
1078     ) {
1079         try {
1080             validate();
1081         } catch (org.exolab.castor.xml.ValidationException vex) {
1082             return false;
1083         }
1084         return true;
1085     }
1086
1087     /**
1088      * Returns the value of field 'wrapAlignment'.
1089      * 
1090      * @return the value of field 'WrapAlignment'.
1091      */
1092     public boolean isWrapAlignment(
1093     ) {
1094         return this._wrapAlignment;
1095     }
1096
1097     /**
1098      * 
1099      * 
1100      * @param out
1101      * @throws org.exolab.castor.xml.MarshalException if object is
1102      * null or if any SAXException is thrown during marshaling
1103      * @throws org.exolab.castor.xml.ValidationException if this
1104      * object is an invalid instance according to the schema
1105      */
1106     public void marshal(
1107             final java.io.Writer out)
1108     throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
1109         Marshaller.marshal(this, out);
1110     }
1111
1112     /**
1113      * 
1114      * 
1115      * @param handler
1116      * @throws java.io.IOException if an IOException occurs during
1117      * marshaling
1118      * @throws org.exolab.castor.xml.ValidationException if this
1119      * object is an invalid instance according to the schema
1120      * @throws org.exolab.castor.xml.MarshalException if object is
1121      * null or if any SAXException is thrown during marshaling
1122      */
1123     public void marshal(
1124             final org.xml.sax.ContentHandler handler)
1125     throws java.io.IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
1126         Marshaller.marshal(this, handler);
1127     }
1128
1129     /**
1130      * Sets the value of field 'bgColour'.
1131      * 
1132      * @param bgColour the value of field 'bgColour'.
1133      */
1134     public void setBgColour(
1135             final java.lang.String bgColour) {
1136         this._bgColour = bgColour;
1137     }
1138
1139     /**
1140      * Sets the value of field 'consThreshold'.
1141      * 
1142      * @param consThreshold the value of field 'consThreshold'.
1143      */
1144     public void setConsThreshold(
1145             final int consThreshold) {
1146         this._consThreshold = consThreshold;
1147         this._has_consThreshold = true;
1148     }
1149
1150     /**
1151      * Sets the value of field 'conservationSelected'.
1152      * 
1153      * @param conservationSelected the value of field
1154      * 'conservationSelected'.
1155      */
1156     public void setConservationSelected(
1157             final boolean conservationSelected) {
1158         this._conservationSelected = conservationSelected;
1159         this._has_conservationSelected = true;
1160     }
1161
1162     /**
1163      * Sets the value of field 'fontName'.
1164      * 
1165      * @param fontName the value of field 'fontName'.
1166      */
1167     public void setFontName(
1168             final java.lang.String fontName) {
1169         this._fontName = fontName;
1170     }
1171
1172     /**
1173      * Sets the value of field 'fontSize'.
1174      * 
1175      * @param fontSize the value of field 'fontSize'.
1176      */
1177     public void setFontSize(
1178             final int fontSize) {
1179         this._fontSize = fontSize;
1180         this._has_fontSize = true;
1181     }
1182
1183     /**
1184      * Sets the value of field 'fontStyle'.
1185      * 
1186      * @param fontStyle the value of field 'fontStyle'.
1187      */
1188     public void setFontStyle(
1189             final int fontStyle) {
1190         this._fontStyle = fontStyle;
1191         this._has_fontStyle = true;
1192     }
1193
1194     /**
1195      * Sets the value of field 'height'.
1196      * 
1197      * @param height the value of field 'height'.
1198      */
1199     public void setHeight(
1200             final int height) {
1201         this._height = height;
1202         this._has_height = true;
1203     }
1204
1205     /**
1206      * Sets the value of field 'pidSelected'.
1207      * 
1208      * @param pidSelected the value of field 'pidSelected'.
1209      */
1210     public void setPidSelected(
1211             final boolean pidSelected) {
1212         this._pidSelected = pidSelected;
1213         this._has_pidSelected = true;
1214     }
1215
1216     /**
1217      * Sets the value of field 'pidThreshold'.
1218      * 
1219      * @param pidThreshold the value of field 'pidThreshold'.
1220      */
1221     public void setPidThreshold(
1222             final int pidThreshold) {
1223         this._pidThreshold = pidThreshold;
1224         this._has_pidThreshold = true;
1225     }
1226
1227     /**
1228      * Sets the value of field 'renderGaps'.
1229      * 
1230      * @param renderGaps the value of field 'renderGaps'.
1231      */
1232     public void setRenderGaps(
1233             final boolean renderGaps) {
1234         this._renderGaps = renderGaps;
1235         this._has_renderGaps = true;
1236     }
1237
1238     /**
1239      * Sets the value of field 'showAnnotation'.
1240      * 
1241      * @param showAnnotation the value of field 'showAnnotation'.
1242      */
1243     public void setShowAnnotation(
1244             final boolean showAnnotation) {
1245         this._showAnnotation = showAnnotation;
1246         this._has_showAnnotation = true;
1247     }
1248
1249     /**
1250      * Sets the value of field 'showBoxes'.
1251      * 
1252      * @param showBoxes the value of field 'showBoxes'.
1253      */
1254     public void setShowBoxes(
1255             final boolean showBoxes) {
1256         this._showBoxes = showBoxes;
1257         this._has_showBoxes = true;
1258     }
1259
1260     /**
1261      * Sets the value of field 'showColourText'.
1262      * 
1263      * @param showColourText the value of field 'showColourText'.
1264      */
1265     public void setShowColourText(
1266             final boolean showColourText) {
1267         this._showColourText = showColourText;
1268         this._has_showColourText = true;
1269     }
1270
1271     /**
1272      * Sets the value of field 'showConservation'.
1273      * 
1274      * @param showConservation the value of field 'showConservation'
1275      */
1276     public void setShowConservation(
1277             final boolean showConservation) {
1278         this._showConservation = showConservation;
1279         this._has_showConservation = true;
1280     }
1281
1282     /**
1283      * Sets the value of field 'showFullId'.
1284      * 
1285      * @param showFullId the value of field 'showFullId'.
1286      */
1287     public void setShowFullId(
1288             final boolean showFullId) {
1289         this._showFullId = showFullId;
1290         this._has_showFullId = true;
1291     }
1292
1293     /**
1294      * Sets the value of field 'showIdentity'.
1295      * 
1296      * @param showIdentity the value of field 'showIdentity'.
1297      */
1298     public void setShowIdentity(
1299             final boolean showIdentity) {
1300         this._showIdentity = showIdentity;
1301         this._has_showIdentity = true;
1302     }
1303
1304     /**
1305      * Sets the value of field 'showQuality'.
1306      * 
1307      * @param showQuality the value of field 'showQuality'.
1308      */
1309     public void setShowQuality(
1310             final boolean showQuality) {
1311         this._showQuality = showQuality;
1312         this._has_showQuality = true;
1313     }
1314
1315     /**
1316      * Sets the value of field 'showSequenceFeatures'.
1317      * 
1318      * @param showSequenceFeatures the value of field
1319      * 'showSequenceFeatures'.
1320      */
1321     public void setShowSequenceFeatures(
1322             final boolean showSequenceFeatures) {
1323         this._showSequenceFeatures = showSequenceFeatures;
1324         this._has_showSequenceFeatures = true;
1325     }
1326
1327     /**
1328      * Sets the value of field 'showText'.
1329      * 
1330      * @param showText the value of field 'showText'.
1331      */
1332     public void setShowText(
1333             final boolean showText) {
1334         this._showText = showText;
1335         this._has_showText = true;
1336     }
1337
1338     /**
1339      * Sets the value of field 'startRes'.
1340      * 
1341      * @param startRes the value of field 'startRes'.
1342      */
1343     public void setStartRes(
1344             final int startRes) {
1345         this._startRes = startRes;
1346         this._has_startRes = true;
1347     }
1348
1349     /**
1350      * Sets the value of field 'startSeq'.
1351      * 
1352      * @param startSeq the value of field 'startSeq'.
1353      */
1354     public void setStartSeq(
1355             final int startSeq) {
1356         this._startSeq = startSeq;
1357         this._has_startSeq = true;
1358     }
1359
1360     /**
1361      * Sets the value of field 'title'.
1362      * 
1363      * @param title the value of field 'title'.
1364      */
1365     public void setTitle(
1366             final java.lang.String title) {
1367         this._title = title;
1368     }
1369
1370     /**
1371      * Sets the value of field 'width'.
1372      * 
1373      * @param width the value of field 'width'.
1374      */
1375     public void setWidth(
1376             final int width) {
1377         this._width = width;
1378         this._has_width = true;
1379     }
1380
1381     /**
1382      * Sets the value of field 'wrapAlignment'.
1383      * 
1384      * @param wrapAlignment the value of field 'wrapAlignment'.
1385      */
1386     public void setWrapAlignment(
1387             final boolean wrapAlignment) {
1388         this._wrapAlignment = wrapAlignment;
1389         this._has_wrapAlignment = true;
1390     }
1391
1392     /**
1393      * Sets the value of field 'xpos'.
1394      * 
1395      * @param xpos the value of field 'xpos'.
1396      */
1397     public void setXpos(
1398             final int xpos) {
1399         this._xpos = xpos;
1400         this._has_xpos = true;
1401     }
1402
1403     /**
1404      * Sets the value of field 'ypos'.
1405      * 
1406      * @param ypos the value of field 'ypos'.
1407      */
1408     public void setYpos(
1409             final int ypos) {
1410         this._ypos = ypos;
1411         this._has_ypos = true;
1412     }
1413
1414     /**
1415      * Method unmarshal.
1416      * 
1417      * @param reader
1418      * @throws org.exolab.castor.xml.MarshalException if object is
1419      * null or if any SAXException is thrown during marshaling
1420      * @throws org.exolab.castor.xml.ValidationException if this
1421      * object is an invalid instance according to the schema
1422      * @return the unmarshaled jalview.binding.Viewport
1423      */
1424     public static jalview.binding.Viewport unmarshal(
1425             final java.io.Reader reader)
1426     throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
1427         return (jalview.binding.Viewport) Unmarshaller.unmarshal(jalview.binding.Viewport.class, reader);
1428     }
1429
1430     /**
1431      * 
1432      * 
1433      * @throws org.exolab.castor.xml.ValidationException if this
1434      * object is an invalid instance according to the schema
1435      */
1436     public void validate(
1437     )
1438     throws org.exolab.castor.xml.ValidationException {
1439         org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
1440         validator.validate(this);
1441     }
1442
1443 }