2 * This class was automatically generated with
\r
3 * <a href="http://www.castor.org">Castor 0.9.6</a>, using an XML
\r
8 package jalview.schemabinding.version2;
\r
10 //---------------------------------/
\r
11 //- Imported classes and packages -/
\r
12 //---------------------------------/
\r
14 import java.io.IOException;
\r
15 import java.io.Reader;
\r
16 import java.io.Serializable;
\r
17 import java.io.Writer;
\r
18 import java.util.Enumeration;
\r
19 import java.util.Vector;
\r
20 import org.exolab.castor.xml.MarshalException;
\r
21 import org.exolab.castor.xml.Marshaller;
\r
22 import org.exolab.castor.xml.Unmarshaller;
\r
23 import org.exolab.castor.xml.ValidationException;
\r
24 import org.xml.sax.ContentHandler;
\r
29 * @version $Revision$ $Date$
\r
31 public class Viewport implements java.io.Serializable {
\r
34 //--------------------------/
\r
35 //- Class/Member Variables -/
\r
36 //--------------------------/
\r
39 * Field _conservationSelected
\r
41 private boolean _conservationSelected;
\r
44 * keeps track of state for field: _conservationSelected
\r
46 private boolean _has_conservationSelected;
\r
49 * Field _pidSelected
\r
51 private boolean _pidSelected;
\r
54 * keeps track of state for field: _pidSelected
\r
56 private boolean _has_pidSelected;
\r
61 private java.lang.String _bgColour;
\r
64 * Field _consThreshold
\r
66 private int _consThreshold;
\r
69 * keeps track of state for field: _consThreshold
\r
71 private boolean _has_consThreshold;
\r
74 * Field _pidThreshold
\r
76 private int _pidThreshold;
\r
79 * keeps track of state for field: _pidThreshold
\r
81 private boolean _has_pidThreshold;
\r
86 private java.lang.String _title;
\r
91 private boolean _showFullId;
\r
94 * keeps track of state for field: _showFullId
\r
96 private boolean _has_showFullId;
\r
101 private boolean _showText;
\r
104 * keeps track of state for field: _showText
\r
106 private boolean _has_showText;
\r
109 * Field _showColourText
\r
111 private boolean _showColourText;
\r
114 * keeps track of state for field: _showColourText
\r
116 private boolean _has_showColourText;
\r
121 private boolean _showBoxes;
\r
124 * keeps track of state for field: _showBoxes
\r
126 private boolean _has_showBoxes;
\r
129 * Field _wrapAlignment
\r
131 private boolean _wrapAlignment;
\r
134 * keeps track of state for field: _wrapAlignment
\r
136 private boolean _has_wrapAlignment;
\r
139 * Field _renderGaps
\r
141 private boolean _renderGaps;
\r
144 * keeps track of state for field: _renderGaps
\r
146 private boolean _has_renderGaps;
\r
149 * Field _showSequenceFeatures
\r
151 private boolean _showSequenceFeatures;
\r
154 * keeps track of state for field: _showSequenceFeatures
\r
156 private boolean _has_showSequenceFeatures;
\r
159 * Field _showAnnotation
\r
161 private boolean _showAnnotation;
\r
164 * keeps track of state for field: _showAnnotation
\r
166 private boolean _has_showAnnotation;
\r
174 * keeps track of state for field: _xpos
\r
176 private boolean _has_xpos;
\r
184 * keeps track of state for field: _ypos
\r
186 private boolean _has_ypos;
\r
191 private int _width;
\r
194 * keeps track of state for field: _width
\r
196 private boolean _has_width;
\r
201 private int _height;
\r
204 * keeps track of state for field: _height
\r
206 private boolean _has_height;
\r
211 private int _startRes;
\r
214 * keeps track of state for field: _startRes
\r
216 private boolean _has_startRes;
\r
221 private int _startSeq;
\r
224 * keeps track of state for field: _startSeq
\r
226 private boolean _has_startSeq;
\r
231 private java.lang.String _fontName;
\r
236 private int _fontSize;
\r
239 * keeps track of state for field: _fontSize
\r
241 private boolean _has_fontSize;
\r
246 private int _fontStyle;
\r
249 * keeps track of state for field: _fontStyle
\r
251 private boolean _has_fontStyle;
\r
256 private java.lang.String _viewName;
\r
259 * Field _sequenceSetId
\r
261 private java.lang.String _sequenceSetId;
\r
264 * Field _gatheredViews
\r
266 private boolean _gatheredViews;
\r
269 * keeps track of state for field: _gatheredViews
\r
271 private boolean _has_gatheredViews;
\r
274 * Field _annotationColours
\r
276 private jalview.schemabinding.version2.AnnotationColours _annotationColours;
\r
279 * Field _hiddenColumnsList
\r
281 private java.util.Vector _hiddenColumnsList;
\r
284 //----------------/
\r
285 //- Constructors -/
\r
286 //----------------/
\r
288 public Viewport() {
\r
290 _hiddenColumnsList = new Vector();
\r
291 } //-- jalview.schemabinding.version2.Viewport()
\r
299 * Method addHiddenColumns
\r
303 * @param vHiddenColumns
\r
305 public void addHiddenColumns(jalview.schemabinding.version2.HiddenColumns vHiddenColumns)
\r
306 throws java.lang.IndexOutOfBoundsException
\r
308 _hiddenColumnsList.addElement(vHiddenColumns);
\r
309 } //-- void addHiddenColumns(jalview.schemabinding.version2.HiddenColumns)
\r
312 * Method addHiddenColumns
\r
317 * @param vHiddenColumns
\r
319 public void addHiddenColumns(int index, jalview.schemabinding.version2.HiddenColumns vHiddenColumns)
\r
320 throws java.lang.IndexOutOfBoundsException
\r
322 _hiddenColumnsList.insertElementAt(vHiddenColumns, index);
\r
323 } //-- void addHiddenColumns(int, jalview.schemabinding.version2.HiddenColumns)
\r
326 * Method deleteConsThreshold
\r
329 public void deleteConsThreshold()
\r
331 this._has_consThreshold= false;
\r
332 } //-- void deleteConsThreshold()
\r
335 * Method deleteConservationSelected
\r
338 public void deleteConservationSelected()
\r
340 this._has_conservationSelected= false;
\r
341 } //-- void deleteConservationSelected()
\r
344 * Method deleteFontSize
\r
347 public void deleteFontSize()
\r
349 this._has_fontSize= false;
\r
350 } //-- void deleteFontSize()
\r
353 * Method deleteFontStyle
\r
356 public void deleteFontStyle()
\r
358 this._has_fontStyle= false;
\r
359 } //-- void deleteFontStyle()
\r
362 * Method deleteGatheredViews
\r
365 public void deleteGatheredViews()
\r
367 this._has_gatheredViews= false;
\r
368 } //-- void deleteGatheredViews()
\r
371 * Method deleteHeight
\r
374 public void deleteHeight()
\r
376 this._has_height= false;
\r
377 } //-- void deleteHeight()
\r
380 * Method deletePidSelected
\r
383 public void deletePidSelected()
\r
385 this._has_pidSelected= false;
\r
386 } //-- void deletePidSelected()
\r
389 * Method deletePidThreshold
\r
392 public void deletePidThreshold()
\r
394 this._has_pidThreshold= false;
\r
395 } //-- void deletePidThreshold()
\r
398 * Method deleteRenderGaps
\r
401 public void deleteRenderGaps()
\r
403 this._has_renderGaps= false;
\r
404 } //-- void deleteRenderGaps()
\r
407 * Method deleteShowAnnotation
\r
410 public void deleteShowAnnotation()
\r
412 this._has_showAnnotation= false;
\r
413 } //-- void deleteShowAnnotation()
\r
416 * Method deleteShowBoxes
\r
419 public void deleteShowBoxes()
\r
421 this._has_showBoxes= false;
\r
422 } //-- void deleteShowBoxes()
\r
425 * Method deleteShowColourText
\r
428 public void deleteShowColourText()
\r
430 this._has_showColourText= false;
\r
431 } //-- void deleteShowColourText()
\r
434 * Method deleteShowFullId
\r
437 public void deleteShowFullId()
\r
439 this._has_showFullId= false;
\r
440 } //-- void deleteShowFullId()
\r
443 * Method deleteShowSequenceFeatures
\r
446 public void deleteShowSequenceFeatures()
\r
448 this._has_showSequenceFeatures= false;
\r
449 } //-- void deleteShowSequenceFeatures()
\r
452 * Method deleteShowText
\r
455 public void deleteShowText()
\r
457 this._has_showText= false;
\r
458 } //-- void deleteShowText()
\r
461 * Method deleteStartRes
\r
464 public void deleteStartRes()
\r
466 this._has_startRes= false;
\r
467 } //-- void deleteStartRes()
\r
470 * Method deleteStartSeq
\r
473 public void deleteStartSeq()
\r
475 this._has_startSeq= false;
\r
476 } //-- void deleteStartSeq()
\r
479 * Method deleteWidth
\r
482 public void deleteWidth()
\r
484 this._has_width= false;
\r
485 } //-- void deleteWidth()
\r
488 * Method deleteWrapAlignment
\r
491 public void deleteWrapAlignment()
\r
493 this._has_wrapAlignment= false;
\r
494 } //-- void deleteWrapAlignment()
\r
497 * Method deleteXpos
\r
500 public void deleteXpos()
\r
502 this._has_xpos= false;
\r
503 } //-- void deleteXpos()
\r
506 * Method deleteYpos
\r
509 public void deleteYpos()
\r
511 this._has_ypos= false;
\r
512 } //-- void deleteYpos()
\r
515 * Method enumerateHiddenColumns
\r
519 * @return Enumeration
\r
521 public java.util.Enumeration enumerateHiddenColumns()
\r
523 return _hiddenColumnsList.elements();
\r
524 } //-- java.util.Enumeration enumerateHiddenColumns()
\r
527 * Returns the value of field 'annotationColours'.
\r
529 * @return AnnotationColours
\r
530 * @return the value of field 'annotationColours'.
\r
532 public jalview.schemabinding.version2.AnnotationColours getAnnotationColours()
\r
534 return this._annotationColours;
\r
535 } //-- jalview.schemabinding.version2.AnnotationColours getAnnotationColours()
\r
538 * Returns the value of field 'bgColour'.
\r
541 * @return the value of field 'bgColour'.
\r
543 public java.lang.String getBgColour()
\r
545 return this._bgColour;
\r
546 } //-- java.lang.String getBgColour()
\r
549 * Returns the value of field 'consThreshold'.
\r
552 * @return the value of field 'consThreshold'.
\r
554 public int getConsThreshold()
\r
556 return this._consThreshold;
\r
557 } //-- int getConsThreshold()
\r
560 * Returns the value of field 'conservationSelected'.
\r
563 * @return the value of field 'conservationSelected'.
\r
565 public boolean getConservationSelected()
\r
567 return this._conservationSelected;
\r
568 } //-- boolean getConservationSelected()
\r
571 * Returns the value of field 'fontName'.
\r
574 * @return the value of field 'fontName'.
\r
576 public java.lang.String getFontName()
\r
578 return this._fontName;
\r
579 } //-- java.lang.String getFontName()
\r
582 * Returns the value of field 'fontSize'.
\r
585 * @return the value of field 'fontSize'.
\r
587 public int getFontSize()
\r
589 return this._fontSize;
\r
590 } //-- int getFontSize()
\r
593 * Returns the value of field 'fontStyle'.
\r
596 * @return the value of field 'fontStyle'.
\r
598 public int getFontStyle()
\r
600 return this._fontStyle;
\r
601 } //-- int getFontStyle()
\r
604 * Returns the value of field 'gatheredViews'.
\r
607 * @return the value of field 'gatheredViews'.
\r
609 public boolean getGatheredViews()
\r
611 return this._gatheredViews;
\r
612 } //-- boolean getGatheredViews()
\r
615 * Returns the value of field 'height'.
\r
618 * @return the value of field 'height'.
\r
620 public int getHeight()
\r
622 return this._height;
\r
623 } //-- int getHeight()
\r
626 * Method getHiddenColumns
\r
631 * @return HiddenColumns
\r
633 public jalview.schemabinding.version2.HiddenColumns getHiddenColumns(int index)
\r
634 throws java.lang.IndexOutOfBoundsException
\r
636 //-- check bounds for index
\r
637 if ((index < 0) || (index > _hiddenColumnsList.size())) {
\r
638 throw new IndexOutOfBoundsException();
\r
641 return (jalview.schemabinding.version2.HiddenColumns) _hiddenColumnsList.elementAt(index);
\r
642 } //-- jalview.schemabinding.version2.HiddenColumns getHiddenColumns(int)
\r
645 * Method getHiddenColumns
\r
649 * @return HiddenColumns
\r
651 public jalview.schemabinding.version2.HiddenColumns[] getHiddenColumns()
\r
653 int size = _hiddenColumnsList.size();
\r
654 jalview.schemabinding.version2.HiddenColumns[] mArray = new jalview.schemabinding.version2.HiddenColumns[size];
\r
655 for (int index = 0; index < size; index++) {
\r
656 mArray[index] = (jalview.schemabinding.version2.HiddenColumns) _hiddenColumnsList.elementAt(index);
\r
659 } //-- jalview.schemabinding.version2.HiddenColumns[] getHiddenColumns()
\r
662 * Method getHiddenColumnsCount
\r
668 public int getHiddenColumnsCount()
\r
670 return _hiddenColumnsList.size();
\r
671 } //-- int getHiddenColumnsCount()
\r
674 * Returns the value of field 'pidSelected'.
\r
677 * @return the value of field 'pidSelected'.
\r
679 public boolean getPidSelected()
\r
681 return this._pidSelected;
\r
682 } //-- boolean getPidSelected()
\r
685 * Returns the value of field 'pidThreshold'.
\r
688 * @return the value of field 'pidThreshold'.
\r
690 public int getPidThreshold()
\r
692 return this._pidThreshold;
\r
693 } //-- int getPidThreshold()
\r
696 * Returns the value of field 'renderGaps'.
\r
699 * @return the value of field 'renderGaps'.
\r
701 public boolean getRenderGaps()
\r
703 return this._renderGaps;
\r
704 } //-- boolean getRenderGaps()
\r
707 * Returns the value of field 'sequenceSetId'.
\r
710 * @return the value of field 'sequenceSetId'.
\r
712 public java.lang.String getSequenceSetId()
\r
714 return this._sequenceSetId;
\r
715 } //-- java.lang.String getSequenceSetId()
\r
718 * Returns the value of field 'showAnnotation'.
\r
721 * @return the value of field 'showAnnotation'.
\r
723 public boolean getShowAnnotation()
\r
725 return this._showAnnotation;
\r
726 } //-- boolean getShowAnnotation()
\r
729 * Returns the value of field 'showBoxes'.
\r
732 * @return the value of field 'showBoxes'.
\r
734 public boolean getShowBoxes()
\r
736 return this._showBoxes;
\r
737 } //-- boolean getShowBoxes()
\r
740 * Returns the value of field 'showColourText'.
\r
743 * @return the value of field 'showColourText'.
\r
745 public boolean getShowColourText()
\r
747 return this._showColourText;
\r
748 } //-- boolean getShowColourText()
\r
751 * Returns the value of field 'showFullId'.
\r
754 * @return the value of field 'showFullId'.
\r
756 public boolean getShowFullId()
\r
758 return this._showFullId;
\r
759 } //-- boolean getShowFullId()
\r
762 * Returns the value of field 'showSequenceFeatures'.
\r
765 * @return the value of field 'showSequenceFeatures'.
\r
767 public boolean getShowSequenceFeatures()
\r
769 return this._showSequenceFeatures;
\r
770 } //-- boolean getShowSequenceFeatures()
\r
773 * Returns the value of field 'showText'.
\r
776 * @return the value of field 'showText'.
\r
778 public boolean getShowText()
\r
780 return this._showText;
\r
781 } //-- boolean getShowText()
\r
784 * Returns the value of field 'startRes'.
\r
787 * @return the value of field 'startRes'.
\r
789 public int getStartRes()
\r
791 return this._startRes;
\r
792 } //-- int getStartRes()
\r
795 * Returns the value of field 'startSeq'.
\r
798 * @return the value of field 'startSeq'.
\r
800 public int getStartSeq()
\r
802 return this._startSeq;
\r
803 } //-- int getStartSeq()
\r
806 * Returns the value of field 'title'.
\r
809 * @return the value of field 'title'.
\r
811 public java.lang.String getTitle()
\r
813 return this._title;
\r
814 } //-- java.lang.String getTitle()
\r
817 * Returns the value of field 'viewName'.
\r
820 * @return the value of field 'viewName'.
\r
822 public java.lang.String getViewName()
\r
824 return this._viewName;
\r
825 } //-- java.lang.String getViewName()
\r
828 * Returns the value of field 'width'.
\r
831 * @return the value of field 'width'.
\r
833 public int getWidth()
\r
835 return this._width;
\r
836 } //-- int getWidth()
\r
839 * Returns the value of field 'wrapAlignment'.
\r
842 * @return the value of field 'wrapAlignment'.
\r
844 public boolean getWrapAlignment()
\r
846 return this._wrapAlignment;
\r
847 } //-- boolean getWrapAlignment()
\r
850 * Returns the value of field 'xpos'.
\r
853 * @return the value of field 'xpos'.
\r
855 public int getXpos()
\r
858 } //-- int getXpos()
\r
861 * Returns the value of field 'ypos'.
\r
864 * @return the value of field 'ypos'.
\r
866 public int getYpos()
\r
869 } //-- int getYpos()
\r
872 * Method hasConsThreshold
\r
878 public boolean hasConsThreshold()
\r
880 return this._has_consThreshold;
\r
881 } //-- boolean hasConsThreshold()
\r
884 * Method hasConservationSelected
\r
890 public boolean hasConservationSelected()
\r
892 return this._has_conservationSelected;
\r
893 } //-- boolean hasConservationSelected()
\r
896 * Method hasFontSize
\r
902 public boolean hasFontSize()
\r
904 return this._has_fontSize;
\r
905 } //-- boolean hasFontSize()
\r
908 * Method hasFontStyle
\r
914 public boolean hasFontStyle()
\r
916 return this._has_fontStyle;
\r
917 } //-- boolean hasFontStyle()
\r
920 * Method hasGatheredViews
\r
926 public boolean hasGatheredViews()
\r
928 return this._has_gatheredViews;
\r
929 } //-- boolean hasGatheredViews()
\r
938 public boolean hasHeight()
\r
940 return this._has_height;
\r
941 } //-- boolean hasHeight()
\r
944 * Method hasPidSelected
\r
950 public boolean hasPidSelected()
\r
952 return this._has_pidSelected;
\r
953 } //-- boolean hasPidSelected()
\r
956 * Method hasPidThreshold
\r
962 public boolean hasPidThreshold()
\r
964 return this._has_pidThreshold;
\r
965 } //-- boolean hasPidThreshold()
\r
968 * Method hasRenderGaps
\r
974 public boolean hasRenderGaps()
\r
976 return this._has_renderGaps;
\r
977 } //-- boolean hasRenderGaps()
\r
980 * Method hasShowAnnotation
\r
986 public boolean hasShowAnnotation()
\r
988 return this._has_showAnnotation;
\r
989 } //-- boolean hasShowAnnotation()
\r
992 * Method hasShowBoxes
\r
998 public boolean hasShowBoxes()
\r
1000 return this._has_showBoxes;
\r
1001 } //-- boolean hasShowBoxes()
\r
1004 * Method hasShowColourText
\r
1010 public boolean hasShowColourText()
\r
1012 return this._has_showColourText;
\r
1013 } //-- boolean hasShowColourText()
\r
1016 * Method hasShowFullId
\r
1022 public boolean hasShowFullId()
\r
1024 return this._has_showFullId;
\r
1025 } //-- boolean hasShowFullId()
\r
1028 * Method hasShowSequenceFeatures
\r
1034 public boolean hasShowSequenceFeatures()
\r
1036 return this._has_showSequenceFeatures;
\r
1037 } //-- boolean hasShowSequenceFeatures()
\r
1040 * Method hasShowText
\r
1046 public boolean hasShowText()
\r
1048 return this._has_showText;
\r
1049 } //-- boolean hasShowText()
\r
1052 * Method hasStartRes
\r
1058 public boolean hasStartRes()
\r
1060 return this._has_startRes;
\r
1061 } //-- boolean hasStartRes()
\r
1064 * Method hasStartSeq
\r
1070 public boolean hasStartSeq()
\r
1072 return this._has_startSeq;
\r
1073 } //-- boolean hasStartSeq()
\r
1082 public boolean hasWidth()
\r
1084 return this._has_width;
\r
1085 } //-- boolean hasWidth()
\r
1088 * Method hasWrapAlignment
\r
1094 public boolean hasWrapAlignment()
\r
1096 return this._has_wrapAlignment;
\r
1097 } //-- boolean hasWrapAlignment()
\r
1106 public boolean hasXpos()
\r
1108 return this._has_xpos;
\r
1109 } //-- boolean hasXpos()
\r
1118 public boolean hasYpos()
\r
1120 return this._has_ypos;
\r
1121 } //-- boolean hasYpos()
\r
1130 public boolean isValid()
\r
1135 catch (org.exolab.castor.xml.ValidationException vex) {
\r
1139 } //-- boolean isValid()
\r
1148 public void marshal(java.io.Writer out)
\r
1149 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
\r
1152 Marshaller.marshal(this, out);
\r
1153 } //-- void marshal(java.io.Writer)
\r
1162 public void marshal(org.xml.sax.ContentHandler handler)
\r
1163 throws java.io.IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
\r
1166 Marshaller.marshal(this, handler);
\r
1167 } //-- void marshal(org.xml.sax.ContentHandler)
\r
1170 * Method removeAllHiddenColumns
\r
1173 public void removeAllHiddenColumns()
\r
1175 _hiddenColumnsList.removeAllElements();
\r
1176 } //-- void removeAllHiddenColumns()
\r
1179 * Method removeHiddenColumns
\r
1184 * @return HiddenColumns
\r
1186 public jalview.schemabinding.version2.HiddenColumns removeHiddenColumns(int index)
\r
1188 java.lang.Object obj = _hiddenColumnsList.elementAt(index);
\r
1189 _hiddenColumnsList.removeElementAt(index);
\r
1190 return (jalview.schemabinding.version2.HiddenColumns) obj;
\r
1191 } //-- jalview.schemabinding.version2.HiddenColumns removeHiddenColumns(int)
\r
1194 * Sets the value of field 'annotationColours'.
\r
1196 * @param annotationColours the value of field
\r
1197 * 'annotationColours'.
\r
1199 public void setAnnotationColours(jalview.schemabinding.version2.AnnotationColours annotationColours)
\r
1201 this._annotationColours = annotationColours;
\r
1202 } //-- void setAnnotationColours(jalview.schemabinding.version2.AnnotationColours)
\r
1205 * Sets the value of field 'bgColour'.
\r
1207 * @param bgColour the value of field 'bgColour'.
\r
1209 public void setBgColour(java.lang.String bgColour)
\r
1211 this._bgColour = bgColour;
\r
1212 } //-- void setBgColour(java.lang.String)
\r
1215 * Sets the value of field 'consThreshold'.
\r
1217 * @param consThreshold the value of field 'consThreshold'.
\r
1219 public void setConsThreshold(int consThreshold)
\r
1221 this._consThreshold = consThreshold;
\r
1222 this._has_consThreshold = true;
\r
1223 } //-- void setConsThreshold(int)
\r
1226 * Sets the value of field 'conservationSelected'.
\r
1228 * @param conservationSelected the value of field
\r
1229 * 'conservationSelected'.
\r
1231 public void setConservationSelected(boolean conservationSelected)
\r
1233 this._conservationSelected = conservationSelected;
\r
1234 this._has_conservationSelected = true;
\r
1235 } //-- void setConservationSelected(boolean)
\r
1238 * Sets the value of field 'fontName'.
\r
1240 * @param fontName the value of field 'fontName'.
\r
1242 public void setFontName(java.lang.String fontName)
\r
1244 this._fontName = fontName;
\r
1245 } //-- void setFontName(java.lang.String)
\r
1248 * Sets the value of field 'fontSize'.
\r
1250 * @param fontSize the value of field 'fontSize'.
\r
1252 public void setFontSize(int fontSize)
\r
1254 this._fontSize = fontSize;
\r
1255 this._has_fontSize = true;
\r
1256 } //-- void setFontSize(int)
\r
1259 * Sets the value of field 'fontStyle'.
\r
1261 * @param fontStyle the value of field 'fontStyle'.
\r
1263 public void setFontStyle(int fontStyle)
\r
1265 this._fontStyle = fontStyle;
\r
1266 this._has_fontStyle = true;
\r
1267 } //-- void setFontStyle(int)
\r
1270 * Sets the value of field 'gatheredViews'.
\r
1272 * @param gatheredViews the value of field 'gatheredViews'.
\r
1274 public void setGatheredViews(boolean gatheredViews)
\r
1276 this._gatheredViews = gatheredViews;
\r
1277 this._has_gatheredViews = true;
\r
1278 } //-- void setGatheredViews(boolean)
\r
1281 * Sets the value of field 'height'.
\r
1283 * @param height the value of field 'height'.
\r
1285 public void setHeight(int height)
\r
1287 this._height = height;
\r
1288 this._has_height = true;
\r
1289 } //-- void setHeight(int)
\r
1292 * Method setHiddenColumns
\r
1297 * @param vHiddenColumns
\r
1299 public void setHiddenColumns(int index, jalview.schemabinding.version2.HiddenColumns vHiddenColumns)
\r
1300 throws java.lang.IndexOutOfBoundsException
\r
1302 //-- check bounds for index
\r
1303 if ((index < 0) || (index > _hiddenColumnsList.size())) {
\r
1304 throw new IndexOutOfBoundsException();
\r
1306 _hiddenColumnsList.setElementAt(vHiddenColumns, index);
\r
1307 } //-- void setHiddenColumns(int, jalview.schemabinding.version2.HiddenColumns)
\r
1310 * Method setHiddenColumns
\r
1314 * @param hiddenColumnsArray
\r
1316 public void setHiddenColumns(jalview.schemabinding.version2.HiddenColumns[] hiddenColumnsArray)
\r
1319 _hiddenColumnsList.removeAllElements();
\r
1320 for (int i = 0; i < hiddenColumnsArray.length; i++) {
\r
1321 _hiddenColumnsList.addElement(hiddenColumnsArray[i]);
\r
1323 } //-- void setHiddenColumns(jalview.schemabinding.version2.HiddenColumns)
\r
1326 * Sets the value of field 'pidSelected'.
\r
1328 * @param pidSelected the value of field 'pidSelected'.
\r
1330 public void setPidSelected(boolean pidSelected)
\r
1332 this._pidSelected = pidSelected;
\r
1333 this._has_pidSelected = true;
\r
1334 } //-- void setPidSelected(boolean)
\r
1337 * Sets the value of field 'pidThreshold'.
\r
1339 * @param pidThreshold the value of field 'pidThreshold'.
\r
1341 public void setPidThreshold(int pidThreshold)
\r
1343 this._pidThreshold = pidThreshold;
\r
1344 this._has_pidThreshold = true;
\r
1345 } //-- void setPidThreshold(int)
\r
1348 * Sets the value of field 'renderGaps'.
\r
1350 * @param renderGaps the value of field 'renderGaps'.
\r
1352 public void setRenderGaps(boolean renderGaps)
\r
1354 this._renderGaps = renderGaps;
\r
1355 this._has_renderGaps = true;
\r
1356 } //-- void setRenderGaps(boolean)
\r
1359 * Sets the value of field 'sequenceSetId'.
\r
1361 * @param sequenceSetId the value of field 'sequenceSetId'.
\r
1363 public void setSequenceSetId(java.lang.String sequenceSetId)
\r
1365 this._sequenceSetId = sequenceSetId;
\r
1366 } //-- void setSequenceSetId(java.lang.String)
\r
1369 * Sets the value of field 'showAnnotation'.
\r
1371 * @param showAnnotation the value of field 'showAnnotation'.
\r
1373 public void setShowAnnotation(boolean showAnnotation)
\r
1375 this._showAnnotation = showAnnotation;
\r
1376 this._has_showAnnotation = true;
\r
1377 } //-- void setShowAnnotation(boolean)
\r
1380 * Sets the value of field 'showBoxes'.
\r
1382 * @param showBoxes the value of field 'showBoxes'.
\r
1384 public void setShowBoxes(boolean showBoxes)
\r
1386 this._showBoxes = showBoxes;
\r
1387 this._has_showBoxes = true;
\r
1388 } //-- void setShowBoxes(boolean)
\r
1391 * Sets the value of field 'showColourText'.
\r
1393 * @param showColourText the value of field 'showColourText'.
\r
1395 public void setShowColourText(boolean showColourText)
\r
1397 this._showColourText = showColourText;
\r
1398 this._has_showColourText = true;
\r
1399 } //-- void setShowColourText(boolean)
\r
1402 * Sets the value of field 'showFullId'.
\r
1404 * @param showFullId the value of field 'showFullId'.
\r
1406 public void setShowFullId(boolean showFullId)
\r
1408 this._showFullId = showFullId;
\r
1409 this._has_showFullId = true;
\r
1410 } //-- void setShowFullId(boolean)
\r
1413 * Sets the value of field 'showSequenceFeatures'.
\r
1415 * @param showSequenceFeatures the value of field
\r
1416 * 'showSequenceFeatures'.
\r
1418 public void setShowSequenceFeatures(boolean showSequenceFeatures)
\r
1420 this._showSequenceFeatures = showSequenceFeatures;
\r
1421 this._has_showSequenceFeatures = true;
\r
1422 } //-- void setShowSequenceFeatures(boolean)
\r
1425 * Sets the value of field 'showText'.
\r
1427 * @param showText the value of field 'showText'.
\r
1429 public void setShowText(boolean showText)
\r
1431 this._showText = showText;
\r
1432 this._has_showText = true;
\r
1433 } //-- void setShowText(boolean)
\r
1436 * Sets the value of field 'startRes'.
\r
1438 * @param startRes the value of field 'startRes'.
\r
1440 public void setStartRes(int startRes)
\r
1442 this._startRes = startRes;
\r
1443 this._has_startRes = true;
\r
1444 } //-- void setStartRes(int)
\r
1447 * Sets the value of field 'startSeq'.
\r
1449 * @param startSeq the value of field 'startSeq'.
\r
1451 public void setStartSeq(int startSeq)
\r
1453 this._startSeq = startSeq;
\r
1454 this._has_startSeq = true;
\r
1455 } //-- void setStartSeq(int)
\r
1458 * Sets the value of field 'title'.
\r
1460 * @param title the value of field 'title'.
\r
1462 public void setTitle(java.lang.String title)
\r
1464 this._title = title;
\r
1465 } //-- void setTitle(java.lang.String)
\r
1468 * Sets the value of field 'viewName'.
\r
1470 * @param viewName the value of field 'viewName'.
\r
1472 public void setViewName(java.lang.String viewName)
\r
1474 this._viewName = viewName;
\r
1475 } //-- void setViewName(java.lang.String)
\r
1478 * Sets the value of field 'width'.
\r
1480 * @param width the value of field 'width'.
\r
1482 public void setWidth(int width)
\r
1484 this._width = width;
\r
1485 this._has_width = true;
\r
1486 } //-- void setWidth(int)
\r
1489 * Sets the value of field 'wrapAlignment'.
\r
1491 * @param wrapAlignment the value of field 'wrapAlignment'.
\r
1493 public void setWrapAlignment(boolean wrapAlignment)
\r
1495 this._wrapAlignment = wrapAlignment;
\r
1496 this._has_wrapAlignment = true;
\r
1497 } //-- void setWrapAlignment(boolean)
\r
1500 * Sets the value of field 'xpos'.
\r
1502 * @param xpos the value of field 'xpos'.
\r
1504 public void setXpos(int xpos)
\r
1506 this._xpos = xpos;
\r
1507 this._has_xpos = true;
\r
1508 } //-- void setXpos(int)
\r
1511 * Sets the value of field 'ypos'.
\r
1513 * @param ypos the value of field 'ypos'.
\r
1515 public void setYpos(int ypos)
\r
1517 this._ypos = ypos;
\r
1518 this._has_ypos = true;
\r
1519 } //-- void setYpos(int)
\r
1522 * Method unmarshal
\r
1529 public static java.lang.Object unmarshal(java.io.Reader reader)
\r
1530 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
\r
1532 return (jalview.schemabinding.version2.Viewport) Unmarshaller.unmarshal(jalview.schemabinding.version2.Viewport.class, reader);
\r
1533 } //-- java.lang.Object unmarshal(java.io.Reader)
\r
1539 public void validate()
\r
1540 throws org.exolab.castor.xml.ValidationException
\r
1542 org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
\r
1543 validator.validate(this);
\r
1544 } //-- void validate()
\r