2 * This class was automatically generated with
\r
3 * <a href="http://www.castor.org">Castor 1.1</a>, using an XML
\r
8 package jalview.schemabinding.version2;
\r
10 //---------------------------------/
\r
11 //- Imported classes and packages -/
\r
12 //---------------------------------/
\r
14 import org.exolab.castor.xml.Marshaller;
\r
15 import org.exolab.castor.xml.Unmarshaller;
\r
20 * @version $Revision$ $Date$
\r
22 public class Viewport implements java.io.Serializable {
\r
25 //--------------------------/
\r
26 //- Class/Member Variables -/
\r
27 //--------------------------/
\r
30 * Field _conservationSelected.
\r
32 private boolean _conservationSelected;
\r
35 * keeps track of state for field: _conservationSelected
\r
37 private boolean _has_conservationSelected;
\r
40 * Field _pidSelected.
\r
42 private boolean _pidSelected;
\r
45 * keeps track of state for field: _pidSelected
\r
47 private boolean _has_pidSelected;
\r
52 private java.lang.String _bgColour;
\r
55 * Field _consThreshold.
\r
57 private int _consThreshold;
\r
60 * keeps track of state for field: _consThreshold
\r
62 private boolean _has_consThreshold;
\r
65 * Field _pidThreshold.
\r
67 private int _pidThreshold;
\r
70 * keeps track of state for field: _pidThreshold
\r
72 private boolean _has_pidThreshold;
\r
77 private java.lang.String _title;
\r
80 * Field _showFullId.
\r
82 private boolean _showFullId;
\r
85 * keeps track of state for field: _showFullId
\r
87 private boolean _has_showFullId;
\r
90 * Field _rightAlignIds.
\r
92 private boolean _rightAlignIds;
\r
95 * keeps track of state for field: _rightAlignIds
\r
97 private boolean _has_rightAlignIds;
\r
102 private boolean _showText;
\r
105 * keeps track of state for field: _showText
\r
107 private boolean _has_showText;
\r
110 * Field _showColourText.
\r
112 private boolean _showColourText;
\r
115 * keeps track of state for field: _showColourText
\r
117 private boolean _has_showColourText;
\r
120 * Field _showBoxes.
\r
122 private boolean _showBoxes;
\r
125 * keeps track of state for field: _showBoxes
\r
127 private boolean _has_showBoxes;
\r
130 * Field _wrapAlignment.
\r
132 private boolean _wrapAlignment;
\r
135 * keeps track of state for field: _wrapAlignment
\r
137 private boolean _has_wrapAlignment;
\r
140 * Field _renderGaps.
\r
142 private boolean _renderGaps;
\r
145 * keeps track of state for field: _renderGaps
\r
147 private boolean _has_renderGaps;
\r
150 * Field _showSequenceFeatures.
\r
152 private boolean _showSequenceFeatures;
\r
155 * keeps track of state for field: _showSequenceFeatures
\r
157 private boolean _has_showSequenceFeatures;
\r
160 * Field _showAnnotation.
\r
162 private boolean _showAnnotation;
\r
165 * keeps track of state for field: _showAnnotation
\r
167 private boolean _has_showAnnotation;
\r
175 * keeps track of state for field: _xpos
\r
177 private boolean _has_xpos;
\r
185 * keeps track of state for field: _ypos
\r
187 private boolean _has_ypos;
\r
192 private int _width;
\r
195 * keeps track of state for field: _width
\r
197 private boolean _has_width;
\r
202 private int _height;
\r
205 * keeps track of state for field: _height
\r
207 private boolean _has_height;
\r
212 private int _startRes;
\r
215 * keeps track of state for field: _startRes
\r
217 private boolean _has_startRes;
\r
222 private int _startSeq;
\r
225 * keeps track of state for field: _startSeq
\r
227 private boolean _has_startSeq;
\r
232 private java.lang.String _fontName;
\r
237 private int _fontSize;
\r
240 * keeps track of state for field: _fontSize
\r
242 private boolean _has_fontSize;
\r
245 * Field _fontStyle.
\r
247 private int _fontStyle;
\r
250 * keeps track of state for field: _fontStyle
\r
252 private boolean _has_fontStyle;
\r
257 private java.lang.String _viewName;
\r
260 * Field _sequenceSetId.
\r
262 private java.lang.String _sequenceSetId;
\r
265 * Field _gatheredViews.
\r
267 private boolean _gatheredViews;
\r
270 * keeps track of state for field: _gatheredViews
\r
272 private boolean _has_gatheredViews;
\r
277 private int _textCol1;
\r
280 * keeps track of state for field: _textCol1
\r
282 private boolean _has_textCol1;
\r
287 private int _textCol2;
\r
290 * keeps track of state for field: _textCol2
\r
292 private boolean _has_textCol2;
\r
295 * Field _textColThreshold.
\r
297 private int _textColThreshold;
\r
300 * keeps track of state for field: _textColThreshold
\r
302 private boolean _has_textColThreshold;
\r
305 * Field _annotationColours.
\r
307 private jalview.schemabinding.version2.AnnotationColours _annotationColours;
\r
310 * Field _hiddenColumnsList.
\r
312 private java.util.Vector _hiddenColumnsList;
\r
315 //----------------/
\r
316 //- Constructors -/
\r
317 //----------------/
\r
319 public Viewport() {
\r
321 this._hiddenColumnsList = new java.util.Vector();
\r
332 * @param vHiddenColumns
\r
333 * @throws java.lang.IndexOutOfBoundsException if the index
\r
334 * given is outside the bounds of the collection
\r
336 public void addHiddenColumns(
\r
337 final jalview.schemabinding.version2.HiddenColumns vHiddenColumns)
\r
338 throws java.lang.IndexOutOfBoundsException {
\r
339 this._hiddenColumnsList.addElement(vHiddenColumns);
\r
346 * @param vHiddenColumns
\r
347 * @throws java.lang.IndexOutOfBoundsException if the index
\r
348 * given is outside the bounds of the collection
\r
350 public void addHiddenColumns(
\r
352 final jalview.schemabinding.version2.HiddenColumns vHiddenColumns)
\r
353 throws java.lang.IndexOutOfBoundsException {
\r
354 this._hiddenColumnsList.add(index, vHiddenColumns);
\r
359 public void deleteConsThreshold(
\r
361 this._has_consThreshold= false;
\r
366 public void deleteConservationSelected(
\r
368 this._has_conservationSelected= false;
\r
373 public void deleteFontSize(
\r
375 this._has_fontSize= false;
\r
380 public void deleteFontStyle(
\r
382 this._has_fontStyle= false;
\r
387 public void deleteGatheredViews(
\r
389 this._has_gatheredViews= false;
\r
394 public void deleteHeight(
\r
396 this._has_height= false;
\r
401 public void deletePidSelected(
\r
403 this._has_pidSelected= false;
\r
408 public void deletePidThreshold(
\r
410 this._has_pidThreshold= false;
\r
415 public void deleteRenderGaps(
\r
417 this._has_renderGaps= false;
\r
422 public void deleteRightAlignIds(
\r
424 this._has_rightAlignIds= false;
\r
429 public void deleteShowAnnotation(
\r
431 this._has_showAnnotation= false;
\r
436 public void deleteShowBoxes(
\r
438 this._has_showBoxes= false;
\r
443 public void deleteShowColourText(
\r
445 this._has_showColourText= false;
\r
450 public void deleteShowFullId(
\r
452 this._has_showFullId= false;
\r
457 public void deleteShowSequenceFeatures(
\r
459 this._has_showSequenceFeatures= false;
\r
464 public void deleteShowText(
\r
466 this._has_showText= false;
\r
471 public void deleteStartRes(
\r
473 this._has_startRes= false;
\r
478 public void deleteStartSeq(
\r
480 this._has_startSeq= false;
\r
485 public void deleteTextCol1(
\r
487 this._has_textCol1= false;
\r
492 public void deleteTextCol2(
\r
494 this._has_textCol2= false;
\r
499 public void deleteTextColThreshold(
\r
501 this._has_textColThreshold= false;
\r
506 public void deleteWidth(
\r
508 this._has_width= false;
\r
513 public void deleteWrapAlignment(
\r
515 this._has_wrapAlignment= false;
\r
520 public void deleteXpos(
\r
522 this._has_xpos= false;
\r
527 public void deleteYpos(
\r
529 this._has_ypos= false;
\r
533 * Method enumerateHiddenColumns.
\r
535 * @return an Enumeration over all
\r
536 * jalview.schemabinding.version2.HiddenColumns elements
\r
538 public java.util.Enumeration enumerateHiddenColumns(
\r
540 return this._hiddenColumnsList.elements();
\r
544 * Returns the value of field 'annotationColours'.
\r
546 * @return the value of field 'AnnotationColours'.
\r
548 public jalview.schemabinding.version2.AnnotationColours getAnnotationColours(
\r
550 return this._annotationColours;
\r
554 * Returns the value of field 'bgColour'.
\r
556 * @return the value of field 'BgColour'.
\r
558 public java.lang.String getBgColour(
\r
560 return this._bgColour;
\r
564 * Returns the value of field 'consThreshold'.
\r
566 * @return the value of field 'ConsThreshold'.
\r
568 public int getConsThreshold(
\r
570 return this._consThreshold;
\r
574 * Returns the value of field 'conservationSelected'.
\r
576 * @return the value of field 'ConservationSelected'.
\r
578 public boolean getConservationSelected(
\r
580 return this._conservationSelected;
\r
584 * Returns the value of field 'fontName'.
\r
586 * @return the value of field 'FontName'.
\r
588 public java.lang.String getFontName(
\r
590 return this._fontName;
\r
594 * Returns the value of field 'fontSize'.
\r
596 * @return the value of field 'FontSize'.
\r
598 public int getFontSize(
\r
600 return this._fontSize;
\r
604 * Returns the value of field 'fontStyle'.
\r
606 * @return the value of field 'FontStyle'.
\r
608 public int getFontStyle(
\r
610 return this._fontStyle;
\r
614 * Returns the value of field 'gatheredViews'.
\r
616 * @return the value of field 'GatheredViews'.
\r
618 public boolean getGatheredViews(
\r
620 return this._gatheredViews;
\r
624 * Returns the value of field 'height'.
\r
626 * @return the value of field 'Height'.
\r
628 public int getHeight(
\r
630 return this._height;
\r
634 * Method getHiddenColumns.
\r
637 * @throws java.lang.IndexOutOfBoundsException if the index
\r
638 * given is outside the bounds of the collection
\r
639 * @return the value of the
\r
640 * jalview.schemabinding.version2.HiddenColumns at the given
\r
643 public jalview.schemabinding.version2.HiddenColumns getHiddenColumns(
\r
645 throws java.lang.IndexOutOfBoundsException {
\r
646 // check bounds for index
\r
647 if (index < 0 || index >= this._hiddenColumnsList.size()) {
\r
648 throw new IndexOutOfBoundsException("getHiddenColumns: Index value '" + index + "' not in range [0.." + (this._hiddenColumnsList.size() - 1) + "]");
\r
651 return (jalview.schemabinding.version2.HiddenColumns) _hiddenColumnsList.get(index);
\r
655 * Method getHiddenColumns.Returns the contents of the
\r
656 * collection in an Array. <p>Note: Just in case the
\r
657 * collection contents are changing in another thread, we pass
\r
658 * a 0-length Array of the correct type into the API call.
\r
659 * This way we <i>know</i> that the Array returned is of
\r
660 * exactly the correct length.
\r
662 * @return this collection as an Array
\r
664 public jalview.schemabinding.version2.HiddenColumns[] getHiddenColumns(
\r
666 jalview.schemabinding.version2.HiddenColumns[] array = new jalview.schemabinding.version2.HiddenColumns[0];
\r
667 return (jalview.schemabinding.version2.HiddenColumns[]) this._hiddenColumnsList.toArray(array);
\r
671 * Method getHiddenColumnsCount.
\r
673 * @return the size of this collection
\r
675 public int getHiddenColumnsCount(
\r
677 return this._hiddenColumnsList.size();
\r
681 * Returns the value of field 'pidSelected'.
\r
683 * @return the value of field 'PidSelected'.
\r
685 public boolean getPidSelected(
\r
687 return this._pidSelected;
\r
691 * Returns the value of field 'pidThreshold'.
\r
693 * @return the value of field 'PidThreshold'.
\r
695 public int getPidThreshold(
\r
697 return this._pidThreshold;
\r
701 * Returns the value of field 'renderGaps'.
\r
703 * @return the value of field 'RenderGaps'.
\r
705 public boolean getRenderGaps(
\r
707 return this._renderGaps;
\r
711 * Returns the value of field 'rightAlignIds'.
\r
713 * @return the value of field 'RightAlignIds'.
\r
715 public boolean getRightAlignIds(
\r
717 return this._rightAlignIds;
\r
721 * Returns the value of field 'sequenceSetId'.
\r
723 * @return the value of field 'SequenceSetId'.
\r
725 public java.lang.String getSequenceSetId(
\r
727 return this._sequenceSetId;
\r
731 * Returns the value of field 'showAnnotation'.
\r
733 * @return the value of field 'ShowAnnotation'.
\r
735 public boolean getShowAnnotation(
\r
737 return this._showAnnotation;
\r
741 * Returns the value of field 'showBoxes'.
\r
743 * @return the value of field 'ShowBoxes'.
\r
745 public boolean getShowBoxes(
\r
747 return this._showBoxes;
\r
751 * Returns the value of field 'showColourText'.
\r
753 * @return the value of field 'ShowColourText'.
\r
755 public boolean getShowColourText(
\r
757 return this._showColourText;
\r
761 * Returns the value of field 'showFullId'.
\r
763 * @return the value of field 'ShowFullId'.
\r
765 public boolean getShowFullId(
\r
767 return this._showFullId;
\r
771 * Returns the value of field 'showSequenceFeatures'.
\r
773 * @return the value of field 'ShowSequenceFeatures'.
\r
775 public boolean getShowSequenceFeatures(
\r
777 return this._showSequenceFeatures;
\r
781 * Returns the value of field 'showText'.
\r
783 * @return the value of field 'ShowText'.
\r
785 public boolean getShowText(
\r
787 return this._showText;
\r
791 * Returns the value of field 'startRes'.
\r
793 * @return the value of field 'StartRes'.
\r
795 public int getStartRes(
\r
797 return this._startRes;
\r
801 * Returns the value of field 'startSeq'.
\r
803 * @return the value of field 'StartSeq'.
\r
805 public int getStartSeq(
\r
807 return this._startSeq;
\r
811 * Returns the value of field 'textCol1'.
\r
813 * @return the value of field 'TextCol1'.
\r
815 public int getTextCol1(
\r
817 return this._textCol1;
\r
821 * Returns the value of field 'textCol2'.
\r
823 * @return the value of field 'TextCol2'.
\r
825 public int getTextCol2(
\r
827 return this._textCol2;
\r
831 * Returns the value of field 'textColThreshold'.
\r
833 * @return the value of field 'TextColThreshold'.
\r
835 public int getTextColThreshold(
\r
837 return this._textColThreshold;
\r
841 * Returns the value of field 'title'.
\r
843 * @return the value of field 'Title'.
\r
845 public java.lang.String getTitle(
\r
847 return this._title;
\r
851 * Returns the value of field 'viewName'.
\r
853 * @return the value of field 'ViewName'.
\r
855 public java.lang.String getViewName(
\r
857 return this._viewName;
\r
861 * Returns the value of field 'width'.
\r
863 * @return the value of field 'Width'.
\r
865 public int getWidth(
\r
867 return this._width;
\r
871 * Returns the value of field 'wrapAlignment'.
\r
873 * @return the value of field 'WrapAlignment'.
\r
875 public boolean getWrapAlignment(
\r
877 return this._wrapAlignment;
\r
881 * Returns the value of field 'xpos'.
\r
883 * @return the value of field 'Xpos'.
\r
885 public int getXpos(
\r
891 * Returns the value of field 'ypos'.
\r
893 * @return the value of field 'Ypos'.
\r
895 public int getYpos(
\r
901 * Method hasConsThreshold.
\r
903 * @return true if at least one ConsThreshold has been added
\r
905 public boolean hasConsThreshold(
\r
907 return this._has_consThreshold;
\r
911 * Method hasConservationSelected.
\r
913 * @return true if at least one ConservationSelected has been
\r
916 public boolean hasConservationSelected(
\r
918 return this._has_conservationSelected;
\r
922 * Method hasFontSize.
\r
924 * @return true if at least one FontSize has been added
\r
926 public boolean hasFontSize(
\r
928 return this._has_fontSize;
\r
932 * Method hasFontStyle.
\r
934 * @return true if at least one FontStyle has been added
\r
936 public boolean hasFontStyle(
\r
938 return this._has_fontStyle;
\r
942 * Method hasGatheredViews.
\r
944 * @return true if at least one GatheredViews has been added
\r
946 public boolean hasGatheredViews(
\r
948 return this._has_gatheredViews;
\r
952 * Method hasHeight.
\r
954 * @return true if at least one Height has been added
\r
956 public boolean hasHeight(
\r
958 return this._has_height;
\r
962 * Method hasPidSelected.
\r
964 * @return true if at least one PidSelected has been added
\r
966 public boolean hasPidSelected(
\r
968 return this._has_pidSelected;
\r
972 * Method hasPidThreshold.
\r
974 * @return true if at least one PidThreshold has been added
\r
976 public boolean hasPidThreshold(
\r
978 return this._has_pidThreshold;
\r
982 * Method hasRenderGaps.
\r
984 * @return true if at least one RenderGaps has been added
\r
986 public boolean hasRenderGaps(
\r
988 return this._has_renderGaps;
\r
992 * Method hasRightAlignIds.
\r
994 * @return true if at least one RightAlignIds has been added
\r
996 public boolean hasRightAlignIds(
\r
998 return this._has_rightAlignIds;
\r
1002 * Method hasShowAnnotation.
\r
1004 * @return true if at least one ShowAnnotation has been added
\r
1006 public boolean hasShowAnnotation(
\r
1008 return this._has_showAnnotation;
\r
1012 * Method hasShowBoxes.
\r
1014 * @return true if at least one ShowBoxes has been added
\r
1016 public boolean hasShowBoxes(
\r
1018 return this._has_showBoxes;
\r
1022 * Method hasShowColourText.
\r
1024 * @return true if at least one ShowColourText has been added
\r
1026 public boolean hasShowColourText(
\r
1028 return this._has_showColourText;
\r
1032 * Method hasShowFullId.
\r
1034 * @return true if at least one ShowFullId has been added
\r
1036 public boolean hasShowFullId(
\r
1038 return this._has_showFullId;
\r
1042 * Method hasShowSequenceFeatures.
\r
1044 * @return true if at least one ShowSequenceFeatures has been
\r
1047 public boolean hasShowSequenceFeatures(
\r
1049 return this._has_showSequenceFeatures;
\r
1053 * Method hasShowText.
\r
1055 * @return true if at least one ShowText has been added
\r
1057 public boolean hasShowText(
\r
1059 return this._has_showText;
\r
1063 * Method hasStartRes.
\r
1065 * @return true if at least one StartRes has been added
\r
1067 public boolean hasStartRes(
\r
1069 return this._has_startRes;
\r
1073 * Method hasStartSeq.
\r
1075 * @return true if at least one StartSeq has been added
\r
1077 public boolean hasStartSeq(
\r
1079 return this._has_startSeq;
\r
1083 * Method hasTextCol1.
\r
1085 * @return true if at least one TextCol1 has been added
\r
1087 public boolean hasTextCol1(
\r
1089 return this._has_textCol1;
\r
1093 * Method hasTextCol2.
\r
1095 * @return true if at least one TextCol2 has been added
\r
1097 public boolean hasTextCol2(
\r
1099 return this._has_textCol2;
\r
1103 * Method hasTextColThreshold.
\r
1105 * @return true if at least one TextColThreshold has been added
\r
1107 public boolean hasTextColThreshold(
\r
1109 return this._has_textColThreshold;
\r
1113 * Method hasWidth.
\r
1115 * @return true if at least one Width has been added
\r
1117 public boolean hasWidth(
\r
1119 return this._has_width;
\r
1123 * Method hasWrapAlignment.
\r
1125 * @return true if at least one WrapAlignment has been added
\r
1127 public boolean hasWrapAlignment(
\r
1129 return this._has_wrapAlignment;
\r
1135 * @return true if at least one Xpos has been added
\r
1137 public boolean hasXpos(
\r
1139 return this._has_xpos;
\r
1145 * @return true if at least one Ypos has been added
\r
1147 public boolean hasYpos(
\r
1149 return this._has_ypos;
\r
1153 * Returns the value of field 'conservationSelected'.
\r
1155 * @return the value of field 'ConservationSelected'.
\r
1157 public boolean isConservationSelected(
\r
1159 return this._conservationSelected;
\r
1163 * Returns the value of field 'gatheredViews'.
\r
1165 * @return the value of field 'GatheredViews'.
\r
1167 public boolean isGatheredViews(
\r
1169 return this._gatheredViews;
\r
1173 * Returns the value of field 'pidSelected'.
\r
1175 * @return the value of field 'PidSelected'.
\r
1177 public boolean isPidSelected(
\r
1179 return this._pidSelected;
\r
1183 * Returns the value of field 'renderGaps'.
\r
1185 * @return the value of field 'RenderGaps'.
\r
1187 public boolean isRenderGaps(
\r
1189 return this._renderGaps;
\r
1193 * Returns the value of field 'rightAlignIds'.
\r
1195 * @return the value of field 'RightAlignIds'.
\r
1197 public boolean isRightAlignIds(
\r
1199 return this._rightAlignIds;
\r
1203 * Returns the value of field 'showAnnotation'.
\r
1205 * @return the value of field 'ShowAnnotation'.
\r
1207 public boolean isShowAnnotation(
\r
1209 return this._showAnnotation;
\r
1213 * Returns the value of field 'showBoxes'.
\r
1215 * @return the value of field 'ShowBoxes'.
\r
1217 public boolean isShowBoxes(
\r
1219 return this._showBoxes;
\r
1223 * Returns the value of field 'showColourText'.
\r
1225 * @return the value of field 'ShowColourText'.
\r
1227 public boolean isShowColourText(
\r
1229 return this._showColourText;
\r
1233 * Returns the value of field 'showFullId'.
\r
1235 * @return the value of field 'ShowFullId'.
\r
1237 public boolean isShowFullId(
\r
1239 return this._showFullId;
\r
1243 * Returns the value of field 'showSequenceFeatures'.
\r
1245 * @return the value of field 'ShowSequenceFeatures'.
\r
1247 public boolean isShowSequenceFeatures(
\r
1249 return this._showSequenceFeatures;
\r
1253 * Returns the value of field 'showText'.
\r
1255 * @return the value of field 'ShowText'.
\r
1257 public boolean isShowText(
\r
1259 return this._showText;
\r
1265 * @return true if this object is valid according to the schema
\r
1267 public boolean isValid(
\r
1271 } catch (org.exolab.castor.xml.ValidationException vex) {
\r
1278 * Returns the value of field 'wrapAlignment'.
\r
1280 * @return the value of field 'WrapAlignment'.
\r
1282 public boolean isWrapAlignment(
\r
1284 return this._wrapAlignment;
\r
1291 * @throws org.exolab.castor.xml.MarshalException if object is
\r
1292 * null or if any SAXException is thrown during marshaling
\r
1293 * @throws org.exolab.castor.xml.ValidationException if this
\r
1294 * object is an invalid instance according to the schema
\r
1296 public void marshal(
\r
1297 final java.io.Writer out)
\r
1298 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
\r
1299 Marshaller.marshal(this, out);
\r
1306 * @throws java.io.IOException if an IOException occurs during
\r
1308 * @throws org.exolab.castor.xml.ValidationException if this
\r
1309 * object is an invalid instance according to the schema
\r
1310 * @throws org.exolab.castor.xml.MarshalException if object is
\r
1311 * null or if any SAXException is thrown during marshaling
\r
1313 public void marshal(
\r
1314 final org.xml.sax.ContentHandler handler)
\r
1315 throws java.io.IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
\r
1316 Marshaller.marshal(this, handler);
\r
1321 public void removeAllHiddenColumns(
\r
1323 this._hiddenColumnsList.clear();
\r
1327 * Method removeHiddenColumns.
\r
1329 * @param vHiddenColumns
\r
1330 * @return true if the object was removed from the collection.
\r
1332 public boolean removeHiddenColumns(
\r
1333 final jalview.schemabinding.version2.HiddenColumns vHiddenColumns) {
\r
1334 boolean removed = _hiddenColumnsList.remove(vHiddenColumns);
\r
1339 * Method removeHiddenColumnsAt.
\r
1342 * @return the element removed from the collection
\r
1344 public jalview.schemabinding.version2.HiddenColumns removeHiddenColumnsAt(
\r
1345 final int index) {
\r
1346 java.lang.Object obj = this._hiddenColumnsList.remove(index);
\r
1347 return (jalview.schemabinding.version2.HiddenColumns) obj;
\r
1351 * Sets the value of field 'annotationColours'.
\r
1353 * @param annotationColours the value of field
\r
1354 * 'annotationColours'.
\r
1356 public void setAnnotationColours(
\r
1357 final jalview.schemabinding.version2.AnnotationColours annotationColours) {
\r
1358 this._annotationColours = annotationColours;
\r
1362 * Sets the value of field 'bgColour'.
\r
1364 * @param bgColour the value of field 'bgColour'.
\r
1366 public void setBgColour(
\r
1367 final java.lang.String bgColour) {
\r
1368 this._bgColour = bgColour;
\r
1372 * Sets the value of field 'consThreshold'.
\r
1374 * @param consThreshold the value of field 'consThreshold'.
\r
1376 public void setConsThreshold(
\r
1377 final int consThreshold) {
\r
1378 this._consThreshold = consThreshold;
\r
1379 this._has_consThreshold = true;
\r
1383 * Sets the value of field 'conservationSelected'.
\r
1385 * @param conservationSelected the value of field
\r
1386 * 'conservationSelected'.
\r
1388 public void setConservationSelected(
\r
1389 final boolean conservationSelected) {
\r
1390 this._conservationSelected = conservationSelected;
\r
1391 this._has_conservationSelected = true;
\r
1395 * Sets the value of field 'fontName'.
\r
1397 * @param fontName the value of field 'fontName'.
\r
1399 public void setFontName(
\r
1400 final java.lang.String fontName) {
\r
1401 this._fontName = fontName;
\r
1405 * Sets the value of field 'fontSize'.
\r
1407 * @param fontSize the value of field 'fontSize'.
\r
1409 public void setFontSize(
\r
1410 final int fontSize) {
\r
1411 this._fontSize = fontSize;
\r
1412 this._has_fontSize = true;
\r
1416 * Sets the value of field 'fontStyle'.
\r
1418 * @param fontStyle the value of field 'fontStyle'.
\r
1420 public void setFontStyle(
\r
1421 final int fontStyle) {
\r
1422 this._fontStyle = fontStyle;
\r
1423 this._has_fontStyle = true;
\r
1427 * Sets the value of field 'gatheredViews'.
\r
1429 * @param gatheredViews the value of field 'gatheredViews'.
\r
1431 public void setGatheredViews(
\r
1432 final boolean gatheredViews) {
\r
1433 this._gatheredViews = gatheredViews;
\r
1434 this._has_gatheredViews = true;
\r
1438 * Sets the value of field 'height'.
\r
1440 * @param height the value of field 'height'.
\r
1442 public void setHeight(
\r
1443 final int height) {
\r
1444 this._height = height;
\r
1445 this._has_height = true;
\r
1452 * @param vHiddenColumns
\r
1453 * @throws java.lang.IndexOutOfBoundsException if the index
\r
1454 * given is outside the bounds of the collection
\r
1456 public void setHiddenColumns(
\r
1458 final jalview.schemabinding.version2.HiddenColumns vHiddenColumns)
\r
1459 throws java.lang.IndexOutOfBoundsException {
\r
1460 // check bounds for index
\r
1461 if (index < 0 || index >= this._hiddenColumnsList.size()) {
\r
1462 throw new IndexOutOfBoundsException("setHiddenColumns: Index value '" + index + "' not in range [0.." + (this._hiddenColumnsList.size() - 1) + "]");
\r
1465 this._hiddenColumnsList.set(index, vHiddenColumns);
\r
1471 * @param vHiddenColumnsArray
\r
1473 public void setHiddenColumns(
\r
1474 final jalview.schemabinding.version2.HiddenColumns[] vHiddenColumnsArray) {
\r
1476 _hiddenColumnsList.clear();
\r
1478 for (int i = 0; i < vHiddenColumnsArray.length; i++) {
\r
1479 this._hiddenColumnsList.add(vHiddenColumnsArray[i]);
\r
1484 * Sets the value of field 'pidSelected'.
\r
1486 * @param pidSelected the value of field 'pidSelected'.
\r
1488 public void setPidSelected(
\r
1489 final boolean pidSelected) {
\r
1490 this._pidSelected = pidSelected;
\r
1491 this._has_pidSelected = true;
\r
1495 * Sets the value of field 'pidThreshold'.
\r
1497 * @param pidThreshold the value of field 'pidThreshold'.
\r
1499 public void setPidThreshold(
\r
1500 final int pidThreshold) {
\r
1501 this._pidThreshold = pidThreshold;
\r
1502 this._has_pidThreshold = true;
\r
1506 * Sets the value of field 'renderGaps'.
\r
1508 * @param renderGaps the value of field 'renderGaps'.
\r
1510 public void setRenderGaps(
\r
1511 final boolean renderGaps) {
\r
1512 this._renderGaps = renderGaps;
\r
1513 this._has_renderGaps = true;
\r
1517 * Sets the value of field 'rightAlignIds'.
\r
1519 * @param rightAlignIds the value of field 'rightAlignIds'.
\r
1521 public void setRightAlignIds(
\r
1522 final boolean rightAlignIds) {
\r
1523 this._rightAlignIds = rightAlignIds;
\r
1524 this._has_rightAlignIds = true;
\r
1528 * Sets the value of field 'sequenceSetId'.
\r
1530 * @param sequenceSetId the value of field 'sequenceSetId'.
\r
1532 public void setSequenceSetId(
\r
1533 final java.lang.String sequenceSetId) {
\r
1534 this._sequenceSetId = sequenceSetId;
\r
1538 * Sets the value of field 'showAnnotation'.
\r
1540 * @param showAnnotation the value of field 'showAnnotation'.
\r
1542 public void setShowAnnotation(
\r
1543 final boolean showAnnotation) {
\r
1544 this._showAnnotation = showAnnotation;
\r
1545 this._has_showAnnotation = true;
\r
1549 * Sets the value of field 'showBoxes'.
\r
1551 * @param showBoxes the value of field 'showBoxes'.
\r
1553 public void setShowBoxes(
\r
1554 final boolean showBoxes) {
\r
1555 this._showBoxes = showBoxes;
\r
1556 this._has_showBoxes = true;
\r
1560 * Sets the value of field 'showColourText'.
\r
1562 * @param showColourText the value of field 'showColourText'.
\r
1564 public void setShowColourText(
\r
1565 final boolean showColourText) {
\r
1566 this._showColourText = showColourText;
\r
1567 this._has_showColourText = true;
\r
1571 * Sets the value of field 'showFullId'.
\r
1573 * @param showFullId the value of field 'showFullId'.
\r
1575 public void setShowFullId(
\r
1576 final boolean showFullId) {
\r
1577 this._showFullId = showFullId;
\r
1578 this._has_showFullId = true;
\r
1582 * Sets the value of field 'showSequenceFeatures'.
\r
1584 * @param showSequenceFeatures the value of field
\r
1585 * 'showSequenceFeatures'.
\r
1587 public void setShowSequenceFeatures(
\r
1588 final boolean showSequenceFeatures) {
\r
1589 this._showSequenceFeatures = showSequenceFeatures;
\r
1590 this._has_showSequenceFeatures = true;
\r
1594 * Sets the value of field 'showText'.
\r
1596 * @param showText the value of field 'showText'.
\r
1598 public void setShowText(
\r
1599 final boolean showText) {
\r
1600 this._showText = showText;
\r
1601 this._has_showText = true;
\r
1605 * Sets the value of field 'startRes'.
\r
1607 * @param startRes the value of field 'startRes'.
\r
1609 public void setStartRes(
\r
1610 final int startRes) {
\r
1611 this._startRes = startRes;
\r
1612 this._has_startRes = true;
\r
1616 * Sets the value of field 'startSeq'.
\r
1618 * @param startSeq the value of field 'startSeq'.
\r
1620 public void setStartSeq(
\r
1621 final int startSeq) {
\r
1622 this._startSeq = startSeq;
\r
1623 this._has_startSeq = true;
\r
1627 * Sets the value of field 'textCol1'.
\r
1629 * @param textCol1 the value of field 'textCol1'.
\r
1631 public void setTextCol1(
\r
1632 final int textCol1) {
\r
1633 this._textCol1 = textCol1;
\r
1634 this._has_textCol1 = true;
\r
1638 * Sets the value of field 'textCol2'.
\r
1640 * @param textCol2 the value of field 'textCol2'.
\r
1642 public void setTextCol2(
\r
1643 final int textCol2) {
\r
1644 this._textCol2 = textCol2;
\r
1645 this._has_textCol2 = true;
\r
1649 * Sets the value of field 'textColThreshold'.
\r
1651 * @param textColThreshold the value of field 'textColThreshold'
\r
1653 public void setTextColThreshold(
\r
1654 final int textColThreshold) {
\r
1655 this._textColThreshold = textColThreshold;
\r
1656 this._has_textColThreshold = true;
\r
1660 * Sets the value of field 'title'.
\r
1662 * @param title the value of field 'title'.
\r
1664 public void setTitle(
\r
1665 final java.lang.String title) {
\r
1666 this._title = title;
\r
1670 * Sets the value of field 'viewName'.
\r
1672 * @param viewName the value of field 'viewName'.
\r
1674 public void setViewName(
\r
1675 final java.lang.String viewName) {
\r
1676 this._viewName = viewName;
\r
1680 * Sets the value of field 'width'.
\r
1682 * @param width the value of field 'width'.
\r
1684 public void setWidth(
\r
1685 final int width) {
\r
1686 this._width = width;
\r
1687 this._has_width = true;
\r
1691 * Sets the value of field 'wrapAlignment'.
\r
1693 * @param wrapAlignment the value of field 'wrapAlignment'.
\r
1695 public void setWrapAlignment(
\r
1696 final boolean wrapAlignment) {
\r
1697 this._wrapAlignment = wrapAlignment;
\r
1698 this._has_wrapAlignment = true;
\r
1702 * Sets the value of field 'xpos'.
\r
1704 * @param xpos the value of field 'xpos'.
\r
1706 public void setXpos(
\r
1708 this._xpos = xpos;
\r
1709 this._has_xpos = true;
\r
1713 * Sets the value of field 'ypos'.
\r
1715 * @param ypos the value of field 'ypos'.
\r
1717 public void setYpos(
\r
1719 this._ypos = ypos;
\r
1720 this._has_ypos = true;
\r
1724 * Method unmarshal.
\r
1727 * @throws org.exolab.castor.xml.MarshalException if object is
\r
1728 * null or if any SAXException is thrown during marshaling
\r
1729 * @throws org.exolab.castor.xml.ValidationException if this
\r
1730 * object is an invalid instance according to the schema
\r
1731 * @return the unmarshaled
\r
1732 * jalview.schemabinding.version2.Viewport
\r
1734 public static jalview.schemabinding.version2.Viewport unmarshal(
\r
1735 final java.io.Reader reader)
\r
1736 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
\r
1737 return (jalview.schemabinding.version2.Viewport) Unmarshaller.unmarshal(jalview.schemabinding.version2.Viewport.class, reader);
\r
1743 * @throws org.exolab.castor.xml.ValidationException if this
\r
1744 * object is an invalid instance according to the schema
\r
1746 public void validate(
\r
1748 throws org.exolab.castor.xml.ValidationException {
\r
1749 org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
\r
1750 validator.validate(this);
\r