2 * Jalview - A Sequence Alignment Editor and Viewer (Version 2.4.1)
\r
3 * Copyright (C) 2009 AM Waterhouse, J Procter, G Barton, M Clamp, S Searle
\r
5 * This program is free software; you can redistribute it and/or
\r
6 * modify it under the terms of the GNU General Public License
\r
7 * as published by the Free Software Foundation; either version 2
\r
8 * of the License, or (at your option) any later version.
\r
10 * This program is distributed in the hope that it will be useful,
\r
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
\r
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
\r
13 * GNU General Public License for more details.
\r
15 * You should have received a copy of the GNU General Public License
\r
16 * along with this program; if not, write to the Free Software
\r
17 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
\r
19 package jalview.schemabinding.version2;
\r
21 //---------------------------------/
\r
22 //- Imported classes and packages -/
\r
23 //---------------------------------/
\r
25 import org.exolab.castor.xml.Marshaller;
\r
26 import org.exolab.castor.xml.Unmarshaller;
\r
31 * @version $Revision$ $Date$
\r
33 public class Viewport implements java.io.Serializable {
\r
36 //--------------------------/
\r
37 //- Class/Member Variables -/
\r
38 //--------------------------/
\r
41 * Field _conservationSelected.
\r
43 private boolean _conservationSelected;
\r
46 * keeps track of state for field: _conservationSelected
\r
48 private boolean _has_conservationSelected;
\r
51 * Field _pidSelected.
\r
53 private boolean _pidSelected;
\r
56 * keeps track of state for field: _pidSelected
\r
58 private boolean _has_pidSelected;
\r
63 private java.lang.String _bgColour;
\r
66 * Field _consThreshold.
\r
68 private int _consThreshold;
\r
71 * keeps track of state for field: _consThreshold
\r
73 private boolean _has_consThreshold;
\r
76 * Field _pidThreshold.
\r
78 private int _pidThreshold;
\r
81 * keeps track of state for field: _pidThreshold
\r
83 private boolean _has_pidThreshold;
\r
88 private java.lang.String _title;
\r
91 * Field _showFullId.
\r
93 private boolean _showFullId;
\r
96 * keeps track of state for field: _showFullId
\r
98 private boolean _has_showFullId;
\r
101 * Field _rightAlignIds.
\r
103 private boolean _rightAlignIds;
\r
106 * keeps track of state for field: _rightAlignIds
\r
108 private boolean _has_rightAlignIds;
\r
113 private boolean _showText;
\r
116 * keeps track of state for field: _showText
\r
118 private boolean _has_showText;
\r
121 * Field _showColourText.
\r
123 private boolean _showColourText;
\r
126 * keeps track of state for field: _showColourText
\r
128 private boolean _has_showColourText;
\r
131 * Field _showUnconserved.
\r
133 private boolean _showUnconserved = false;
\r
136 * keeps track of state for field: _showUnconserved
\r
138 private boolean _has_showUnconserved;
\r
141 * Field _showBoxes.
\r
143 private boolean _showBoxes;
\r
146 * keeps track of state for field: _showBoxes
\r
148 private boolean _has_showBoxes;
\r
151 * Field _wrapAlignment.
\r
153 private boolean _wrapAlignment;
\r
156 * keeps track of state for field: _wrapAlignment
\r
158 private boolean _has_wrapAlignment;
\r
161 * Field _renderGaps.
\r
163 private boolean _renderGaps;
\r
166 * keeps track of state for field: _renderGaps
\r
168 private boolean _has_renderGaps;
\r
171 * Field _showSequenceFeatures.
\r
173 private boolean _showSequenceFeatures;
\r
176 * keeps track of state for field: _showSequenceFeatures
\r
178 private boolean _has_showSequenceFeatures;
\r
181 * Field _showNPfeatureTooltip.
\r
183 private boolean _showNPfeatureTooltip;
\r
186 * keeps track of state for field: _showNPfeatureTooltip
\r
188 private boolean _has_showNPfeatureTooltip;
\r
191 * Field _showDbRefTooltip.
\r
193 private boolean _showDbRefTooltip;
\r
196 * keeps track of state for field: _showDbRefTooltip
\r
198 private boolean _has_showDbRefTooltip;
\r
201 * Field _followHighlight.
\r
203 private boolean _followHighlight = true;
\r
206 * keeps track of state for field: _followHighlight
\r
208 private boolean _has_followHighlight;
\r
211 * Field _followSelection.
\r
213 private boolean _followSelection = true;
\r
216 * keeps track of state for field: _followSelection
\r
218 private boolean _has_followSelection;
\r
221 * Field _showAnnotation.
\r
223 private boolean _showAnnotation;
\r
226 * keeps track of state for field: _showAnnotation
\r
228 private boolean _has_showAnnotation;
\r
231 * Field _centreColumnLabels.
\r
233 private boolean _centreColumnLabels = false;
\r
236 * keeps track of state for field: _centreColumnLabels
\r
238 private boolean _has_centreColumnLabels;
\r
241 * Field _showGroupConservation.
\r
243 private boolean _showGroupConservation = false;
\r
246 * keeps track of state for field: _showGroupConservation
\r
248 private boolean _has_showGroupConservation;
\r
251 * Field _showGroupConsensus.
\r
253 private boolean _showGroupConsensus = false;
\r
256 * keeps track of state for field: _showGroupConsensus
\r
258 private boolean _has_showGroupConsensus;
\r
261 * Field _showConsensusHistogram.
\r
263 private boolean _showConsensusHistogram = true;
\r
266 * keeps track of state for field: _showConsensusHistogram
\r
268 private boolean _has_showConsensusHistogram;
\r
271 * Field _showSequenceLogo.
\r
273 private boolean _showSequenceLogo = false;
\r
276 * keeps track of state for field: _showSequenceLogo
\r
278 private boolean _has_showSequenceLogo;
\r
281 * Field _ignoreGapsinConsensus.
\r
283 private boolean _ignoreGapsinConsensus = true;
\r
286 * keeps track of state for field: _ignoreGapsinConsensus
\r
288 private boolean _has_ignoreGapsinConsensus;
\r
296 * keeps track of state for field: _xpos
\r
298 private boolean _has_xpos;
\r
306 * keeps track of state for field: _ypos
\r
308 private boolean _has_ypos;
\r
313 private int _width;
\r
316 * keeps track of state for field: _width
\r
318 private boolean _has_width;
\r
323 private int _height;
\r
326 * keeps track of state for field: _height
\r
328 private boolean _has_height;
\r
333 private int _startRes;
\r
336 * keeps track of state for field: _startRes
\r
338 private boolean _has_startRes;
\r
343 private int _startSeq;
\r
346 * keeps track of state for field: _startSeq
\r
348 private boolean _has_startSeq;
\r
353 private java.lang.String _fontName;
\r
358 private int _fontSize;
\r
361 * keeps track of state for field: _fontSize
\r
363 private boolean _has_fontSize;
\r
366 * Field _fontStyle.
\r
368 private int _fontStyle;
\r
371 * keeps track of state for field: _fontStyle
\r
373 private boolean _has_fontStyle;
\r
378 private java.lang.String _viewName;
\r
381 * Field _sequenceSetId.
\r
383 private java.lang.String _sequenceSetId;
\r
386 * Field _gatheredViews.
\r
388 private boolean _gatheredViews;
\r
391 * keeps track of state for field: _gatheredViews
\r
393 private boolean _has_gatheredViews;
\r
398 private int _textCol1;
\r
401 * keeps track of state for field: _textCol1
\r
403 private boolean _has_textCol1;
\r
408 private int _textCol2;
\r
411 * keeps track of state for field: _textCol2
\r
413 private boolean _has_textCol2;
\r
416 * Field _textColThreshold.
\r
418 private int _textColThreshold;
\r
421 * keeps track of state for field: _textColThreshold
\r
423 private boolean _has_textColThreshold;
\r
426 * unique id used by jalview to synchronize between stored and
\r
427 * instantiated views
\r
430 private java.lang.String _id;
\r
433 * Field _annotationColours.
\r
435 private jalview.schemabinding.version2.AnnotationColours _annotationColours;
\r
438 * Field _hiddenColumnsList.
\r
440 private java.util.Vector _hiddenColumnsList;
\r
443 //----------------/
\r
444 //- Constructors -/
\r
445 //----------------/
\r
447 public Viewport() {
\r
449 this._hiddenColumnsList = new java.util.Vector();
\r
460 * @param vHiddenColumns
\r
461 * @throws java.lang.IndexOutOfBoundsException if the index
\r
462 * given is outside the bounds of the collection
\r
464 public void addHiddenColumns(
\r
465 final jalview.schemabinding.version2.HiddenColumns vHiddenColumns)
\r
466 throws java.lang.IndexOutOfBoundsException {
\r
467 this._hiddenColumnsList.addElement(vHiddenColumns);
\r
474 * @param vHiddenColumns
\r
475 * @throws java.lang.IndexOutOfBoundsException if the index
\r
476 * given is outside the bounds of the collection
\r
478 public void addHiddenColumns(
\r
480 final jalview.schemabinding.version2.HiddenColumns vHiddenColumns)
\r
481 throws java.lang.IndexOutOfBoundsException {
\r
482 this._hiddenColumnsList.add(index, vHiddenColumns);
\r
487 public void deleteCentreColumnLabels(
\r
489 this._has_centreColumnLabels= false;
\r
494 public void deleteConsThreshold(
\r
496 this._has_consThreshold= false;
\r
501 public void deleteConservationSelected(
\r
503 this._has_conservationSelected= false;
\r
508 public void deleteFollowHighlight(
\r
510 this._has_followHighlight= false;
\r
515 public void deleteFollowSelection(
\r
517 this._has_followSelection= false;
\r
522 public void deleteFontSize(
\r
524 this._has_fontSize= false;
\r
529 public void deleteFontStyle(
\r
531 this._has_fontStyle= false;
\r
536 public void deleteGatheredViews(
\r
538 this._has_gatheredViews= false;
\r
543 public void deleteHeight(
\r
545 this._has_height= false;
\r
550 public void deleteIgnoreGapsinConsensus(
\r
552 this._has_ignoreGapsinConsensus= false;
\r
557 public void deletePidSelected(
\r
559 this._has_pidSelected= false;
\r
564 public void deletePidThreshold(
\r
566 this._has_pidThreshold= false;
\r
571 public void deleteRenderGaps(
\r
573 this._has_renderGaps= false;
\r
578 public void deleteRightAlignIds(
\r
580 this._has_rightAlignIds= false;
\r
585 public void deleteShowAnnotation(
\r
587 this._has_showAnnotation= false;
\r
592 public void deleteShowBoxes(
\r
594 this._has_showBoxes= false;
\r
599 public void deleteShowColourText(
\r
601 this._has_showColourText= false;
\r
606 public void deleteShowConsensusHistogram(
\r
608 this._has_showConsensusHistogram= false;
\r
613 public void deleteShowDbRefTooltip(
\r
615 this._has_showDbRefTooltip= false;
\r
620 public void deleteShowFullId(
\r
622 this._has_showFullId= false;
\r
627 public void deleteShowGroupConsensus(
\r
629 this._has_showGroupConsensus= false;
\r
634 public void deleteShowGroupConservation(
\r
636 this._has_showGroupConservation= false;
\r
641 public void deleteShowNPfeatureTooltip(
\r
643 this._has_showNPfeatureTooltip= false;
\r
648 public void deleteShowSequenceFeatures(
\r
650 this._has_showSequenceFeatures= false;
\r
655 public void deleteShowSequenceLogo(
\r
657 this._has_showSequenceLogo= false;
\r
662 public void deleteShowText(
\r
664 this._has_showText= false;
\r
669 public void deleteShowUnconserved(
\r
671 this._has_showUnconserved= false;
\r
676 public void deleteStartRes(
\r
678 this._has_startRes= false;
\r
683 public void deleteStartSeq(
\r
685 this._has_startSeq= false;
\r
690 public void deleteTextCol1(
\r
692 this._has_textCol1= false;
\r
697 public void deleteTextCol2(
\r
699 this._has_textCol2= false;
\r
704 public void deleteTextColThreshold(
\r
706 this._has_textColThreshold= false;
\r
711 public void deleteWidth(
\r
713 this._has_width= false;
\r
718 public void deleteWrapAlignment(
\r
720 this._has_wrapAlignment= false;
\r
725 public void deleteXpos(
\r
727 this._has_xpos= false;
\r
732 public void deleteYpos(
\r
734 this._has_ypos= false;
\r
738 * Method enumerateHiddenColumns.
\r
740 * @return an Enumeration over all
\r
741 * jalview.schemabinding.version2.HiddenColumns elements
\r
743 public java.util.Enumeration enumerateHiddenColumns(
\r
745 return this._hiddenColumnsList.elements();
\r
749 * Returns the value of field 'annotationColours'.
\r
751 * @return the value of field 'AnnotationColours'.
\r
753 public jalview.schemabinding.version2.AnnotationColours getAnnotationColours(
\r
755 return this._annotationColours;
\r
759 * Returns the value of field 'bgColour'.
\r
761 * @return the value of field 'BgColour'.
\r
763 public java.lang.String getBgColour(
\r
765 return this._bgColour;
\r
769 * Returns the value of field 'centreColumnLabels'.
\r
771 * @return the value of field 'CentreColumnLabels'.
\r
773 public boolean getCentreColumnLabels(
\r
775 return this._centreColumnLabels;
\r
779 * Returns the value of field 'consThreshold'.
\r
781 * @return the value of field 'ConsThreshold'.
\r
783 public int getConsThreshold(
\r
785 return this._consThreshold;
\r
789 * Returns the value of field 'conservationSelected'.
\r
791 * @return the value of field 'ConservationSelected'.
\r
793 public boolean getConservationSelected(
\r
795 return this._conservationSelected;
\r
799 * Returns the value of field 'followHighlight'.
\r
801 * @return the value of field 'FollowHighlight'.
\r
803 public boolean getFollowHighlight(
\r
805 return this._followHighlight;
\r
809 * Returns the value of field 'followSelection'.
\r
811 * @return the value of field 'FollowSelection'.
\r
813 public boolean getFollowSelection(
\r
815 return this._followSelection;
\r
819 * Returns the value of field 'fontName'.
\r
821 * @return the value of field 'FontName'.
\r
823 public java.lang.String getFontName(
\r
825 return this._fontName;
\r
829 * Returns the value of field 'fontSize'.
\r
831 * @return the value of field 'FontSize'.
\r
833 public int getFontSize(
\r
835 return this._fontSize;
\r
839 * Returns the value of field 'fontStyle'.
\r
841 * @return the value of field 'FontStyle'.
\r
843 public int getFontStyle(
\r
845 return this._fontStyle;
\r
849 * Returns the value of field 'gatheredViews'.
\r
851 * @return the value of field 'GatheredViews'.
\r
853 public boolean getGatheredViews(
\r
855 return this._gatheredViews;
\r
859 * Returns the value of field 'height'.
\r
861 * @return the value of field 'Height'.
\r
863 public int getHeight(
\r
865 return this._height;
\r
869 * Method getHiddenColumns.
\r
872 * @throws java.lang.IndexOutOfBoundsException if the index
\r
873 * given is outside the bounds of the collection
\r
874 * @return the value of the
\r
875 * jalview.schemabinding.version2.HiddenColumns at the given
\r
878 public jalview.schemabinding.version2.HiddenColumns getHiddenColumns(
\r
880 throws java.lang.IndexOutOfBoundsException {
\r
881 // check bounds for index
\r
882 if (index < 0 || index >= this._hiddenColumnsList.size()) {
\r
883 throw new IndexOutOfBoundsException("getHiddenColumns: Index value '" + index + "' not in range [0.." + (this._hiddenColumnsList.size() - 1) + "]");
\r
886 return (jalview.schemabinding.version2.HiddenColumns) _hiddenColumnsList.get(index);
\r
890 * Method getHiddenColumns.Returns the contents of the
\r
891 * collection in an Array. <p>Note: Just in case the
\r
892 * collection contents are changing in another thread, we pass
\r
893 * a 0-length Array of the correct type into the API call.
\r
894 * This way we <i>know</i> that the Array returned is of
\r
895 * exactly the correct length.
\r
897 * @return this collection as an Array
\r
899 public jalview.schemabinding.version2.HiddenColumns[] getHiddenColumns(
\r
901 jalview.schemabinding.version2.HiddenColumns[] array = new jalview.schemabinding.version2.HiddenColumns[0];
\r
902 return (jalview.schemabinding.version2.HiddenColumns[]) this._hiddenColumnsList.toArray(array);
\r
906 * Method getHiddenColumnsCount.
\r
908 * @return the size of this collection
\r
910 public int getHiddenColumnsCount(
\r
912 return this._hiddenColumnsList.size();
\r
916 * Returns the value of field 'id'. The field 'id' has the
\r
917 * following description: unique id used by jalview to
\r
918 * synchronize between stored and instantiated views
\r
921 * @return the value of field 'Id'.
\r
923 public java.lang.String getId(
\r
929 * Returns the value of field 'ignoreGapsinConsensus'.
\r
931 * @return the value of field 'IgnoreGapsinConsensus'.
\r
933 public boolean getIgnoreGapsinConsensus(
\r
935 return this._ignoreGapsinConsensus;
\r
939 * Returns the value of field 'pidSelected'.
\r
941 * @return the value of field 'PidSelected'.
\r
943 public boolean getPidSelected(
\r
945 return this._pidSelected;
\r
949 * Returns the value of field 'pidThreshold'.
\r
951 * @return the value of field 'PidThreshold'.
\r
953 public int getPidThreshold(
\r
955 return this._pidThreshold;
\r
959 * Returns the value of field 'renderGaps'.
\r
961 * @return the value of field 'RenderGaps'.
\r
963 public boolean getRenderGaps(
\r
965 return this._renderGaps;
\r
969 * Returns the value of field 'rightAlignIds'.
\r
971 * @return the value of field 'RightAlignIds'.
\r
973 public boolean getRightAlignIds(
\r
975 return this._rightAlignIds;
\r
979 * Returns the value of field 'sequenceSetId'.
\r
981 * @return the value of field 'SequenceSetId'.
\r
983 public java.lang.String getSequenceSetId(
\r
985 return this._sequenceSetId;
\r
989 * Returns the value of field 'showAnnotation'.
\r
991 * @return the value of field 'ShowAnnotation'.
\r
993 public boolean getShowAnnotation(
\r
995 return this._showAnnotation;
\r
999 * Returns the value of field 'showBoxes'.
\r
1001 * @return the value of field 'ShowBoxes'.
\r
1003 public boolean getShowBoxes(
\r
1005 return this._showBoxes;
\r
1009 * Returns the value of field 'showColourText'.
\r
1011 * @return the value of field 'ShowColourText'.
\r
1013 public boolean getShowColourText(
\r
1015 return this._showColourText;
\r
1019 * Returns the value of field 'showConsensusHistogram'.
\r
1021 * @return the value of field 'ShowConsensusHistogram'.
\r
1023 public boolean getShowConsensusHistogram(
\r
1025 return this._showConsensusHistogram;
\r
1029 * Returns the value of field 'showDbRefTooltip'.
\r
1031 * @return the value of field 'ShowDbRefTooltip'.
\r
1033 public boolean getShowDbRefTooltip(
\r
1035 return this._showDbRefTooltip;
\r
1039 * Returns the value of field 'showFullId'.
\r
1041 * @return the value of field 'ShowFullId'.
\r
1043 public boolean getShowFullId(
\r
1045 return this._showFullId;
\r
1049 * Returns the value of field 'showGroupConsensus'.
\r
1051 * @return the value of field 'ShowGroupConsensus'.
\r
1053 public boolean getShowGroupConsensus(
\r
1055 return this._showGroupConsensus;
\r
1059 * Returns the value of field 'showGroupConservation'.
\r
1061 * @return the value of field 'ShowGroupConservation'.
\r
1063 public boolean getShowGroupConservation(
\r
1065 return this._showGroupConservation;
\r
1069 * Returns the value of field 'showNPfeatureTooltip'.
\r
1071 * @return the value of field 'ShowNPfeatureTooltip'.
\r
1073 public boolean getShowNPfeatureTooltip(
\r
1075 return this._showNPfeatureTooltip;
\r
1079 * Returns the value of field 'showSequenceFeatures'.
\r
1081 * @return the value of field 'ShowSequenceFeatures'.
\r
1083 public boolean getShowSequenceFeatures(
\r
1085 return this._showSequenceFeatures;
\r
1089 * Returns the value of field 'showSequenceLogo'.
\r
1091 * @return the value of field 'ShowSequenceLogo'.
\r
1093 public boolean getShowSequenceLogo(
\r
1095 return this._showSequenceLogo;
\r
1099 * Returns the value of field 'showText'.
\r
1101 * @return the value of field 'ShowText'.
\r
1103 public boolean getShowText(
\r
1105 return this._showText;
\r
1109 * Returns the value of field 'showUnconserved'.
\r
1111 * @return the value of field 'ShowUnconserved'.
\r
1113 public boolean getShowUnconserved(
\r
1115 return this._showUnconserved;
\r
1119 * Returns the value of field 'startRes'.
\r
1121 * @return the value of field 'StartRes'.
\r
1123 public int getStartRes(
\r
1125 return this._startRes;
\r
1129 * Returns the value of field 'startSeq'.
\r
1131 * @return the value of field 'StartSeq'.
\r
1133 public int getStartSeq(
\r
1135 return this._startSeq;
\r
1139 * Returns the value of field 'textCol1'.
\r
1141 * @return the value of field 'TextCol1'.
\r
1143 public int getTextCol1(
\r
1145 return this._textCol1;
\r
1149 * Returns the value of field 'textCol2'.
\r
1151 * @return the value of field 'TextCol2'.
\r
1153 public int getTextCol2(
\r
1155 return this._textCol2;
\r
1159 * Returns the value of field 'textColThreshold'.
\r
1161 * @return the value of field 'TextColThreshold'.
\r
1163 public int getTextColThreshold(
\r
1165 return this._textColThreshold;
\r
1169 * Returns the value of field 'title'.
\r
1171 * @return the value of field 'Title'.
\r
1173 public java.lang.String getTitle(
\r
1175 return this._title;
\r
1179 * Returns the value of field 'viewName'.
\r
1181 * @return the value of field 'ViewName'.
\r
1183 public java.lang.String getViewName(
\r
1185 return this._viewName;
\r
1189 * Returns the value of field 'width'.
\r
1191 * @return the value of field 'Width'.
\r
1193 public int getWidth(
\r
1195 return this._width;
\r
1199 * Returns the value of field 'wrapAlignment'.
\r
1201 * @return the value of field 'WrapAlignment'.
\r
1203 public boolean getWrapAlignment(
\r
1205 return this._wrapAlignment;
\r
1209 * Returns the value of field 'xpos'.
\r
1211 * @return the value of field 'Xpos'.
\r
1213 public int getXpos(
\r
1215 return this._xpos;
\r
1219 * Returns the value of field 'ypos'.
\r
1221 * @return the value of field 'Ypos'.
\r
1223 public int getYpos(
\r
1225 return this._ypos;
\r
1229 * Method hasCentreColumnLabels.
\r
1231 * @return true if at least one CentreColumnLabels has been adde
\r
1233 public boolean hasCentreColumnLabels(
\r
1235 return this._has_centreColumnLabels;
\r
1239 * Method hasConsThreshold.
\r
1241 * @return true if at least one ConsThreshold has been added
\r
1243 public boolean hasConsThreshold(
\r
1245 return this._has_consThreshold;
\r
1249 * Method hasConservationSelected.
\r
1251 * @return true if at least one ConservationSelected has been
\r
1254 public boolean hasConservationSelected(
\r
1256 return this._has_conservationSelected;
\r
1260 * Method hasFollowHighlight.
\r
1262 * @return true if at least one FollowHighlight has been added
\r
1264 public boolean hasFollowHighlight(
\r
1266 return this._has_followHighlight;
\r
1270 * Method hasFollowSelection.
\r
1272 * @return true if at least one FollowSelection has been added
\r
1274 public boolean hasFollowSelection(
\r
1276 return this._has_followSelection;
\r
1280 * Method hasFontSize.
\r
1282 * @return true if at least one FontSize has been added
\r
1284 public boolean hasFontSize(
\r
1286 return this._has_fontSize;
\r
1290 * Method hasFontStyle.
\r
1292 * @return true if at least one FontStyle has been added
\r
1294 public boolean hasFontStyle(
\r
1296 return this._has_fontStyle;
\r
1300 * Method hasGatheredViews.
\r
1302 * @return true if at least one GatheredViews has been added
\r
1304 public boolean hasGatheredViews(
\r
1306 return this._has_gatheredViews;
\r
1310 * Method hasHeight.
\r
1312 * @return true if at least one Height has been added
\r
1314 public boolean hasHeight(
\r
1316 return this._has_height;
\r
1320 * Method hasIgnoreGapsinConsensus.
\r
1322 * @return true if at least one IgnoreGapsinConsensus has been
\r
1325 public boolean hasIgnoreGapsinConsensus(
\r
1327 return this._has_ignoreGapsinConsensus;
\r
1331 * Method hasPidSelected.
\r
1333 * @return true if at least one PidSelected has been added
\r
1335 public boolean hasPidSelected(
\r
1337 return this._has_pidSelected;
\r
1341 * Method hasPidThreshold.
\r
1343 * @return true if at least one PidThreshold has been added
\r
1345 public boolean hasPidThreshold(
\r
1347 return this._has_pidThreshold;
\r
1351 * Method hasRenderGaps.
\r
1353 * @return true if at least one RenderGaps has been added
\r
1355 public boolean hasRenderGaps(
\r
1357 return this._has_renderGaps;
\r
1361 * Method hasRightAlignIds.
\r
1363 * @return true if at least one RightAlignIds has been added
\r
1365 public boolean hasRightAlignIds(
\r
1367 return this._has_rightAlignIds;
\r
1371 * Method hasShowAnnotation.
\r
1373 * @return true if at least one ShowAnnotation has been added
\r
1375 public boolean hasShowAnnotation(
\r
1377 return this._has_showAnnotation;
\r
1381 * Method hasShowBoxes.
\r
1383 * @return true if at least one ShowBoxes has been added
\r
1385 public boolean hasShowBoxes(
\r
1387 return this._has_showBoxes;
\r
1391 * Method hasShowColourText.
\r
1393 * @return true if at least one ShowColourText has been added
\r
1395 public boolean hasShowColourText(
\r
1397 return this._has_showColourText;
\r
1401 * Method hasShowConsensusHistogram.
\r
1403 * @return true if at least one ShowConsensusHistogram has been
\r
1406 public boolean hasShowConsensusHistogram(
\r
1408 return this._has_showConsensusHistogram;
\r
1412 * Method hasShowDbRefTooltip.
\r
1414 * @return true if at least one ShowDbRefTooltip has been added
\r
1416 public boolean hasShowDbRefTooltip(
\r
1418 return this._has_showDbRefTooltip;
\r
1422 * Method hasShowFullId.
\r
1424 * @return true if at least one ShowFullId has been added
\r
1426 public boolean hasShowFullId(
\r
1428 return this._has_showFullId;
\r
1432 * Method hasShowGroupConsensus.
\r
1434 * @return true if at least one ShowGroupConsensus has been adde
\r
1436 public boolean hasShowGroupConsensus(
\r
1438 return this._has_showGroupConsensus;
\r
1442 * Method hasShowGroupConservation.
\r
1444 * @return true if at least one ShowGroupConservation has been
\r
1447 public boolean hasShowGroupConservation(
\r
1449 return this._has_showGroupConservation;
\r
1453 * Method hasShowNPfeatureTooltip.
\r
1455 * @return true if at least one ShowNPfeatureTooltip has been
\r
1458 public boolean hasShowNPfeatureTooltip(
\r
1460 return this._has_showNPfeatureTooltip;
\r
1464 * Method hasShowSequenceFeatures.
\r
1466 * @return true if at least one ShowSequenceFeatures has been
\r
1469 public boolean hasShowSequenceFeatures(
\r
1471 return this._has_showSequenceFeatures;
\r
1475 * Method hasShowSequenceLogo.
\r
1477 * @return true if at least one ShowSequenceLogo has been added
\r
1479 public boolean hasShowSequenceLogo(
\r
1481 return this._has_showSequenceLogo;
\r
1485 * Method hasShowText.
\r
1487 * @return true if at least one ShowText has been added
\r
1489 public boolean hasShowText(
\r
1491 return this._has_showText;
\r
1495 * Method hasShowUnconserved.
\r
1497 * @return true if at least one ShowUnconserved has been added
\r
1499 public boolean hasShowUnconserved(
\r
1501 return this._has_showUnconserved;
\r
1505 * Method hasStartRes.
\r
1507 * @return true if at least one StartRes has been added
\r
1509 public boolean hasStartRes(
\r
1511 return this._has_startRes;
\r
1515 * Method hasStartSeq.
\r
1517 * @return true if at least one StartSeq has been added
\r
1519 public boolean hasStartSeq(
\r
1521 return this._has_startSeq;
\r
1525 * Method hasTextCol1.
\r
1527 * @return true if at least one TextCol1 has been added
\r
1529 public boolean hasTextCol1(
\r
1531 return this._has_textCol1;
\r
1535 * Method hasTextCol2.
\r
1537 * @return true if at least one TextCol2 has been added
\r
1539 public boolean hasTextCol2(
\r
1541 return this._has_textCol2;
\r
1545 * Method hasTextColThreshold.
\r
1547 * @return true if at least one TextColThreshold has been added
\r
1549 public boolean hasTextColThreshold(
\r
1551 return this._has_textColThreshold;
\r
1555 * Method hasWidth.
\r
1557 * @return true if at least one Width has been added
\r
1559 public boolean hasWidth(
\r
1561 return this._has_width;
\r
1565 * Method hasWrapAlignment.
\r
1567 * @return true if at least one WrapAlignment has been added
\r
1569 public boolean hasWrapAlignment(
\r
1571 return this._has_wrapAlignment;
\r
1577 * @return true if at least one Xpos has been added
\r
1579 public boolean hasXpos(
\r
1581 return this._has_xpos;
\r
1587 * @return true if at least one Ypos has been added
\r
1589 public boolean hasYpos(
\r
1591 return this._has_ypos;
\r
1595 * Returns the value of field 'centreColumnLabels'.
\r
1597 * @return the value of field 'CentreColumnLabels'.
\r
1599 public boolean isCentreColumnLabels(
\r
1601 return this._centreColumnLabels;
\r
1605 * Returns the value of field 'conservationSelected'.
\r
1607 * @return the value of field 'ConservationSelected'.
\r
1609 public boolean isConservationSelected(
\r
1611 return this._conservationSelected;
\r
1615 * Returns the value of field 'followHighlight'.
\r
1617 * @return the value of field 'FollowHighlight'.
\r
1619 public boolean isFollowHighlight(
\r
1621 return this._followHighlight;
\r
1625 * Returns the value of field 'followSelection'.
\r
1627 * @return the value of field 'FollowSelection'.
\r
1629 public boolean isFollowSelection(
\r
1631 return this._followSelection;
\r
1635 * Returns the value of field 'gatheredViews'.
\r
1637 * @return the value of field 'GatheredViews'.
\r
1639 public boolean isGatheredViews(
\r
1641 return this._gatheredViews;
\r
1645 * Returns the value of field 'ignoreGapsinConsensus'.
\r
1647 * @return the value of field 'IgnoreGapsinConsensus'.
\r
1649 public boolean isIgnoreGapsinConsensus(
\r
1651 return this._ignoreGapsinConsensus;
\r
1655 * Returns the value of field 'pidSelected'.
\r
1657 * @return the value of field 'PidSelected'.
\r
1659 public boolean isPidSelected(
\r
1661 return this._pidSelected;
\r
1665 * Returns the value of field 'renderGaps'.
\r
1667 * @return the value of field 'RenderGaps'.
\r
1669 public boolean isRenderGaps(
\r
1671 return this._renderGaps;
\r
1675 * Returns the value of field 'rightAlignIds'.
\r
1677 * @return the value of field 'RightAlignIds'.
\r
1679 public boolean isRightAlignIds(
\r
1681 return this._rightAlignIds;
\r
1685 * Returns the value of field 'showAnnotation'.
\r
1687 * @return the value of field 'ShowAnnotation'.
\r
1689 public boolean isShowAnnotation(
\r
1691 return this._showAnnotation;
\r
1695 * Returns the value of field 'showBoxes'.
\r
1697 * @return the value of field 'ShowBoxes'.
\r
1699 public boolean isShowBoxes(
\r
1701 return this._showBoxes;
\r
1705 * Returns the value of field 'showColourText'.
\r
1707 * @return the value of field 'ShowColourText'.
\r
1709 public boolean isShowColourText(
\r
1711 return this._showColourText;
\r
1715 * Returns the value of field 'showConsensusHistogram'.
\r
1717 * @return the value of field 'ShowConsensusHistogram'.
\r
1719 public boolean isShowConsensusHistogram(
\r
1721 return this._showConsensusHistogram;
\r
1725 * Returns the value of field 'showDbRefTooltip'.
\r
1727 * @return the value of field 'ShowDbRefTooltip'.
\r
1729 public boolean isShowDbRefTooltip(
\r
1731 return this._showDbRefTooltip;
\r
1735 * Returns the value of field 'showFullId'.
\r
1737 * @return the value of field 'ShowFullId'.
\r
1739 public boolean isShowFullId(
\r
1741 return this._showFullId;
\r
1745 * Returns the value of field 'showGroupConsensus'.
\r
1747 * @return the value of field 'ShowGroupConsensus'.
\r
1749 public boolean isShowGroupConsensus(
\r
1751 return this._showGroupConsensus;
\r
1755 * Returns the value of field 'showGroupConservation'.
\r
1757 * @return the value of field 'ShowGroupConservation'.
\r
1759 public boolean isShowGroupConservation(
\r
1761 return this._showGroupConservation;
\r
1765 * Returns the value of field 'showNPfeatureTooltip'.
\r
1767 * @return the value of field 'ShowNPfeatureTooltip'.
\r
1769 public boolean isShowNPfeatureTooltip(
\r
1771 return this._showNPfeatureTooltip;
\r
1775 * Returns the value of field 'showSequenceFeatures'.
\r
1777 * @return the value of field 'ShowSequenceFeatures'.
\r
1779 public boolean isShowSequenceFeatures(
\r
1781 return this._showSequenceFeatures;
\r
1785 * Returns the value of field 'showSequenceLogo'.
\r
1787 * @return the value of field 'ShowSequenceLogo'.
\r
1789 public boolean isShowSequenceLogo(
\r
1791 return this._showSequenceLogo;
\r
1795 * Returns the value of field 'showText'.
\r
1797 * @return the value of field 'ShowText'.
\r
1799 public boolean isShowText(
\r
1801 return this._showText;
\r
1805 * Returns the value of field 'showUnconserved'.
\r
1807 * @return the value of field 'ShowUnconserved'.
\r
1809 public boolean isShowUnconserved(
\r
1811 return this._showUnconserved;
\r
1817 * @return true if this object is valid according to the schema
\r
1819 public boolean isValid(
\r
1823 } catch (org.exolab.castor.xml.ValidationException vex) {
\r
1830 * Returns the value of field 'wrapAlignment'.
\r
1832 * @return the value of field 'WrapAlignment'.
\r
1834 public boolean isWrapAlignment(
\r
1836 return this._wrapAlignment;
\r
1843 * @throws org.exolab.castor.xml.MarshalException if object is
\r
1844 * null or if any SAXException is thrown during marshaling
\r
1845 * @throws org.exolab.castor.xml.ValidationException if this
\r
1846 * object is an invalid instance according to the schema
\r
1848 public void marshal(
\r
1849 final java.io.Writer out)
\r
1850 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
\r
1851 Marshaller.marshal(this, out);
\r
1858 * @throws java.io.IOException if an IOException occurs during
\r
1860 * @throws org.exolab.castor.xml.ValidationException if this
\r
1861 * object is an invalid instance according to the schema
\r
1862 * @throws org.exolab.castor.xml.MarshalException if object is
\r
1863 * null or if any SAXException is thrown during marshaling
\r
1865 public void marshal(
\r
1866 final org.xml.sax.ContentHandler handler)
\r
1867 throws java.io.IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
\r
1868 Marshaller.marshal(this, handler);
\r
1873 public void removeAllHiddenColumns(
\r
1875 this._hiddenColumnsList.clear();
\r
1879 * Method removeHiddenColumns.
\r
1881 * @param vHiddenColumns
\r
1882 * @return true if the object was removed from the collection.
\r
1884 public boolean removeHiddenColumns(
\r
1885 final jalview.schemabinding.version2.HiddenColumns vHiddenColumns) {
\r
1886 boolean removed = _hiddenColumnsList.remove(vHiddenColumns);
\r
1891 * Method removeHiddenColumnsAt.
\r
1894 * @return the element removed from the collection
\r
1896 public jalview.schemabinding.version2.HiddenColumns removeHiddenColumnsAt(
\r
1897 final int index) {
\r
1898 java.lang.Object obj = this._hiddenColumnsList.remove(index);
\r
1899 return (jalview.schemabinding.version2.HiddenColumns) obj;
\r
1903 * Sets the value of field 'annotationColours'.
\r
1905 * @param annotationColours the value of field
\r
1906 * 'annotationColours'.
\r
1908 public void setAnnotationColours(
\r
1909 final jalview.schemabinding.version2.AnnotationColours annotationColours) {
\r
1910 this._annotationColours = annotationColours;
\r
1914 * Sets the value of field 'bgColour'.
\r
1916 * @param bgColour the value of field 'bgColour'.
\r
1918 public void setBgColour(
\r
1919 final java.lang.String bgColour) {
\r
1920 this._bgColour = bgColour;
\r
1924 * Sets the value of field 'centreColumnLabels'.
\r
1926 * @param centreColumnLabels the value of field
\r
1927 * 'centreColumnLabels'.
\r
1929 public void setCentreColumnLabels(
\r
1930 final boolean centreColumnLabels) {
\r
1931 this._centreColumnLabels = centreColumnLabels;
\r
1932 this._has_centreColumnLabels = true;
\r
1936 * Sets the value of field 'consThreshold'.
\r
1938 * @param consThreshold the value of field 'consThreshold'.
\r
1940 public void setConsThreshold(
\r
1941 final int consThreshold) {
\r
1942 this._consThreshold = consThreshold;
\r
1943 this._has_consThreshold = true;
\r
1947 * Sets the value of field 'conservationSelected'.
\r
1949 * @param conservationSelected the value of field
\r
1950 * 'conservationSelected'.
\r
1952 public void setConservationSelected(
\r
1953 final boolean conservationSelected) {
\r
1954 this._conservationSelected = conservationSelected;
\r
1955 this._has_conservationSelected = true;
\r
1959 * Sets the value of field 'followHighlight'.
\r
1961 * @param followHighlight the value of field 'followHighlight'.
\r
1963 public void setFollowHighlight(
\r
1964 final boolean followHighlight) {
\r
1965 this._followHighlight = followHighlight;
\r
1966 this._has_followHighlight = true;
\r
1970 * Sets the value of field 'followSelection'.
\r
1972 * @param followSelection the value of field 'followSelection'.
\r
1974 public void setFollowSelection(
\r
1975 final boolean followSelection) {
\r
1976 this._followSelection = followSelection;
\r
1977 this._has_followSelection = true;
\r
1981 * Sets the value of field 'fontName'.
\r
1983 * @param fontName the value of field 'fontName'.
\r
1985 public void setFontName(
\r
1986 final java.lang.String fontName) {
\r
1987 this._fontName = fontName;
\r
1991 * Sets the value of field 'fontSize'.
\r
1993 * @param fontSize the value of field 'fontSize'.
\r
1995 public void setFontSize(
\r
1996 final int fontSize) {
\r
1997 this._fontSize = fontSize;
\r
1998 this._has_fontSize = true;
\r
2002 * Sets the value of field 'fontStyle'.
\r
2004 * @param fontStyle the value of field 'fontStyle'.
\r
2006 public void setFontStyle(
\r
2007 final int fontStyle) {
\r
2008 this._fontStyle = fontStyle;
\r
2009 this._has_fontStyle = true;
\r
2013 * Sets the value of field 'gatheredViews'.
\r
2015 * @param gatheredViews the value of field 'gatheredViews'.
\r
2017 public void setGatheredViews(
\r
2018 final boolean gatheredViews) {
\r
2019 this._gatheredViews = gatheredViews;
\r
2020 this._has_gatheredViews = true;
\r
2024 * Sets the value of field 'height'.
\r
2026 * @param height the value of field 'height'.
\r
2028 public void setHeight(
\r
2029 final int height) {
\r
2030 this._height = height;
\r
2031 this._has_height = true;
\r
2038 * @param vHiddenColumns
\r
2039 * @throws java.lang.IndexOutOfBoundsException if the index
\r
2040 * given is outside the bounds of the collection
\r
2042 public void setHiddenColumns(
\r
2044 final jalview.schemabinding.version2.HiddenColumns vHiddenColumns)
\r
2045 throws java.lang.IndexOutOfBoundsException {
\r
2046 // check bounds for index
\r
2047 if (index < 0 || index >= this._hiddenColumnsList.size()) {
\r
2048 throw new IndexOutOfBoundsException("setHiddenColumns: Index value '" + index + "' not in range [0.." + (this._hiddenColumnsList.size() - 1) + "]");
\r
2051 this._hiddenColumnsList.set(index, vHiddenColumns);
\r
2057 * @param vHiddenColumnsArray
\r
2059 public void setHiddenColumns(
\r
2060 final jalview.schemabinding.version2.HiddenColumns[] vHiddenColumnsArray) {
\r
2062 _hiddenColumnsList.clear();
\r
2064 for (int i = 0; i < vHiddenColumnsArray.length; i++) {
\r
2065 this._hiddenColumnsList.add(vHiddenColumnsArray[i]);
\r
2070 * Sets the value of field 'id'. The field 'id' has the
\r
2071 * following description: unique id used by jalview to
\r
2072 * synchronize between stored and instantiated views
\r
2075 * @param id the value of field 'id'.
\r
2077 public void setId(
\r
2078 final java.lang.String id) {
\r
2083 * Sets the value of field 'ignoreGapsinConsensus'.
\r
2085 * @param ignoreGapsinConsensus the value of field
\r
2086 * 'ignoreGapsinConsensus'.
\r
2088 public void setIgnoreGapsinConsensus(
\r
2089 final boolean ignoreGapsinConsensus) {
\r
2090 this._ignoreGapsinConsensus = ignoreGapsinConsensus;
\r
2091 this._has_ignoreGapsinConsensus = true;
\r
2095 * Sets the value of field 'pidSelected'.
\r
2097 * @param pidSelected the value of field 'pidSelected'.
\r
2099 public void setPidSelected(
\r
2100 final boolean pidSelected) {
\r
2101 this._pidSelected = pidSelected;
\r
2102 this._has_pidSelected = true;
\r
2106 * Sets the value of field 'pidThreshold'.
\r
2108 * @param pidThreshold the value of field 'pidThreshold'.
\r
2110 public void setPidThreshold(
\r
2111 final int pidThreshold) {
\r
2112 this._pidThreshold = pidThreshold;
\r
2113 this._has_pidThreshold = true;
\r
2117 * Sets the value of field 'renderGaps'.
\r
2119 * @param renderGaps the value of field 'renderGaps'.
\r
2121 public void setRenderGaps(
\r
2122 final boolean renderGaps) {
\r
2123 this._renderGaps = renderGaps;
\r
2124 this._has_renderGaps = true;
\r
2128 * Sets the value of field 'rightAlignIds'.
\r
2130 * @param rightAlignIds the value of field 'rightAlignIds'.
\r
2132 public void setRightAlignIds(
\r
2133 final boolean rightAlignIds) {
\r
2134 this._rightAlignIds = rightAlignIds;
\r
2135 this._has_rightAlignIds = true;
\r
2139 * Sets the value of field 'sequenceSetId'.
\r
2141 * @param sequenceSetId the value of field 'sequenceSetId'.
\r
2143 public void setSequenceSetId(
\r
2144 final java.lang.String sequenceSetId) {
\r
2145 this._sequenceSetId = sequenceSetId;
\r
2149 * Sets the value of field 'showAnnotation'.
\r
2151 * @param showAnnotation the value of field 'showAnnotation'.
\r
2153 public void setShowAnnotation(
\r
2154 final boolean showAnnotation) {
\r
2155 this._showAnnotation = showAnnotation;
\r
2156 this._has_showAnnotation = true;
\r
2160 * Sets the value of field 'showBoxes'.
\r
2162 * @param showBoxes the value of field 'showBoxes'.
\r
2164 public void setShowBoxes(
\r
2165 final boolean showBoxes) {
\r
2166 this._showBoxes = showBoxes;
\r
2167 this._has_showBoxes = true;
\r
2171 * Sets the value of field 'showColourText'.
\r
2173 * @param showColourText the value of field 'showColourText'.
\r
2175 public void setShowColourText(
\r
2176 final boolean showColourText) {
\r
2177 this._showColourText = showColourText;
\r
2178 this._has_showColourText = true;
\r
2182 * Sets the value of field 'showConsensusHistogram'.
\r
2184 * @param showConsensusHistogram the value of field
\r
2185 * 'showConsensusHistogram'.
\r
2187 public void setShowConsensusHistogram(
\r
2188 final boolean showConsensusHistogram) {
\r
2189 this._showConsensusHistogram = showConsensusHistogram;
\r
2190 this._has_showConsensusHistogram = true;
\r
2194 * Sets the value of field 'showDbRefTooltip'.
\r
2196 * @param showDbRefTooltip the value of field 'showDbRefTooltip'
\r
2198 public void setShowDbRefTooltip(
\r
2199 final boolean showDbRefTooltip) {
\r
2200 this._showDbRefTooltip = showDbRefTooltip;
\r
2201 this._has_showDbRefTooltip = true;
\r
2205 * Sets the value of field 'showFullId'.
\r
2207 * @param showFullId the value of field 'showFullId'.
\r
2209 public void setShowFullId(
\r
2210 final boolean showFullId) {
\r
2211 this._showFullId = showFullId;
\r
2212 this._has_showFullId = true;
\r
2216 * Sets the value of field 'showGroupConsensus'.
\r
2218 * @param showGroupConsensus the value of field
\r
2219 * 'showGroupConsensus'.
\r
2221 public void setShowGroupConsensus(
\r
2222 final boolean showGroupConsensus) {
\r
2223 this._showGroupConsensus = showGroupConsensus;
\r
2224 this._has_showGroupConsensus = true;
\r
2228 * Sets the value of field 'showGroupConservation'.
\r
2230 * @param showGroupConservation the value of field
\r
2231 * 'showGroupConservation'.
\r
2233 public void setShowGroupConservation(
\r
2234 final boolean showGroupConservation) {
\r
2235 this._showGroupConservation = showGroupConservation;
\r
2236 this._has_showGroupConservation = true;
\r
2240 * Sets the value of field 'showNPfeatureTooltip'.
\r
2242 * @param showNPfeatureTooltip the value of field
\r
2243 * 'showNPfeatureTooltip'.
\r
2245 public void setShowNPfeatureTooltip(
\r
2246 final boolean showNPfeatureTooltip) {
\r
2247 this._showNPfeatureTooltip = showNPfeatureTooltip;
\r
2248 this._has_showNPfeatureTooltip = true;
\r
2252 * Sets the value of field 'showSequenceFeatures'.
\r
2254 * @param showSequenceFeatures the value of field
\r
2255 * 'showSequenceFeatures'.
\r
2257 public void setShowSequenceFeatures(
\r
2258 final boolean showSequenceFeatures) {
\r
2259 this._showSequenceFeatures = showSequenceFeatures;
\r
2260 this._has_showSequenceFeatures = true;
\r
2264 * Sets the value of field 'showSequenceLogo'.
\r
2266 * @param showSequenceLogo the value of field 'showSequenceLogo'
\r
2268 public void setShowSequenceLogo(
\r
2269 final boolean showSequenceLogo) {
\r
2270 this._showSequenceLogo = showSequenceLogo;
\r
2271 this._has_showSequenceLogo = true;
\r
2275 * Sets the value of field 'showText'.
\r
2277 * @param showText the value of field 'showText'.
\r
2279 public void setShowText(
\r
2280 final boolean showText) {
\r
2281 this._showText = showText;
\r
2282 this._has_showText = true;
\r
2286 * Sets the value of field 'showUnconserved'.
\r
2288 * @param showUnconserved the value of field 'showUnconserved'.
\r
2290 public void setShowUnconserved(
\r
2291 final boolean showUnconserved) {
\r
2292 this._showUnconserved = showUnconserved;
\r
2293 this._has_showUnconserved = true;
\r
2297 * Sets the value of field 'startRes'.
\r
2299 * @param startRes the value of field 'startRes'.
\r
2301 public void setStartRes(
\r
2302 final int startRes) {
\r
2303 this._startRes = startRes;
\r
2304 this._has_startRes = true;
\r
2308 * Sets the value of field 'startSeq'.
\r
2310 * @param startSeq the value of field 'startSeq'.
\r
2312 public void setStartSeq(
\r
2313 final int startSeq) {
\r
2314 this._startSeq = startSeq;
\r
2315 this._has_startSeq = true;
\r
2319 * Sets the value of field 'textCol1'.
\r
2321 * @param textCol1 the value of field 'textCol1'.
\r
2323 public void setTextCol1(
\r
2324 final int textCol1) {
\r
2325 this._textCol1 = textCol1;
\r
2326 this._has_textCol1 = true;
\r
2330 * Sets the value of field 'textCol2'.
\r
2332 * @param textCol2 the value of field 'textCol2'.
\r
2334 public void setTextCol2(
\r
2335 final int textCol2) {
\r
2336 this._textCol2 = textCol2;
\r
2337 this._has_textCol2 = true;
\r
2341 * Sets the value of field 'textColThreshold'.
\r
2343 * @param textColThreshold the value of field 'textColThreshold'
\r
2345 public void setTextColThreshold(
\r
2346 final int textColThreshold) {
\r
2347 this._textColThreshold = textColThreshold;
\r
2348 this._has_textColThreshold = true;
\r
2352 * Sets the value of field 'title'.
\r
2354 * @param title the value of field 'title'.
\r
2356 public void setTitle(
\r
2357 final java.lang.String title) {
\r
2358 this._title = title;
\r
2362 * Sets the value of field 'viewName'.
\r
2364 * @param viewName the value of field 'viewName'.
\r
2366 public void setViewName(
\r
2367 final java.lang.String viewName) {
\r
2368 this._viewName = viewName;
\r
2372 * Sets the value of field 'width'.
\r
2374 * @param width the value of field 'width'.
\r
2376 public void setWidth(
\r
2377 final int width) {
\r
2378 this._width = width;
\r
2379 this._has_width = true;
\r
2383 * Sets the value of field 'wrapAlignment'.
\r
2385 * @param wrapAlignment the value of field 'wrapAlignment'.
\r
2387 public void setWrapAlignment(
\r
2388 final boolean wrapAlignment) {
\r
2389 this._wrapAlignment = wrapAlignment;
\r
2390 this._has_wrapAlignment = true;
\r
2394 * Sets the value of field 'xpos'.
\r
2396 * @param xpos the value of field 'xpos'.
\r
2398 public void setXpos(
\r
2400 this._xpos = xpos;
\r
2401 this._has_xpos = true;
\r
2405 * Sets the value of field 'ypos'.
\r
2407 * @param ypos the value of field 'ypos'.
\r
2409 public void setYpos(
\r
2411 this._ypos = ypos;
\r
2412 this._has_ypos = true;
\r
2416 * Method unmarshal.
\r
2419 * @throws org.exolab.castor.xml.MarshalException if object is
\r
2420 * null or if any SAXException is thrown during marshaling
\r
2421 * @throws org.exolab.castor.xml.ValidationException if this
\r
2422 * object is an invalid instance according to the schema
\r
2423 * @return the unmarshaled
\r
2424 * jalview.schemabinding.version2.Viewport
\r
2426 public static jalview.schemabinding.version2.Viewport unmarshal(
\r
2427 final java.io.Reader reader)
\r
2428 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
\r
2429 return (jalview.schemabinding.version2.Viewport) Unmarshaller.unmarshal(jalview.schemabinding.version2.Viewport.class, reader);
\r
2435 * @throws org.exolab.castor.xml.ValidationException if this
\r
2436 * object is an invalid instance according to the schema
\r
2438 public void validate(
\r
2440 throws org.exolab.castor.xml.ValidationException {
\r
2441 org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
\r
2442 validator.validate(this);
\r