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 * unique id used by jalview to synchronize between stored and
\r
306 * instantiated views
\r
309 private java.lang.String _id;
\r
312 * Field _annotationColours.
\r
314 private jalview.schemabinding.version2.AnnotationColours _annotationColours;
\r
317 * Field _hiddenColumnsList.
\r
319 private java.util.Vector _hiddenColumnsList;
\r
322 //----------------/
\r
323 //- Constructors -/
\r
324 //----------------/
\r
326 public Viewport() {
\r
328 this._hiddenColumnsList = new java.util.Vector();
\r
339 * @param vHiddenColumns
\r
340 * @throws java.lang.IndexOutOfBoundsException if the index
\r
341 * given is outside the bounds of the collection
\r
343 public void addHiddenColumns(
\r
344 final jalview.schemabinding.version2.HiddenColumns vHiddenColumns)
\r
345 throws java.lang.IndexOutOfBoundsException {
\r
346 this._hiddenColumnsList.addElement(vHiddenColumns);
\r
353 * @param vHiddenColumns
\r
354 * @throws java.lang.IndexOutOfBoundsException if the index
\r
355 * given is outside the bounds of the collection
\r
357 public void addHiddenColumns(
\r
359 final jalview.schemabinding.version2.HiddenColumns vHiddenColumns)
\r
360 throws java.lang.IndexOutOfBoundsException {
\r
361 this._hiddenColumnsList.add(index, vHiddenColumns);
\r
366 public void deleteConsThreshold(
\r
368 this._has_consThreshold= false;
\r
373 public void deleteConservationSelected(
\r
375 this._has_conservationSelected= false;
\r
380 public void deleteFontSize(
\r
382 this._has_fontSize= false;
\r
387 public void deleteFontStyle(
\r
389 this._has_fontStyle= false;
\r
394 public void deleteGatheredViews(
\r
396 this._has_gatheredViews= false;
\r
401 public void deleteHeight(
\r
403 this._has_height= false;
\r
408 public void deletePidSelected(
\r
410 this._has_pidSelected= false;
\r
415 public void deletePidThreshold(
\r
417 this._has_pidThreshold= false;
\r
422 public void deleteRenderGaps(
\r
424 this._has_renderGaps= false;
\r
429 public void deleteRightAlignIds(
\r
431 this._has_rightAlignIds= false;
\r
436 public void deleteShowAnnotation(
\r
438 this._has_showAnnotation= false;
\r
443 public void deleteShowBoxes(
\r
445 this._has_showBoxes= false;
\r
450 public void deleteShowColourText(
\r
452 this._has_showColourText= false;
\r
457 public void deleteShowFullId(
\r
459 this._has_showFullId= false;
\r
464 public void deleteShowSequenceFeatures(
\r
466 this._has_showSequenceFeatures= false;
\r
471 public void deleteShowText(
\r
473 this._has_showText= false;
\r
478 public void deleteStartRes(
\r
480 this._has_startRes= false;
\r
485 public void deleteStartSeq(
\r
487 this._has_startSeq= false;
\r
492 public void deleteTextCol1(
\r
494 this._has_textCol1= false;
\r
499 public void deleteTextCol2(
\r
501 this._has_textCol2= false;
\r
506 public void deleteTextColThreshold(
\r
508 this._has_textColThreshold= false;
\r
513 public void deleteWidth(
\r
515 this._has_width= false;
\r
520 public void deleteWrapAlignment(
\r
522 this._has_wrapAlignment= false;
\r
527 public void deleteXpos(
\r
529 this._has_xpos= false;
\r
534 public void deleteYpos(
\r
536 this._has_ypos= false;
\r
540 * Method enumerateHiddenColumns.
\r
542 * @return an Enumeration over all
\r
543 * jalview.schemabinding.version2.HiddenColumns elements
\r
545 public java.util.Enumeration enumerateHiddenColumns(
\r
547 return this._hiddenColumnsList.elements();
\r
551 * Returns the value of field 'annotationColours'.
\r
553 * @return the value of field 'AnnotationColours'.
\r
555 public jalview.schemabinding.version2.AnnotationColours getAnnotationColours(
\r
557 return this._annotationColours;
\r
561 * Returns the value of field 'bgColour'.
\r
563 * @return the value of field 'BgColour'.
\r
565 public java.lang.String getBgColour(
\r
567 return this._bgColour;
\r
571 * Returns the value of field 'consThreshold'.
\r
573 * @return the value of field 'ConsThreshold'.
\r
575 public int getConsThreshold(
\r
577 return this._consThreshold;
\r
581 * Returns the value of field 'conservationSelected'.
\r
583 * @return the value of field 'ConservationSelected'.
\r
585 public boolean getConservationSelected(
\r
587 return this._conservationSelected;
\r
591 * Returns the value of field 'fontName'.
\r
593 * @return the value of field 'FontName'.
\r
595 public java.lang.String getFontName(
\r
597 return this._fontName;
\r
601 * Returns the value of field 'fontSize'.
\r
603 * @return the value of field 'FontSize'.
\r
605 public int getFontSize(
\r
607 return this._fontSize;
\r
611 * Returns the value of field 'fontStyle'.
\r
613 * @return the value of field 'FontStyle'.
\r
615 public int getFontStyle(
\r
617 return this._fontStyle;
\r
621 * Returns the value of field 'gatheredViews'.
\r
623 * @return the value of field 'GatheredViews'.
\r
625 public boolean getGatheredViews(
\r
627 return this._gatheredViews;
\r
631 * Returns the value of field 'height'.
\r
633 * @return the value of field 'Height'.
\r
635 public int getHeight(
\r
637 return this._height;
\r
641 * Method getHiddenColumns.
\r
644 * @throws java.lang.IndexOutOfBoundsException if the index
\r
645 * given is outside the bounds of the collection
\r
646 * @return the value of the
\r
647 * jalview.schemabinding.version2.HiddenColumns at the given
\r
650 public jalview.schemabinding.version2.HiddenColumns getHiddenColumns(
\r
652 throws java.lang.IndexOutOfBoundsException {
\r
653 // check bounds for index
\r
654 if (index < 0 || index >= this._hiddenColumnsList.size()) {
\r
655 throw new IndexOutOfBoundsException("getHiddenColumns: Index value '" + index + "' not in range [0.." + (this._hiddenColumnsList.size() - 1) + "]");
\r
658 return (jalview.schemabinding.version2.HiddenColumns) _hiddenColumnsList.get(index);
\r
662 * Method getHiddenColumns.Returns the contents of the
\r
663 * collection in an Array. <p>Note: Just in case the
\r
664 * collection contents are changing in another thread, we pass
\r
665 * a 0-length Array of the correct type into the API call.
\r
666 * This way we <i>know</i> that the Array returned is of
\r
667 * exactly the correct length.
\r
669 * @return this collection as an Array
\r
671 public jalview.schemabinding.version2.HiddenColumns[] getHiddenColumns(
\r
673 jalview.schemabinding.version2.HiddenColumns[] array = new jalview.schemabinding.version2.HiddenColumns[0];
\r
674 return (jalview.schemabinding.version2.HiddenColumns[]) this._hiddenColumnsList.toArray(array);
\r
678 * Method getHiddenColumnsCount.
\r
680 * @return the size of this collection
\r
682 public int getHiddenColumnsCount(
\r
684 return this._hiddenColumnsList.size();
\r
688 * Returns the value of field 'id'. The field 'id' has the
\r
689 * following description: unique id used by jalview to
\r
690 * synchronize between stored and instantiated views
\r
693 * @return the value of field 'Id'.
\r
695 public java.lang.String getId(
\r
701 * Returns the value of field 'pidSelected'.
\r
703 * @return the value of field 'PidSelected'.
\r
705 public boolean getPidSelected(
\r
707 return this._pidSelected;
\r
711 * Returns the value of field 'pidThreshold'.
\r
713 * @return the value of field 'PidThreshold'.
\r
715 public int getPidThreshold(
\r
717 return this._pidThreshold;
\r
721 * Returns the value of field 'renderGaps'.
\r
723 * @return the value of field 'RenderGaps'.
\r
725 public boolean getRenderGaps(
\r
727 return this._renderGaps;
\r
731 * Returns the value of field 'rightAlignIds'.
\r
733 * @return the value of field 'RightAlignIds'.
\r
735 public boolean getRightAlignIds(
\r
737 return this._rightAlignIds;
\r
741 * Returns the value of field 'sequenceSetId'.
\r
743 * @return the value of field 'SequenceSetId'.
\r
745 public java.lang.String getSequenceSetId(
\r
747 return this._sequenceSetId;
\r
751 * Returns the value of field 'showAnnotation'.
\r
753 * @return the value of field 'ShowAnnotation'.
\r
755 public boolean getShowAnnotation(
\r
757 return this._showAnnotation;
\r
761 * Returns the value of field 'showBoxes'.
\r
763 * @return the value of field 'ShowBoxes'.
\r
765 public boolean getShowBoxes(
\r
767 return this._showBoxes;
\r
771 * Returns the value of field 'showColourText'.
\r
773 * @return the value of field 'ShowColourText'.
\r
775 public boolean getShowColourText(
\r
777 return this._showColourText;
\r
781 * Returns the value of field 'showFullId'.
\r
783 * @return the value of field 'ShowFullId'.
\r
785 public boolean getShowFullId(
\r
787 return this._showFullId;
\r
791 * Returns the value of field 'showSequenceFeatures'.
\r
793 * @return the value of field 'ShowSequenceFeatures'.
\r
795 public boolean getShowSequenceFeatures(
\r
797 return this._showSequenceFeatures;
\r
801 * Returns the value of field 'showText'.
\r
803 * @return the value of field 'ShowText'.
\r
805 public boolean getShowText(
\r
807 return this._showText;
\r
811 * Returns the value of field 'startRes'.
\r
813 * @return the value of field 'StartRes'.
\r
815 public int getStartRes(
\r
817 return this._startRes;
\r
821 * Returns the value of field 'startSeq'.
\r
823 * @return the value of field 'StartSeq'.
\r
825 public int getStartSeq(
\r
827 return this._startSeq;
\r
831 * Returns the value of field 'textCol1'.
\r
833 * @return the value of field 'TextCol1'.
\r
835 public int getTextCol1(
\r
837 return this._textCol1;
\r
841 * Returns the value of field 'textCol2'.
\r
843 * @return the value of field 'TextCol2'.
\r
845 public int getTextCol2(
\r
847 return this._textCol2;
\r
851 * Returns the value of field 'textColThreshold'.
\r
853 * @return the value of field 'TextColThreshold'.
\r
855 public int getTextColThreshold(
\r
857 return this._textColThreshold;
\r
861 * Returns the value of field 'title'.
\r
863 * @return the value of field 'Title'.
\r
865 public java.lang.String getTitle(
\r
867 return this._title;
\r
871 * Returns the value of field 'viewName'.
\r
873 * @return the value of field 'ViewName'.
\r
875 public java.lang.String getViewName(
\r
877 return this._viewName;
\r
881 * Returns the value of field 'width'.
\r
883 * @return the value of field 'Width'.
\r
885 public int getWidth(
\r
887 return this._width;
\r
891 * Returns the value of field 'wrapAlignment'.
\r
893 * @return the value of field 'WrapAlignment'.
\r
895 public boolean getWrapAlignment(
\r
897 return this._wrapAlignment;
\r
901 * Returns the value of field 'xpos'.
\r
903 * @return the value of field 'Xpos'.
\r
905 public int getXpos(
\r
911 * Returns the value of field 'ypos'.
\r
913 * @return the value of field 'Ypos'.
\r
915 public int getYpos(
\r
921 * Method hasConsThreshold.
\r
923 * @return true if at least one ConsThreshold has been added
\r
925 public boolean hasConsThreshold(
\r
927 return this._has_consThreshold;
\r
931 * Method hasConservationSelected.
\r
933 * @return true if at least one ConservationSelected has been
\r
936 public boolean hasConservationSelected(
\r
938 return this._has_conservationSelected;
\r
942 * Method hasFontSize.
\r
944 * @return true if at least one FontSize has been added
\r
946 public boolean hasFontSize(
\r
948 return this._has_fontSize;
\r
952 * Method hasFontStyle.
\r
954 * @return true if at least one FontStyle has been added
\r
956 public boolean hasFontStyle(
\r
958 return this._has_fontStyle;
\r
962 * Method hasGatheredViews.
\r
964 * @return true if at least one GatheredViews has been added
\r
966 public boolean hasGatheredViews(
\r
968 return this._has_gatheredViews;
\r
972 * Method hasHeight.
\r
974 * @return true if at least one Height has been added
\r
976 public boolean hasHeight(
\r
978 return this._has_height;
\r
982 * Method hasPidSelected.
\r
984 * @return true if at least one PidSelected has been added
\r
986 public boolean hasPidSelected(
\r
988 return this._has_pidSelected;
\r
992 * Method hasPidThreshold.
\r
994 * @return true if at least one PidThreshold has been added
\r
996 public boolean hasPidThreshold(
\r
998 return this._has_pidThreshold;
\r
1002 * Method hasRenderGaps.
\r
1004 * @return true if at least one RenderGaps has been added
\r
1006 public boolean hasRenderGaps(
\r
1008 return this._has_renderGaps;
\r
1012 * Method hasRightAlignIds.
\r
1014 * @return true if at least one RightAlignIds has been added
\r
1016 public boolean hasRightAlignIds(
\r
1018 return this._has_rightAlignIds;
\r
1022 * Method hasShowAnnotation.
\r
1024 * @return true if at least one ShowAnnotation has been added
\r
1026 public boolean hasShowAnnotation(
\r
1028 return this._has_showAnnotation;
\r
1032 * Method hasShowBoxes.
\r
1034 * @return true if at least one ShowBoxes has been added
\r
1036 public boolean hasShowBoxes(
\r
1038 return this._has_showBoxes;
\r
1042 * Method hasShowColourText.
\r
1044 * @return true if at least one ShowColourText has been added
\r
1046 public boolean hasShowColourText(
\r
1048 return this._has_showColourText;
\r
1052 * Method hasShowFullId.
\r
1054 * @return true if at least one ShowFullId has been added
\r
1056 public boolean hasShowFullId(
\r
1058 return this._has_showFullId;
\r
1062 * Method hasShowSequenceFeatures.
\r
1064 * @return true if at least one ShowSequenceFeatures has been
\r
1067 public boolean hasShowSequenceFeatures(
\r
1069 return this._has_showSequenceFeatures;
\r
1073 * Method hasShowText.
\r
1075 * @return true if at least one ShowText has been added
\r
1077 public boolean hasShowText(
\r
1079 return this._has_showText;
\r
1083 * Method hasStartRes.
\r
1085 * @return true if at least one StartRes has been added
\r
1087 public boolean hasStartRes(
\r
1089 return this._has_startRes;
\r
1093 * Method hasStartSeq.
\r
1095 * @return true if at least one StartSeq has been added
\r
1097 public boolean hasStartSeq(
\r
1099 return this._has_startSeq;
\r
1103 * Method hasTextCol1.
\r
1105 * @return true if at least one TextCol1 has been added
\r
1107 public boolean hasTextCol1(
\r
1109 return this._has_textCol1;
\r
1113 * Method hasTextCol2.
\r
1115 * @return true if at least one TextCol2 has been added
\r
1117 public boolean hasTextCol2(
\r
1119 return this._has_textCol2;
\r
1123 * Method hasTextColThreshold.
\r
1125 * @return true if at least one TextColThreshold has been added
\r
1127 public boolean hasTextColThreshold(
\r
1129 return this._has_textColThreshold;
\r
1133 * Method hasWidth.
\r
1135 * @return true if at least one Width has been added
\r
1137 public boolean hasWidth(
\r
1139 return this._has_width;
\r
1143 * Method hasWrapAlignment.
\r
1145 * @return true if at least one WrapAlignment has been added
\r
1147 public boolean hasWrapAlignment(
\r
1149 return this._has_wrapAlignment;
\r
1155 * @return true if at least one Xpos has been added
\r
1157 public boolean hasXpos(
\r
1159 return this._has_xpos;
\r
1165 * @return true if at least one Ypos has been added
\r
1167 public boolean hasYpos(
\r
1169 return this._has_ypos;
\r
1173 * Returns the value of field 'conservationSelected'.
\r
1175 * @return the value of field 'ConservationSelected'.
\r
1177 public boolean isConservationSelected(
\r
1179 return this._conservationSelected;
\r
1183 * Returns the value of field 'gatheredViews'.
\r
1185 * @return the value of field 'GatheredViews'.
\r
1187 public boolean isGatheredViews(
\r
1189 return this._gatheredViews;
\r
1193 * Returns the value of field 'pidSelected'.
\r
1195 * @return the value of field 'PidSelected'.
\r
1197 public boolean isPidSelected(
\r
1199 return this._pidSelected;
\r
1203 * Returns the value of field 'renderGaps'.
\r
1205 * @return the value of field 'RenderGaps'.
\r
1207 public boolean isRenderGaps(
\r
1209 return this._renderGaps;
\r
1213 * Returns the value of field 'rightAlignIds'.
\r
1215 * @return the value of field 'RightAlignIds'.
\r
1217 public boolean isRightAlignIds(
\r
1219 return this._rightAlignIds;
\r
1223 * Returns the value of field 'showAnnotation'.
\r
1225 * @return the value of field 'ShowAnnotation'.
\r
1227 public boolean isShowAnnotation(
\r
1229 return this._showAnnotation;
\r
1233 * Returns the value of field 'showBoxes'.
\r
1235 * @return the value of field 'ShowBoxes'.
\r
1237 public boolean isShowBoxes(
\r
1239 return this._showBoxes;
\r
1243 * Returns the value of field 'showColourText'.
\r
1245 * @return the value of field 'ShowColourText'.
\r
1247 public boolean isShowColourText(
\r
1249 return this._showColourText;
\r
1253 * Returns the value of field 'showFullId'.
\r
1255 * @return the value of field 'ShowFullId'.
\r
1257 public boolean isShowFullId(
\r
1259 return this._showFullId;
\r
1263 * Returns the value of field 'showSequenceFeatures'.
\r
1265 * @return the value of field 'ShowSequenceFeatures'.
\r
1267 public boolean isShowSequenceFeatures(
\r
1269 return this._showSequenceFeatures;
\r
1273 * Returns the value of field 'showText'.
\r
1275 * @return the value of field 'ShowText'.
\r
1277 public boolean isShowText(
\r
1279 return this._showText;
\r
1285 * @return true if this object is valid according to the schema
\r
1287 public boolean isValid(
\r
1291 } catch (org.exolab.castor.xml.ValidationException vex) {
\r
1298 * Returns the value of field 'wrapAlignment'.
\r
1300 * @return the value of field 'WrapAlignment'.
\r
1302 public boolean isWrapAlignment(
\r
1304 return this._wrapAlignment;
\r
1311 * @throws org.exolab.castor.xml.MarshalException if object is
\r
1312 * null or if any SAXException is thrown during marshaling
\r
1313 * @throws org.exolab.castor.xml.ValidationException if this
\r
1314 * object is an invalid instance according to the schema
\r
1316 public void marshal(
\r
1317 final java.io.Writer out)
\r
1318 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
\r
1319 Marshaller.marshal(this, out);
\r
1326 * @throws java.io.IOException if an IOException occurs during
\r
1328 * @throws org.exolab.castor.xml.ValidationException if this
\r
1329 * object is an invalid instance according to the schema
\r
1330 * @throws org.exolab.castor.xml.MarshalException if object is
\r
1331 * null or if any SAXException is thrown during marshaling
\r
1333 public void marshal(
\r
1334 final org.xml.sax.ContentHandler handler)
\r
1335 throws java.io.IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
\r
1336 Marshaller.marshal(this, handler);
\r
1341 public void removeAllHiddenColumns(
\r
1343 this._hiddenColumnsList.clear();
\r
1347 * Method removeHiddenColumns.
\r
1349 * @param vHiddenColumns
\r
1350 * @return true if the object was removed from the collection.
\r
1352 public boolean removeHiddenColumns(
\r
1353 final jalview.schemabinding.version2.HiddenColumns vHiddenColumns) {
\r
1354 boolean removed = _hiddenColumnsList.remove(vHiddenColumns);
\r
1359 * Method removeHiddenColumnsAt.
\r
1362 * @return the element removed from the collection
\r
1364 public jalview.schemabinding.version2.HiddenColumns removeHiddenColumnsAt(
\r
1365 final int index) {
\r
1366 java.lang.Object obj = this._hiddenColumnsList.remove(index);
\r
1367 return (jalview.schemabinding.version2.HiddenColumns) obj;
\r
1371 * Sets the value of field 'annotationColours'.
\r
1373 * @param annotationColours the value of field
\r
1374 * 'annotationColours'.
\r
1376 public void setAnnotationColours(
\r
1377 final jalview.schemabinding.version2.AnnotationColours annotationColours) {
\r
1378 this._annotationColours = annotationColours;
\r
1382 * Sets the value of field 'bgColour'.
\r
1384 * @param bgColour the value of field 'bgColour'.
\r
1386 public void setBgColour(
\r
1387 final java.lang.String bgColour) {
\r
1388 this._bgColour = bgColour;
\r
1392 * Sets the value of field 'consThreshold'.
\r
1394 * @param consThreshold the value of field 'consThreshold'.
\r
1396 public void setConsThreshold(
\r
1397 final int consThreshold) {
\r
1398 this._consThreshold = consThreshold;
\r
1399 this._has_consThreshold = true;
\r
1403 * Sets the value of field 'conservationSelected'.
\r
1405 * @param conservationSelected the value of field
\r
1406 * 'conservationSelected'.
\r
1408 public void setConservationSelected(
\r
1409 final boolean conservationSelected) {
\r
1410 this._conservationSelected = conservationSelected;
\r
1411 this._has_conservationSelected = true;
\r
1415 * Sets the value of field 'fontName'.
\r
1417 * @param fontName the value of field 'fontName'.
\r
1419 public void setFontName(
\r
1420 final java.lang.String fontName) {
\r
1421 this._fontName = fontName;
\r
1425 * Sets the value of field 'fontSize'.
\r
1427 * @param fontSize the value of field 'fontSize'.
\r
1429 public void setFontSize(
\r
1430 final int fontSize) {
\r
1431 this._fontSize = fontSize;
\r
1432 this._has_fontSize = true;
\r
1436 * Sets the value of field 'fontStyle'.
\r
1438 * @param fontStyle the value of field 'fontStyle'.
\r
1440 public void setFontStyle(
\r
1441 final int fontStyle) {
\r
1442 this._fontStyle = fontStyle;
\r
1443 this._has_fontStyle = true;
\r
1447 * Sets the value of field 'gatheredViews'.
\r
1449 * @param gatheredViews the value of field 'gatheredViews'.
\r
1451 public void setGatheredViews(
\r
1452 final boolean gatheredViews) {
\r
1453 this._gatheredViews = gatheredViews;
\r
1454 this._has_gatheredViews = true;
\r
1458 * Sets the value of field 'height'.
\r
1460 * @param height the value of field 'height'.
\r
1462 public void setHeight(
\r
1463 final int height) {
\r
1464 this._height = height;
\r
1465 this._has_height = true;
\r
1472 * @param vHiddenColumns
\r
1473 * @throws java.lang.IndexOutOfBoundsException if the index
\r
1474 * given is outside the bounds of the collection
\r
1476 public void setHiddenColumns(
\r
1478 final jalview.schemabinding.version2.HiddenColumns vHiddenColumns)
\r
1479 throws java.lang.IndexOutOfBoundsException {
\r
1480 // check bounds for index
\r
1481 if (index < 0 || index >= this._hiddenColumnsList.size()) {
\r
1482 throw new IndexOutOfBoundsException("setHiddenColumns: Index value '" + index + "' not in range [0.." + (this._hiddenColumnsList.size() - 1) + "]");
\r
1485 this._hiddenColumnsList.set(index, vHiddenColumns);
\r
1491 * @param vHiddenColumnsArray
\r
1493 public void setHiddenColumns(
\r
1494 final jalview.schemabinding.version2.HiddenColumns[] vHiddenColumnsArray) {
\r
1496 _hiddenColumnsList.clear();
\r
1498 for (int i = 0; i < vHiddenColumnsArray.length; i++) {
\r
1499 this._hiddenColumnsList.add(vHiddenColumnsArray[i]);
\r
1504 * Sets the value of field 'id'. The field 'id' has the
\r
1505 * following description: unique id used by jalview to
\r
1506 * synchronize between stored and instantiated views
\r
1509 * @param id the value of field 'id'.
\r
1511 public void setId(
\r
1512 final java.lang.String id) {
\r
1517 * Sets the value of field 'pidSelected'.
\r
1519 * @param pidSelected the value of field 'pidSelected'.
\r
1521 public void setPidSelected(
\r
1522 final boolean pidSelected) {
\r
1523 this._pidSelected = pidSelected;
\r
1524 this._has_pidSelected = true;
\r
1528 * Sets the value of field 'pidThreshold'.
\r
1530 * @param pidThreshold the value of field 'pidThreshold'.
\r
1532 public void setPidThreshold(
\r
1533 final int pidThreshold) {
\r
1534 this._pidThreshold = pidThreshold;
\r
1535 this._has_pidThreshold = true;
\r
1539 * Sets the value of field 'renderGaps'.
\r
1541 * @param renderGaps the value of field 'renderGaps'.
\r
1543 public void setRenderGaps(
\r
1544 final boolean renderGaps) {
\r
1545 this._renderGaps = renderGaps;
\r
1546 this._has_renderGaps = true;
\r
1550 * Sets the value of field 'rightAlignIds'.
\r
1552 * @param rightAlignIds the value of field 'rightAlignIds'.
\r
1554 public void setRightAlignIds(
\r
1555 final boolean rightAlignIds) {
\r
1556 this._rightAlignIds = rightAlignIds;
\r
1557 this._has_rightAlignIds = true;
\r
1561 * Sets the value of field 'sequenceSetId'.
\r
1563 * @param sequenceSetId the value of field 'sequenceSetId'.
\r
1565 public void setSequenceSetId(
\r
1566 final java.lang.String sequenceSetId) {
\r
1567 this._sequenceSetId = sequenceSetId;
\r
1571 * Sets the value of field 'showAnnotation'.
\r
1573 * @param showAnnotation the value of field 'showAnnotation'.
\r
1575 public void setShowAnnotation(
\r
1576 final boolean showAnnotation) {
\r
1577 this._showAnnotation = showAnnotation;
\r
1578 this._has_showAnnotation = true;
\r
1582 * Sets the value of field 'showBoxes'.
\r
1584 * @param showBoxes the value of field 'showBoxes'.
\r
1586 public void setShowBoxes(
\r
1587 final boolean showBoxes) {
\r
1588 this._showBoxes = showBoxes;
\r
1589 this._has_showBoxes = true;
\r
1593 * Sets the value of field 'showColourText'.
\r
1595 * @param showColourText the value of field 'showColourText'.
\r
1597 public void setShowColourText(
\r
1598 final boolean showColourText) {
\r
1599 this._showColourText = showColourText;
\r
1600 this._has_showColourText = true;
\r
1604 * Sets the value of field 'showFullId'.
\r
1606 * @param showFullId the value of field 'showFullId'.
\r
1608 public void setShowFullId(
\r
1609 final boolean showFullId) {
\r
1610 this._showFullId = showFullId;
\r
1611 this._has_showFullId = true;
\r
1615 * Sets the value of field 'showSequenceFeatures'.
\r
1617 * @param showSequenceFeatures the value of field
\r
1618 * 'showSequenceFeatures'.
\r
1620 public void setShowSequenceFeatures(
\r
1621 final boolean showSequenceFeatures) {
\r
1622 this._showSequenceFeatures = showSequenceFeatures;
\r
1623 this._has_showSequenceFeatures = true;
\r
1627 * Sets the value of field 'showText'.
\r
1629 * @param showText the value of field 'showText'.
\r
1631 public void setShowText(
\r
1632 final boolean showText) {
\r
1633 this._showText = showText;
\r
1634 this._has_showText = true;
\r
1638 * Sets the value of field 'startRes'.
\r
1640 * @param startRes the value of field 'startRes'.
\r
1642 public void setStartRes(
\r
1643 final int startRes) {
\r
1644 this._startRes = startRes;
\r
1645 this._has_startRes = true;
\r
1649 * Sets the value of field 'startSeq'.
\r
1651 * @param startSeq the value of field 'startSeq'.
\r
1653 public void setStartSeq(
\r
1654 final int startSeq) {
\r
1655 this._startSeq = startSeq;
\r
1656 this._has_startSeq = true;
\r
1660 * Sets the value of field 'textCol1'.
\r
1662 * @param textCol1 the value of field 'textCol1'.
\r
1664 public void setTextCol1(
\r
1665 final int textCol1) {
\r
1666 this._textCol1 = textCol1;
\r
1667 this._has_textCol1 = true;
\r
1671 * Sets the value of field 'textCol2'.
\r
1673 * @param textCol2 the value of field 'textCol2'.
\r
1675 public void setTextCol2(
\r
1676 final int textCol2) {
\r
1677 this._textCol2 = textCol2;
\r
1678 this._has_textCol2 = true;
\r
1682 * Sets the value of field 'textColThreshold'.
\r
1684 * @param textColThreshold the value of field 'textColThreshold'
\r
1686 public void setTextColThreshold(
\r
1687 final int textColThreshold) {
\r
1688 this._textColThreshold = textColThreshold;
\r
1689 this._has_textColThreshold = true;
\r
1693 * Sets the value of field 'title'.
\r
1695 * @param title the value of field 'title'.
\r
1697 public void setTitle(
\r
1698 final java.lang.String title) {
\r
1699 this._title = title;
\r
1703 * Sets the value of field 'viewName'.
\r
1705 * @param viewName the value of field 'viewName'.
\r
1707 public void setViewName(
\r
1708 final java.lang.String viewName) {
\r
1709 this._viewName = viewName;
\r
1713 * Sets the value of field 'width'.
\r
1715 * @param width the value of field 'width'.
\r
1717 public void setWidth(
\r
1718 final int width) {
\r
1719 this._width = width;
\r
1720 this._has_width = true;
\r
1724 * Sets the value of field 'wrapAlignment'.
\r
1726 * @param wrapAlignment the value of field 'wrapAlignment'.
\r
1728 public void setWrapAlignment(
\r
1729 final boolean wrapAlignment) {
\r
1730 this._wrapAlignment = wrapAlignment;
\r
1731 this._has_wrapAlignment = true;
\r
1735 * Sets the value of field 'xpos'.
\r
1737 * @param xpos the value of field 'xpos'.
\r
1739 public void setXpos(
\r
1741 this._xpos = xpos;
\r
1742 this._has_xpos = true;
\r
1746 * Sets the value of field 'ypos'.
\r
1748 * @param ypos the value of field 'ypos'.
\r
1750 public void setYpos(
\r
1752 this._ypos = ypos;
\r
1753 this._has_ypos = true;
\r
1757 * Method unmarshal.
\r
1760 * @throws org.exolab.castor.xml.MarshalException if object is
\r
1761 * null or if any SAXException is thrown during marshaling
\r
1762 * @throws org.exolab.castor.xml.ValidationException if this
\r
1763 * object is an invalid instance according to the schema
\r
1764 * @return the unmarshaled
\r
1765 * jalview.schemabinding.version2.Viewport
\r
1767 public static jalview.schemabinding.version2.Viewport unmarshal(
\r
1768 final java.io.Reader reader)
\r
1769 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
\r
1770 return (jalview.schemabinding.version2.Viewport) Unmarshaller.unmarshal(jalview.schemabinding.version2.Viewport.class, reader);
\r
1776 * @throws org.exolab.castor.xml.ValidationException if this
\r
1777 * object is an invalid instance according to the schema
\r
1779 public void validate(
\r
1781 throws org.exolab.castor.xml.ValidationException {
\r
1782 org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
\r
1783 validator.validate(this);
\r