2 * This class was automatically generated with
\r
3 * <a href="http://www.castor.org">Castor 0.9.6</a>, using an XML
\r
8 package jalview.schemabinding.version2;
\r
10 //---------------------------------/
\r
11 //- Imported classes and packages -/
\r
12 //---------------------------------/
\r
14 import java.io.IOException;
\r
15 import java.io.Reader;
\r
16 import java.io.Serializable;
\r
17 import java.io.Writer;
\r
18 import java.util.Enumeration;
\r
19 import java.util.Vector;
\r
20 import org.exolab.castor.xml.MarshalException;
\r
21 import org.exolab.castor.xml.Marshaller;
\r
22 import org.exolab.castor.xml.Unmarshaller;
\r
23 import org.exolab.castor.xml.ValidationException;
\r
24 import org.xml.sax.ContentHandler;
\r
29 * @version $Revision$ $Date$
\r
31 public class Viewport implements java.io.Serializable {
\r
34 //--------------------------/
\r
35 //- Class/Member Variables -/
\r
36 //--------------------------/
\r
39 * Field _conservationSelected
\r
41 private boolean _conservationSelected;
\r
44 * keeps track of state for field: _conservationSelected
\r
46 private boolean _has_conservationSelected;
\r
49 * Field _pidSelected
\r
51 private boolean _pidSelected;
\r
54 * keeps track of state for field: _pidSelected
\r
56 private boolean _has_pidSelected;
\r
61 private java.lang.String _bgColour;
\r
64 * Field _consThreshold
\r
66 private int _consThreshold;
\r
69 * keeps track of state for field: _consThreshold
\r
71 private boolean _has_consThreshold;
\r
74 * Field _pidThreshold
\r
76 private int _pidThreshold;
\r
79 * keeps track of state for field: _pidThreshold
\r
81 private boolean _has_pidThreshold;
\r
86 private java.lang.String _title;
\r
91 private boolean _showFullId;
\r
94 * keeps track of state for field: _showFullId
\r
96 private boolean _has_showFullId;
\r
101 private boolean _showText;
\r
104 * keeps track of state for field: _showText
\r
106 private boolean _has_showText;
\r
109 * Field _showColourText
\r
111 private boolean _showColourText;
\r
114 * keeps track of state for field: _showColourText
\r
116 private boolean _has_showColourText;
\r
121 private boolean _showBoxes;
\r
124 * keeps track of state for field: _showBoxes
\r
126 private boolean _has_showBoxes;
\r
129 * Field _wrapAlignment
\r
131 private boolean _wrapAlignment;
\r
134 * keeps track of state for field: _wrapAlignment
\r
136 private boolean _has_wrapAlignment;
\r
139 * Field _renderGaps
\r
141 private boolean _renderGaps;
\r
144 * keeps track of state for field: _renderGaps
\r
146 private boolean _has_renderGaps;
\r
149 * Field _showSequenceFeatures
\r
151 private boolean _showSequenceFeatures;
\r
154 * keeps track of state for field: _showSequenceFeatures
\r
156 private boolean _has_showSequenceFeatures;
\r
159 * Field _showAnnotation
\r
161 private boolean _showAnnotation;
\r
164 * keeps track of state for field: _showAnnotation
\r
166 private boolean _has_showAnnotation;
\r
169 * Field _showConservation
\r
171 private boolean _showConservation;
\r
174 * keeps track of state for field: _showConservation
\r
176 private boolean _has_showConservation;
\r
179 * Field _showQuality
\r
181 private boolean _showQuality;
\r
184 * keeps track of state for field: _showQuality
\r
186 private boolean _has_showQuality;
\r
189 * Field _showIdentity
\r
191 private boolean _showIdentity;
\r
194 * keeps track of state for field: _showIdentity
\r
196 private boolean _has_showIdentity;
\r
204 * keeps track of state for field: _xpos
\r
206 private boolean _has_xpos;
\r
214 * keeps track of state for field: _ypos
\r
216 private boolean _has_ypos;
\r
221 private int _width;
\r
224 * keeps track of state for field: _width
\r
226 private boolean _has_width;
\r
231 private int _height;
\r
234 * keeps track of state for field: _height
\r
236 private boolean _has_height;
\r
241 private int _startRes;
\r
244 * keeps track of state for field: _startRes
\r
246 private boolean _has_startRes;
\r
251 private int _startSeq;
\r
254 * keeps track of state for field: _startSeq
\r
256 private boolean _has_startSeq;
\r
261 private java.lang.String _fontName;
\r
266 private int _fontSize;
\r
269 * keeps track of state for field: _fontSize
\r
271 private boolean _has_fontSize;
\r
276 private int _fontStyle;
\r
279 * keeps track of state for field: _fontStyle
\r
281 private boolean _has_fontStyle;
\r
284 * Field _annotationColours
\r
286 private jalview.schemabinding.version2.AnnotationColours _annotationColours;
\r
289 * Field _hiddenColumnsList
\r
291 private java.util.Vector _hiddenColumnsList;
\r
294 //----------------/
\r
295 //- Constructors -/
\r
296 //----------------/
\r
298 public Viewport() {
\r
300 _hiddenColumnsList = new Vector();
\r
301 } //-- jalview.schemabinding.version2.Viewport()
\r
309 * Method addHiddenColumns
\r
313 * @param vHiddenColumns
\r
315 public void addHiddenColumns(jalview.schemabinding.version2.HiddenColumns vHiddenColumns)
\r
316 throws java.lang.IndexOutOfBoundsException
\r
318 _hiddenColumnsList.addElement(vHiddenColumns);
\r
319 } //-- void addHiddenColumns(jalview.schemabinding.version2.HiddenColumns)
\r
322 * Method addHiddenColumns
\r
327 * @param vHiddenColumns
\r
329 public void addHiddenColumns(int index, jalview.schemabinding.version2.HiddenColumns vHiddenColumns)
\r
330 throws java.lang.IndexOutOfBoundsException
\r
332 _hiddenColumnsList.insertElementAt(vHiddenColumns, index);
\r
333 } //-- void addHiddenColumns(int, jalview.schemabinding.version2.HiddenColumns)
\r
336 * Method deleteConsThreshold
\r
339 public void deleteConsThreshold()
\r
341 this._has_consThreshold= false;
\r
342 } //-- void deleteConsThreshold()
\r
345 * Method deleteConservationSelected
\r
348 public void deleteConservationSelected()
\r
350 this._has_conservationSelected= false;
\r
351 } //-- void deleteConservationSelected()
\r
354 * Method deleteFontSize
\r
357 public void deleteFontSize()
\r
359 this._has_fontSize= false;
\r
360 } //-- void deleteFontSize()
\r
363 * Method deleteFontStyle
\r
366 public void deleteFontStyle()
\r
368 this._has_fontStyle= false;
\r
369 } //-- void deleteFontStyle()
\r
372 * Method deleteHeight
\r
375 public void deleteHeight()
\r
377 this._has_height= false;
\r
378 } //-- void deleteHeight()
\r
381 * Method deletePidSelected
\r
384 public void deletePidSelected()
\r
386 this._has_pidSelected= false;
\r
387 } //-- void deletePidSelected()
\r
390 * Method deletePidThreshold
\r
393 public void deletePidThreshold()
\r
395 this._has_pidThreshold= false;
\r
396 } //-- void deletePidThreshold()
\r
399 * Method deleteRenderGaps
\r
402 public void deleteRenderGaps()
\r
404 this._has_renderGaps= false;
\r
405 } //-- void deleteRenderGaps()
\r
408 * Method deleteShowAnnotation
\r
411 public void deleteShowAnnotation()
\r
413 this._has_showAnnotation= false;
\r
414 } //-- void deleteShowAnnotation()
\r
417 * Method deleteShowBoxes
\r
420 public void deleteShowBoxes()
\r
422 this._has_showBoxes= false;
\r
423 } //-- void deleteShowBoxes()
\r
426 * Method deleteShowColourText
\r
429 public void deleteShowColourText()
\r
431 this._has_showColourText= false;
\r
432 } //-- void deleteShowColourText()
\r
435 * Method deleteShowConservation
\r
438 public void deleteShowConservation()
\r
440 this._has_showConservation= false;
\r
441 } //-- void deleteShowConservation()
\r
444 * Method deleteShowFullId
\r
447 public void deleteShowFullId()
\r
449 this._has_showFullId= false;
\r
450 } //-- void deleteShowFullId()
\r
453 * Method deleteShowIdentity
\r
456 public void deleteShowIdentity()
\r
458 this._has_showIdentity= false;
\r
459 } //-- void deleteShowIdentity()
\r
462 * Method deleteShowQuality
\r
465 public void deleteShowQuality()
\r
467 this._has_showQuality= false;
\r
468 } //-- void deleteShowQuality()
\r
471 * Method deleteShowSequenceFeatures
\r
474 public void deleteShowSequenceFeatures()
\r
476 this._has_showSequenceFeatures= false;
\r
477 } //-- void deleteShowSequenceFeatures()
\r
480 * Method deleteShowText
\r
483 public void deleteShowText()
\r
485 this._has_showText= false;
\r
486 } //-- void deleteShowText()
\r
489 * Method deleteStartRes
\r
492 public void deleteStartRes()
\r
494 this._has_startRes= false;
\r
495 } //-- void deleteStartRes()
\r
498 * Method deleteStartSeq
\r
501 public void deleteStartSeq()
\r
503 this._has_startSeq= false;
\r
504 } //-- void deleteStartSeq()
\r
507 * Method deleteWidth
\r
510 public void deleteWidth()
\r
512 this._has_width= false;
\r
513 } //-- void deleteWidth()
\r
516 * Method deleteWrapAlignment
\r
519 public void deleteWrapAlignment()
\r
521 this._has_wrapAlignment= false;
\r
522 } //-- void deleteWrapAlignment()
\r
525 * Method deleteXpos
\r
528 public void deleteXpos()
\r
530 this._has_xpos= false;
\r
531 } //-- void deleteXpos()
\r
534 * Method deleteYpos
\r
537 public void deleteYpos()
\r
539 this._has_ypos= false;
\r
540 } //-- void deleteYpos()
\r
543 * Method enumerateHiddenColumns
\r
547 * @return Enumeration
\r
549 public java.util.Enumeration enumerateHiddenColumns()
\r
551 return _hiddenColumnsList.elements();
\r
552 } //-- java.util.Enumeration enumerateHiddenColumns()
\r
555 * Returns the value of field 'annotationColours'.
\r
557 * @return AnnotationColours
\r
558 * @return the value of field 'annotationColours'.
\r
560 public jalview.schemabinding.version2.AnnotationColours getAnnotationColours()
\r
562 return this._annotationColours;
\r
563 } //-- jalview.schemabinding.version2.AnnotationColours getAnnotationColours()
\r
566 * Returns the value of field 'bgColour'.
\r
569 * @return the value of field 'bgColour'.
\r
571 public java.lang.String getBgColour()
\r
573 return this._bgColour;
\r
574 } //-- java.lang.String getBgColour()
\r
577 * Returns the value of field 'consThreshold'.
\r
580 * @return the value of field 'consThreshold'.
\r
582 public int getConsThreshold()
\r
584 return this._consThreshold;
\r
585 } //-- int getConsThreshold()
\r
588 * Returns the value of field 'conservationSelected'.
\r
591 * @return the value of field 'conservationSelected'.
\r
593 public boolean getConservationSelected()
\r
595 return this._conservationSelected;
\r
596 } //-- boolean getConservationSelected()
\r
599 * Returns the value of field 'fontName'.
\r
602 * @return the value of field 'fontName'.
\r
604 public java.lang.String getFontName()
\r
606 return this._fontName;
\r
607 } //-- java.lang.String getFontName()
\r
610 * Returns the value of field 'fontSize'.
\r
613 * @return the value of field 'fontSize'.
\r
615 public int getFontSize()
\r
617 return this._fontSize;
\r
618 } //-- int getFontSize()
\r
621 * Returns the value of field 'fontStyle'.
\r
624 * @return the value of field 'fontStyle'.
\r
626 public int getFontStyle()
\r
628 return this._fontStyle;
\r
629 } //-- int getFontStyle()
\r
632 * Returns the value of field 'height'.
\r
635 * @return the value of field 'height'.
\r
637 public int getHeight()
\r
639 return this._height;
\r
640 } //-- int getHeight()
\r
643 * Method getHiddenColumns
\r
648 * @return HiddenColumns
\r
650 public jalview.schemabinding.version2.HiddenColumns getHiddenColumns(int index)
\r
651 throws java.lang.IndexOutOfBoundsException
\r
653 //-- check bounds for index
\r
654 if ((index < 0) || (index > _hiddenColumnsList.size())) {
\r
655 throw new IndexOutOfBoundsException();
\r
658 return (jalview.schemabinding.version2.HiddenColumns) _hiddenColumnsList.elementAt(index);
\r
659 } //-- jalview.schemabinding.version2.HiddenColumns getHiddenColumns(int)
\r
662 * Method getHiddenColumns
\r
666 * @return HiddenColumns
\r
668 public jalview.schemabinding.version2.HiddenColumns[] getHiddenColumns()
\r
670 int size = _hiddenColumnsList.size();
\r
671 jalview.schemabinding.version2.HiddenColumns[] mArray = new jalview.schemabinding.version2.HiddenColumns[size];
\r
672 for (int index = 0; index < size; index++) {
\r
673 mArray[index] = (jalview.schemabinding.version2.HiddenColumns) _hiddenColumnsList.elementAt(index);
\r
676 } //-- jalview.schemabinding.version2.HiddenColumns[] getHiddenColumns()
\r
679 * Method getHiddenColumnsCount
\r
685 public int getHiddenColumnsCount()
\r
687 return _hiddenColumnsList.size();
\r
688 } //-- int getHiddenColumnsCount()
\r
691 * Returns the value of field 'pidSelected'.
\r
694 * @return the value of field 'pidSelected'.
\r
696 public boolean getPidSelected()
\r
698 return this._pidSelected;
\r
699 } //-- boolean getPidSelected()
\r
702 * Returns the value of field 'pidThreshold'.
\r
705 * @return the value of field 'pidThreshold'.
\r
707 public int getPidThreshold()
\r
709 return this._pidThreshold;
\r
710 } //-- int getPidThreshold()
\r
713 * Returns the value of field 'renderGaps'.
\r
716 * @return the value of field 'renderGaps'.
\r
718 public boolean getRenderGaps()
\r
720 return this._renderGaps;
\r
721 } //-- boolean getRenderGaps()
\r
724 * Returns the value of field 'showAnnotation'.
\r
727 * @return the value of field 'showAnnotation'.
\r
729 public boolean getShowAnnotation()
\r
731 return this._showAnnotation;
\r
732 } //-- boolean getShowAnnotation()
\r
735 * Returns the value of field 'showBoxes'.
\r
738 * @return the value of field 'showBoxes'.
\r
740 public boolean getShowBoxes()
\r
742 return this._showBoxes;
\r
743 } //-- boolean getShowBoxes()
\r
746 * Returns the value of field 'showColourText'.
\r
749 * @return the value of field 'showColourText'.
\r
751 public boolean getShowColourText()
\r
753 return this._showColourText;
\r
754 } //-- boolean getShowColourText()
\r
757 * Returns the value of field 'showConservation'.
\r
760 * @return the value of field 'showConservation'.
\r
762 public boolean getShowConservation()
\r
764 return this._showConservation;
\r
765 } //-- boolean getShowConservation()
\r
768 * Returns the value of field 'showFullId'.
\r
771 * @return the value of field 'showFullId'.
\r
773 public boolean getShowFullId()
\r
775 return this._showFullId;
\r
776 } //-- boolean getShowFullId()
\r
779 * Returns the value of field 'showIdentity'.
\r
782 * @return the value of field 'showIdentity'.
\r
784 public boolean getShowIdentity()
\r
786 return this._showIdentity;
\r
787 } //-- boolean getShowIdentity()
\r
790 * Returns the value of field 'showQuality'.
\r
793 * @return the value of field 'showQuality'.
\r
795 public boolean getShowQuality()
\r
797 return this._showQuality;
\r
798 } //-- boolean getShowQuality()
\r
801 * Returns the value of field 'showSequenceFeatures'.
\r
804 * @return the value of field 'showSequenceFeatures'.
\r
806 public boolean getShowSequenceFeatures()
\r
808 return this._showSequenceFeatures;
\r
809 } //-- boolean getShowSequenceFeatures()
\r
812 * Returns the value of field 'showText'.
\r
815 * @return the value of field 'showText'.
\r
817 public boolean getShowText()
\r
819 return this._showText;
\r
820 } //-- boolean getShowText()
\r
823 * Returns the value of field 'startRes'.
\r
826 * @return the value of field 'startRes'.
\r
828 public int getStartRes()
\r
830 return this._startRes;
\r
831 } //-- int getStartRes()
\r
834 * Returns the value of field 'startSeq'.
\r
837 * @return the value of field 'startSeq'.
\r
839 public int getStartSeq()
\r
841 return this._startSeq;
\r
842 } //-- int getStartSeq()
\r
845 * Returns the value of field 'title'.
\r
848 * @return the value of field 'title'.
\r
850 public java.lang.String getTitle()
\r
852 return this._title;
\r
853 } //-- java.lang.String getTitle()
\r
856 * Returns the value of field 'width'.
\r
859 * @return the value of field 'width'.
\r
861 public int getWidth()
\r
863 return this._width;
\r
864 } //-- int getWidth()
\r
867 * Returns the value of field 'wrapAlignment'.
\r
870 * @return the value of field 'wrapAlignment'.
\r
872 public boolean getWrapAlignment()
\r
874 return this._wrapAlignment;
\r
875 } //-- boolean getWrapAlignment()
\r
878 * Returns the value of field 'xpos'.
\r
881 * @return the value of field 'xpos'.
\r
883 public int getXpos()
\r
886 } //-- int getXpos()
\r
889 * Returns the value of field 'ypos'.
\r
892 * @return the value of field 'ypos'.
\r
894 public int getYpos()
\r
897 } //-- int getYpos()
\r
900 * Method hasConsThreshold
\r
906 public boolean hasConsThreshold()
\r
908 return this._has_consThreshold;
\r
909 } //-- boolean hasConsThreshold()
\r
912 * Method hasConservationSelected
\r
918 public boolean hasConservationSelected()
\r
920 return this._has_conservationSelected;
\r
921 } //-- boolean hasConservationSelected()
\r
924 * Method hasFontSize
\r
930 public boolean hasFontSize()
\r
932 return this._has_fontSize;
\r
933 } //-- boolean hasFontSize()
\r
936 * Method hasFontStyle
\r
942 public boolean hasFontStyle()
\r
944 return this._has_fontStyle;
\r
945 } //-- boolean hasFontStyle()
\r
954 public boolean hasHeight()
\r
956 return this._has_height;
\r
957 } //-- boolean hasHeight()
\r
960 * Method hasPidSelected
\r
966 public boolean hasPidSelected()
\r
968 return this._has_pidSelected;
\r
969 } //-- boolean hasPidSelected()
\r
972 * Method hasPidThreshold
\r
978 public boolean hasPidThreshold()
\r
980 return this._has_pidThreshold;
\r
981 } //-- boolean hasPidThreshold()
\r
984 * Method hasRenderGaps
\r
990 public boolean hasRenderGaps()
\r
992 return this._has_renderGaps;
\r
993 } //-- boolean hasRenderGaps()
\r
996 * Method hasShowAnnotation
\r
1002 public boolean hasShowAnnotation()
\r
1004 return this._has_showAnnotation;
\r
1005 } //-- boolean hasShowAnnotation()
\r
1008 * Method hasShowBoxes
\r
1014 public boolean hasShowBoxes()
\r
1016 return this._has_showBoxes;
\r
1017 } //-- boolean hasShowBoxes()
\r
1020 * Method hasShowColourText
\r
1026 public boolean hasShowColourText()
\r
1028 return this._has_showColourText;
\r
1029 } //-- boolean hasShowColourText()
\r
1032 * Method hasShowConservation
\r
1038 public boolean hasShowConservation()
\r
1040 return this._has_showConservation;
\r
1041 } //-- boolean hasShowConservation()
\r
1044 * Method hasShowFullId
\r
1050 public boolean hasShowFullId()
\r
1052 return this._has_showFullId;
\r
1053 } //-- boolean hasShowFullId()
\r
1056 * Method hasShowIdentity
\r
1062 public boolean hasShowIdentity()
\r
1064 return this._has_showIdentity;
\r
1065 } //-- boolean hasShowIdentity()
\r
1068 * Method hasShowQuality
\r
1074 public boolean hasShowQuality()
\r
1076 return this._has_showQuality;
\r
1077 } //-- boolean hasShowQuality()
\r
1080 * Method hasShowSequenceFeatures
\r
1086 public boolean hasShowSequenceFeatures()
\r
1088 return this._has_showSequenceFeatures;
\r
1089 } //-- boolean hasShowSequenceFeatures()
\r
1092 * Method hasShowText
\r
1098 public boolean hasShowText()
\r
1100 return this._has_showText;
\r
1101 } //-- boolean hasShowText()
\r
1104 * Method hasStartRes
\r
1110 public boolean hasStartRes()
\r
1112 return this._has_startRes;
\r
1113 } //-- boolean hasStartRes()
\r
1116 * Method hasStartSeq
\r
1122 public boolean hasStartSeq()
\r
1124 return this._has_startSeq;
\r
1125 } //-- boolean hasStartSeq()
\r
1134 public boolean hasWidth()
\r
1136 return this._has_width;
\r
1137 } //-- boolean hasWidth()
\r
1140 * Method hasWrapAlignment
\r
1146 public boolean hasWrapAlignment()
\r
1148 return this._has_wrapAlignment;
\r
1149 } //-- boolean hasWrapAlignment()
\r
1158 public boolean hasXpos()
\r
1160 return this._has_xpos;
\r
1161 } //-- boolean hasXpos()
\r
1170 public boolean hasYpos()
\r
1172 return this._has_ypos;
\r
1173 } //-- boolean hasYpos()
\r
1182 public boolean isValid()
\r
1187 catch (org.exolab.castor.xml.ValidationException vex) {
\r
1191 } //-- boolean isValid()
\r
1200 public void marshal(java.io.Writer out)
\r
1201 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
\r
1204 Marshaller.marshal(this, out);
\r
1205 } //-- void marshal(java.io.Writer)
\r
1214 public void marshal(org.xml.sax.ContentHandler handler)
\r
1215 throws java.io.IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
\r
1218 Marshaller.marshal(this, handler);
\r
1219 } //-- void marshal(org.xml.sax.ContentHandler)
\r
1222 * Method removeAllHiddenColumns
\r
1225 public void removeAllHiddenColumns()
\r
1227 _hiddenColumnsList.removeAllElements();
\r
1228 } //-- void removeAllHiddenColumns()
\r
1231 * Method removeHiddenColumns
\r
1236 * @return HiddenColumns
\r
1238 public jalview.schemabinding.version2.HiddenColumns removeHiddenColumns(int index)
\r
1240 java.lang.Object obj = _hiddenColumnsList.elementAt(index);
\r
1241 _hiddenColumnsList.removeElementAt(index);
\r
1242 return (jalview.schemabinding.version2.HiddenColumns) obj;
\r
1243 } //-- jalview.schemabinding.version2.HiddenColumns removeHiddenColumns(int)
\r
1246 * Sets the value of field 'annotationColours'.
\r
1248 * @param annotationColours the value of field
\r
1249 * 'annotationColours'.
\r
1251 public void setAnnotationColours(jalview.schemabinding.version2.AnnotationColours annotationColours)
\r
1253 this._annotationColours = annotationColours;
\r
1254 } //-- void setAnnotationColours(jalview.schemabinding.version2.AnnotationColours)
\r
1257 * Sets the value of field 'bgColour'.
\r
1259 * @param bgColour the value of field 'bgColour'.
\r
1261 public void setBgColour(java.lang.String bgColour)
\r
1263 this._bgColour = bgColour;
\r
1264 } //-- void setBgColour(java.lang.String)
\r
1267 * Sets the value of field 'consThreshold'.
\r
1269 * @param consThreshold the value of field 'consThreshold'.
\r
1271 public void setConsThreshold(int consThreshold)
\r
1273 this._consThreshold = consThreshold;
\r
1274 this._has_consThreshold = true;
\r
1275 } //-- void setConsThreshold(int)
\r
1278 * Sets the value of field 'conservationSelected'.
\r
1280 * @param conservationSelected the value of field
\r
1281 * 'conservationSelected'.
\r
1283 public void setConservationSelected(boolean conservationSelected)
\r
1285 this._conservationSelected = conservationSelected;
\r
1286 this._has_conservationSelected = true;
\r
1287 } //-- void setConservationSelected(boolean)
\r
1290 * Sets the value of field 'fontName'.
\r
1292 * @param fontName the value of field 'fontName'.
\r
1294 public void setFontName(java.lang.String fontName)
\r
1296 this._fontName = fontName;
\r
1297 } //-- void setFontName(java.lang.String)
\r
1300 * Sets the value of field 'fontSize'.
\r
1302 * @param fontSize the value of field 'fontSize'.
\r
1304 public void setFontSize(int fontSize)
\r
1306 this._fontSize = fontSize;
\r
1307 this._has_fontSize = true;
\r
1308 } //-- void setFontSize(int)
\r
1311 * Sets the value of field 'fontStyle'.
\r
1313 * @param fontStyle the value of field 'fontStyle'.
\r
1315 public void setFontStyle(int fontStyle)
\r
1317 this._fontStyle = fontStyle;
\r
1318 this._has_fontStyle = true;
\r
1319 } //-- void setFontStyle(int)
\r
1322 * Sets the value of field 'height'.
\r
1324 * @param height the value of field 'height'.
\r
1326 public void setHeight(int height)
\r
1328 this._height = height;
\r
1329 this._has_height = true;
\r
1330 } //-- void setHeight(int)
\r
1333 * Method setHiddenColumns
\r
1338 * @param vHiddenColumns
\r
1340 public void setHiddenColumns(int index, jalview.schemabinding.version2.HiddenColumns vHiddenColumns)
\r
1341 throws java.lang.IndexOutOfBoundsException
\r
1343 //-- check bounds for index
\r
1344 if ((index < 0) || (index > _hiddenColumnsList.size())) {
\r
1345 throw new IndexOutOfBoundsException();
\r
1347 _hiddenColumnsList.setElementAt(vHiddenColumns, index);
\r
1348 } //-- void setHiddenColumns(int, jalview.schemabinding.version2.HiddenColumns)
\r
1351 * Method setHiddenColumns
\r
1355 * @param hiddenColumnsArray
\r
1357 public void setHiddenColumns(jalview.schemabinding.version2.HiddenColumns[] hiddenColumnsArray)
\r
1360 _hiddenColumnsList.removeAllElements();
\r
1361 for (int i = 0; i < hiddenColumnsArray.length; i++) {
\r
1362 _hiddenColumnsList.addElement(hiddenColumnsArray[i]);
\r
1364 } //-- void setHiddenColumns(jalview.schemabinding.version2.HiddenColumns)
\r
1367 * Sets the value of field 'pidSelected'.
\r
1369 * @param pidSelected the value of field 'pidSelected'.
\r
1371 public void setPidSelected(boolean pidSelected)
\r
1373 this._pidSelected = pidSelected;
\r
1374 this._has_pidSelected = true;
\r
1375 } //-- void setPidSelected(boolean)
\r
1378 * Sets the value of field 'pidThreshold'.
\r
1380 * @param pidThreshold the value of field 'pidThreshold'.
\r
1382 public void setPidThreshold(int pidThreshold)
\r
1384 this._pidThreshold = pidThreshold;
\r
1385 this._has_pidThreshold = true;
\r
1386 } //-- void setPidThreshold(int)
\r
1389 * Sets the value of field 'renderGaps'.
\r
1391 * @param renderGaps the value of field 'renderGaps'.
\r
1393 public void setRenderGaps(boolean renderGaps)
\r
1395 this._renderGaps = renderGaps;
\r
1396 this._has_renderGaps = true;
\r
1397 } //-- void setRenderGaps(boolean)
\r
1400 * Sets the value of field 'showAnnotation'.
\r
1402 * @param showAnnotation the value of field 'showAnnotation'.
\r
1404 public void setShowAnnotation(boolean showAnnotation)
\r
1406 this._showAnnotation = showAnnotation;
\r
1407 this._has_showAnnotation = true;
\r
1408 } //-- void setShowAnnotation(boolean)
\r
1411 * Sets the value of field 'showBoxes'.
\r
1413 * @param showBoxes the value of field 'showBoxes'.
\r
1415 public void setShowBoxes(boolean showBoxes)
\r
1417 this._showBoxes = showBoxes;
\r
1418 this._has_showBoxes = true;
\r
1419 } //-- void setShowBoxes(boolean)
\r
1422 * Sets the value of field 'showColourText'.
\r
1424 * @param showColourText the value of field 'showColourText'.
\r
1426 public void setShowColourText(boolean showColourText)
\r
1428 this._showColourText = showColourText;
\r
1429 this._has_showColourText = true;
\r
1430 } //-- void setShowColourText(boolean)
\r
1433 * Sets the value of field 'showConservation'.
\r
1435 * @param showConservation the value of field 'showConservation'
\r
1437 public void setShowConservation(boolean showConservation)
\r
1439 this._showConservation = showConservation;
\r
1440 this._has_showConservation = true;
\r
1441 } //-- void setShowConservation(boolean)
\r
1444 * Sets the value of field 'showFullId'.
\r
1446 * @param showFullId the value of field 'showFullId'.
\r
1448 public void setShowFullId(boolean showFullId)
\r
1450 this._showFullId = showFullId;
\r
1451 this._has_showFullId = true;
\r
1452 } //-- void setShowFullId(boolean)
\r
1455 * Sets the value of field 'showIdentity'.
\r
1457 * @param showIdentity the value of field 'showIdentity'.
\r
1459 public void setShowIdentity(boolean showIdentity)
\r
1461 this._showIdentity = showIdentity;
\r
1462 this._has_showIdentity = true;
\r
1463 } //-- void setShowIdentity(boolean)
\r
1466 * Sets the value of field 'showQuality'.
\r
1468 * @param showQuality the value of field 'showQuality'.
\r
1470 public void setShowQuality(boolean showQuality)
\r
1472 this._showQuality = showQuality;
\r
1473 this._has_showQuality = true;
\r
1474 } //-- void setShowQuality(boolean)
\r
1477 * Sets the value of field 'showSequenceFeatures'.
\r
1479 * @param showSequenceFeatures the value of field
\r
1480 * 'showSequenceFeatures'.
\r
1482 public void setShowSequenceFeatures(boolean showSequenceFeatures)
\r
1484 this._showSequenceFeatures = showSequenceFeatures;
\r
1485 this._has_showSequenceFeatures = true;
\r
1486 } //-- void setShowSequenceFeatures(boolean)
\r
1489 * Sets the value of field 'showText'.
\r
1491 * @param showText the value of field 'showText'.
\r
1493 public void setShowText(boolean showText)
\r
1495 this._showText = showText;
\r
1496 this._has_showText = true;
\r
1497 } //-- void setShowText(boolean)
\r
1500 * Sets the value of field 'startRes'.
\r
1502 * @param startRes the value of field 'startRes'.
\r
1504 public void setStartRes(int startRes)
\r
1506 this._startRes = startRes;
\r
1507 this._has_startRes = true;
\r
1508 } //-- void setStartRes(int)
\r
1511 * Sets the value of field 'startSeq'.
\r
1513 * @param startSeq the value of field 'startSeq'.
\r
1515 public void setStartSeq(int startSeq)
\r
1517 this._startSeq = startSeq;
\r
1518 this._has_startSeq = true;
\r
1519 } //-- void setStartSeq(int)
\r
1522 * Sets the value of field 'title'.
\r
1524 * @param title the value of field 'title'.
\r
1526 public void setTitle(java.lang.String title)
\r
1528 this._title = title;
\r
1529 } //-- void setTitle(java.lang.String)
\r
1532 * Sets the value of field 'width'.
\r
1534 * @param width the value of field 'width'.
\r
1536 public void setWidth(int width)
\r
1538 this._width = width;
\r
1539 this._has_width = true;
\r
1540 } //-- void setWidth(int)
\r
1543 * Sets the value of field 'wrapAlignment'.
\r
1545 * @param wrapAlignment the value of field 'wrapAlignment'.
\r
1547 public void setWrapAlignment(boolean wrapAlignment)
\r
1549 this._wrapAlignment = wrapAlignment;
\r
1550 this._has_wrapAlignment = true;
\r
1551 } //-- void setWrapAlignment(boolean)
\r
1554 * Sets the value of field 'xpos'.
\r
1556 * @param xpos the value of field 'xpos'.
\r
1558 public void setXpos(int xpos)
\r
1560 this._xpos = xpos;
\r
1561 this._has_xpos = true;
\r
1562 } //-- void setXpos(int)
\r
1565 * Sets the value of field 'ypos'.
\r
1567 * @param ypos the value of field 'ypos'.
\r
1569 public void setYpos(int ypos)
\r
1571 this._ypos = ypos;
\r
1572 this._has_ypos = true;
\r
1573 } //-- void setYpos(int)
\r
1576 * Method unmarshal
\r
1583 public static java.lang.Object unmarshal(java.io.Reader reader)
\r
1584 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
\r
1586 return (jalview.schemabinding.version2.Viewport) Unmarshaller.unmarshal(jalview.schemabinding.version2.Viewport.class, reader);
\r
1587 } //-- java.lang.Object unmarshal(java.io.Reader)
\r
1593 public void validate()
\r
1594 throws org.exolab.castor.xml.ValidationException
\r
1596 org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
\r
1597 validator.validate(this);
\r
1598 } //-- void validate()
\r