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
99 * Field _rightAlignIds
\r
101 private boolean _rightAlignIds;
\r
104 * keeps track of state for field: _rightAlignIds
\r
106 private boolean _has_rightAlignIds;
\r
111 private boolean _showText;
\r
114 * keeps track of state for field: _showText
\r
116 private boolean _has_showText;
\r
119 * Field _showColourText
\r
121 private boolean _showColourText;
\r
124 * keeps track of state for field: _showColourText
\r
126 private boolean _has_showColourText;
\r
131 private boolean _showBoxes;
\r
134 * keeps track of state for field: _showBoxes
\r
136 private boolean _has_showBoxes;
\r
139 * Field _wrapAlignment
\r
141 private boolean _wrapAlignment;
\r
144 * keeps track of state for field: _wrapAlignment
\r
146 private boolean _has_wrapAlignment;
\r
149 * Field _renderGaps
\r
151 private boolean _renderGaps;
\r
154 * keeps track of state for field: _renderGaps
\r
156 private boolean _has_renderGaps;
\r
159 * Field _showSequenceFeatures
\r
161 private boolean _showSequenceFeatures;
\r
164 * keeps track of state for field: _showSequenceFeatures
\r
166 private boolean _has_showSequenceFeatures;
\r
169 * Field _showAnnotation
\r
171 private boolean _showAnnotation;
\r
174 * keeps track of state for field: _showAnnotation
\r
176 private boolean _has_showAnnotation;
\r
184 * keeps track of state for field: _xpos
\r
186 private boolean _has_xpos;
\r
194 * keeps track of state for field: _ypos
\r
196 private boolean _has_ypos;
\r
201 private int _width;
\r
204 * keeps track of state for field: _width
\r
206 private boolean _has_width;
\r
211 private int _height;
\r
214 * keeps track of state for field: _height
\r
216 private boolean _has_height;
\r
221 private int _startRes;
\r
224 * keeps track of state for field: _startRes
\r
226 private boolean _has_startRes;
\r
231 private int _startSeq;
\r
234 * keeps track of state for field: _startSeq
\r
236 private boolean _has_startSeq;
\r
241 private java.lang.String _fontName;
\r
246 private int _fontSize;
\r
249 * keeps track of state for field: _fontSize
\r
251 private boolean _has_fontSize;
\r
256 private int _fontStyle;
\r
259 * keeps track of state for field: _fontStyle
\r
261 private boolean _has_fontStyle;
\r
266 private java.lang.String _viewName;
\r
269 * Field _sequenceSetId
\r
271 private java.lang.String _sequenceSetId;
\r
274 * Field _gatheredViews
\r
276 private boolean _gatheredViews;
\r
279 * keeps track of state for field: _gatheredViews
\r
281 private boolean _has_gatheredViews;
\r
286 private int _textCol1;
\r
289 * keeps track of state for field: _textCol1
\r
291 private boolean _has_textCol1;
\r
296 private int _textCol2;
\r
299 * keeps track of state for field: _textCol2
\r
301 private boolean _has_textCol2;
\r
304 * Field _textColThreshold
\r
306 private int _textColThreshold;
\r
309 * keeps track of state for field: _textColThreshold
\r
311 private boolean _has_textColThreshold;
\r
314 * Field _annotationColours
\r
316 private jalview.schemabinding.version2.AnnotationColours _annotationColours;
\r
319 * Field _hiddenColumnsList
\r
321 private java.util.Vector _hiddenColumnsList;
\r
324 //----------------/
\r
325 //- Constructors -/
\r
326 //----------------/
\r
328 public Viewport() {
\r
330 _hiddenColumnsList = new Vector();
\r
331 } //-- jalview.schemabinding.version2.Viewport()
\r
339 * Method addHiddenColumns
\r
343 * @param vHiddenColumns
\r
345 public void addHiddenColumns(jalview.schemabinding.version2.HiddenColumns vHiddenColumns)
\r
346 throws java.lang.IndexOutOfBoundsException
\r
348 _hiddenColumnsList.addElement(vHiddenColumns);
\r
349 } //-- void addHiddenColumns(jalview.schemabinding.version2.HiddenColumns)
\r
352 * Method addHiddenColumns
\r
357 * @param vHiddenColumns
\r
359 public void addHiddenColumns(int index, jalview.schemabinding.version2.HiddenColumns vHiddenColumns)
\r
360 throws java.lang.IndexOutOfBoundsException
\r
362 _hiddenColumnsList.insertElementAt(vHiddenColumns, index);
\r
363 } //-- void addHiddenColumns(int, jalview.schemabinding.version2.HiddenColumns)
\r
366 * Method deleteConsThreshold
\r
369 public void deleteConsThreshold()
\r
371 this._has_consThreshold= false;
\r
372 } //-- void deleteConsThreshold()
\r
375 * Method deleteConservationSelected
\r
378 public void deleteConservationSelected()
\r
380 this._has_conservationSelected= false;
\r
381 } //-- void deleteConservationSelected()
\r
384 * Method deleteFontSize
\r
387 public void deleteFontSize()
\r
389 this._has_fontSize= false;
\r
390 } //-- void deleteFontSize()
\r
393 * Method deleteFontStyle
\r
396 public void deleteFontStyle()
\r
398 this._has_fontStyle= false;
\r
399 } //-- void deleteFontStyle()
\r
402 * Method deleteGatheredViews
\r
405 public void deleteGatheredViews()
\r
407 this._has_gatheredViews= false;
\r
408 } //-- void deleteGatheredViews()
\r
411 * Method deleteHeight
\r
414 public void deleteHeight()
\r
416 this._has_height= false;
\r
417 } //-- void deleteHeight()
\r
420 * Method deletePidSelected
\r
423 public void deletePidSelected()
\r
425 this._has_pidSelected= false;
\r
426 } //-- void deletePidSelected()
\r
429 * Method deletePidThreshold
\r
432 public void deletePidThreshold()
\r
434 this._has_pidThreshold= false;
\r
435 } //-- void deletePidThreshold()
\r
438 * Method deleteRenderGaps
\r
441 public void deleteRenderGaps()
\r
443 this._has_renderGaps= false;
\r
444 } //-- void deleteRenderGaps()
\r
447 * Method deleteRightAlignIds
\r
450 public void deleteRightAlignIds()
\r
452 this._has_rightAlignIds= false;
\r
453 } //-- void deleteRightAlignIds()
\r
456 * Method deleteShowAnnotation
\r
459 public void deleteShowAnnotation()
\r
461 this._has_showAnnotation= false;
\r
462 } //-- void deleteShowAnnotation()
\r
465 * Method deleteShowBoxes
\r
468 public void deleteShowBoxes()
\r
470 this._has_showBoxes= false;
\r
471 } //-- void deleteShowBoxes()
\r
474 * Method deleteShowColourText
\r
477 public void deleteShowColourText()
\r
479 this._has_showColourText= false;
\r
480 } //-- void deleteShowColourText()
\r
483 * Method deleteShowFullId
\r
486 public void deleteShowFullId()
\r
488 this._has_showFullId= false;
\r
489 } //-- void deleteShowFullId()
\r
492 * Method deleteShowSequenceFeatures
\r
495 public void deleteShowSequenceFeatures()
\r
497 this._has_showSequenceFeatures= false;
\r
498 } //-- void deleteShowSequenceFeatures()
\r
501 * Method deleteShowText
\r
504 public void deleteShowText()
\r
506 this._has_showText= false;
\r
507 } //-- void deleteShowText()
\r
510 * Method deleteStartRes
\r
513 public void deleteStartRes()
\r
515 this._has_startRes= false;
\r
516 } //-- void deleteStartRes()
\r
519 * Method deleteStartSeq
\r
522 public void deleteStartSeq()
\r
524 this._has_startSeq= false;
\r
525 } //-- void deleteStartSeq()
\r
528 * Method deleteTextCol1
\r
531 public void deleteTextCol1()
\r
533 this._has_textCol1= false;
\r
534 } //-- void deleteTextCol1()
\r
537 * Method deleteTextCol2
\r
540 public void deleteTextCol2()
\r
542 this._has_textCol2= false;
\r
543 } //-- void deleteTextCol2()
\r
546 * Method deleteTextColThreshold
\r
549 public void deleteTextColThreshold()
\r
551 this._has_textColThreshold= false;
\r
552 } //-- void deleteTextColThreshold()
\r
555 * Method deleteWidth
\r
558 public void deleteWidth()
\r
560 this._has_width= false;
\r
561 } //-- void deleteWidth()
\r
564 * Method deleteWrapAlignment
\r
567 public void deleteWrapAlignment()
\r
569 this._has_wrapAlignment= false;
\r
570 } //-- void deleteWrapAlignment()
\r
573 * Method deleteXpos
\r
576 public void deleteXpos()
\r
578 this._has_xpos= false;
\r
579 } //-- void deleteXpos()
\r
582 * Method deleteYpos
\r
585 public void deleteYpos()
\r
587 this._has_ypos= false;
\r
588 } //-- void deleteYpos()
\r
591 * Method enumerateHiddenColumns
\r
595 * @return Enumeration
\r
597 public java.util.Enumeration enumerateHiddenColumns()
\r
599 return _hiddenColumnsList.elements();
\r
600 } //-- java.util.Enumeration enumerateHiddenColumns()
\r
603 * Returns the value of field 'annotationColours'.
\r
605 * @return AnnotationColours
\r
606 * @return the value of field 'annotationColours'.
\r
608 public jalview.schemabinding.version2.AnnotationColours getAnnotationColours()
\r
610 return this._annotationColours;
\r
611 } //-- jalview.schemabinding.version2.AnnotationColours getAnnotationColours()
\r
614 * Returns the value of field 'bgColour'.
\r
617 * @return the value of field 'bgColour'.
\r
619 public java.lang.String getBgColour()
\r
621 return this._bgColour;
\r
622 } //-- java.lang.String getBgColour()
\r
625 * Returns the value of field 'consThreshold'.
\r
628 * @return the value of field 'consThreshold'.
\r
630 public int getConsThreshold()
\r
632 return this._consThreshold;
\r
633 } //-- int getConsThreshold()
\r
636 * Returns the value of field 'conservationSelected'.
\r
639 * @return the value of field 'conservationSelected'.
\r
641 public boolean getConservationSelected()
\r
643 return this._conservationSelected;
\r
644 } //-- boolean getConservationSelected()
\r
647 * Returns the value of field 'fontName'.
\r
650 * @return the value of field 'fontName'.
\r
652 public java.lang.String getFontName()
\r
654 return this._fontName;
\r
655 } //-- java.lang.String getFontName()
\r
658 * Returns the value of field 'fontSize'.
\r
661 * @return the value of field 'fontSize'.
\r
663 public int getFontSize()
\r
665 return this._fontSize;
\r
666 } //-- int getFontSize()
\r
669 * Returns the value of field 'fontStyle'.
\r
672 * @return the value of field 'fontStyle'.
\r
674 public int getFontStyle()
\r
676 return this._fontStyle;
\r
677 } //-- int getFontStyle()
\r
680 * Returns the value of field 'gatheredViews'.
\r
683 * @return the value of field 'gatheredViews'.
\r
685 public boolean getGatheredViews()
\r
687 return this._gatheredViews;
\r
688 } //-- boolean getGatheredViews()
\r
691 * Returns the value of field 'height'.
\r
694 * @return the value of field 'height'.
\r
696 public int getHeight()
\r
698 return this._height;
\r
699 } //-- int getHeight()
\r
702 * Method getHiddenColumns
\r
707 * @return HiddenColumns
\r
709 public jalview.schemabinding.version2.HiddenColumns getHiddenColumns(int index)
\r
710 throws java.lang.IndexOutOfBoundsException
\r
712 //-- check bounds for index
\r
713 if ((index < 0) || (index > _hiddenColumnsList.size())) {
\r
714 throw new IndexOutOfBoundsException();
\r
717 return (jalview.schemabinding.version2.HiddenColumns) _hiddenColumnsList.elementAt(index);
\r
718 } //-- jalview.schemabinding.version2.HiddenColumns getHiddenColumns(int)
\r
721 * Method getHiddenColumns
\r
725 * @return HiddenColumns
\r
727 public jalview.schemabinding.version2.HiddenColumns[] getHiddenColumns()
\r
729 int size = _hiddenColumnsList.size();
\r
730 jalview.schemabinding.version2.HiddenColumns[] mArray = new jalview.schemabinding.version2.HiddenColumns[size];
\r
731 for (int index = 0; index < size; index++) {
\r
732 mArray[index] = (jalview.schemabinding.version2.HiddenColumns) _hiddenColumnsList.elementAt(index);
\r
735 } //-- jalview.schemabinding.version2.HiddenColumns[] getHiddenColumns()
\r
738 * Method getHiddenColumnsCount
\r
744 public int getHiddenColumnsCount()
\r
746 return _hiddenColumnsList.size();
\r
747 } //-- int getHiddenColumnsCount()
\r
750 * Returns the value of field 'pidSelected'.
\r
753 * @return the value of field 'pidSelected'.
\r
755 public boolean getPidSelected()
\r
757 return this._pidSelected;
\r
758 } //-- boolean getPidSelected()
\r
761 * Returns the value of field 'pidThreshold'.
\r
764 * @return the value of field 'pidThreshold'.
\r
766 public int getPidThreshold()
\r
768 return this._pidThreshold;
\r
769 } //-- int getPidThreshold()
\r
772 * Returns the value of field 'renderGaps'.
\r
775 * @return the value of field 'renderGaps'.
\r
777 public boolean getRenderGaps()
\r
779 return this._renderGaps;
\r
780 } //-- boolean getRenderGaps()
\r
783 * Returns the value of field 'rightAlignIds'.
\r
786 * @return the value of field 'rightAlignIds'.
\r
788 public boolean getRightAlignIds()
\r
790 return this._rightAlignIds;
\r
791 } //-- boolean getRightAlignIds()
\r
794 * Returns the value of field 'sequenceSetId'.
\r
797 * @return the value of field 'sequenceSetId'.
\r
799 public java.lang.String getSequenceSetId()
\r
801 return this._sequenceSetId;
\r
802 } //-- java.lang.String getSequenceSetId()
\r
805 * Returns the value of field 'showAnnotation'.
\r
808 * @return the value of field 'showAnnotation'.
\r
810 public boolean getShowAnnotation()
\r
812 return this._showAnnotation;
\r
813 } //-- boolean getShowAnnotation()
\r
816 * Returns the value of field 'showBoxes'.
\r
819 * @return the value of field 'showBoxes'.
\r
821 public boolean getShowBoxes()
\r
823 return this._showBoxes;
\r
824 } //-- boolean getShowBoxes()
\r
827 * Returns the value of field 'showColourText'.
\r
830 * @return the value of field 'showColourText'.
\r
832 public boolean getShowColourText()
\r
834 return this._showColourText;
\r
835 } //-- boolean getShowColourText()
\r
838 * Returns the value of field 'showFullId'.
\r
841 * @return the value of field 'showFullId'.
\r
843 public boolean getShowFullId()
\r
845 return this._showFullId;
\r
846 } //-- boolean getShowFullId()
\r
849 * Returns the value of field 'showSequenceFeatures'.
\r
852 * @return the value of field 'showSequenceFeatures'.
\r
854 public boolean getShowSequenceFeatures()
\r
856 return this._showSequenceFeatures;
\r
857 } //-- boolean getShowSequenceFeatures()
\r
860 * Returns the value of field 'showText'.
\r
863 * @return the value of field 'showText'.
\r
865 public boolean getShowText()
\r
867 return this._showText;
\r
868 } //-- boolean getShowText()
\r
871 * Returns the value of field 'startRes'.
\r
874 * @return the value of field 'startRes'.
\r
876 public int getStartRes()
\r
878 return this._startRes;
\r
879 } //-- int getStartRes()
\r
882 * Returns the value of field 'startSeq'.
\r
885 * @return the value of field 'startSeq'.
\r
887 public int getStartSeq()
\r
889 return this._startSeq;
\r
890 } //-- int getStartSeq()
\r
893 * Returns the value of field 'textCol1'.
\r
896 * @return the value of field 'textCol1'.
\r
898 public int getTextCol1()
\r
900 return this._textCol1;
\r
901 } //-- int getTextCol1()
\r
904 * Returns the value of field 'textCol2'.
\r
907 * @return the value of field 'textCol2'.
\r
909 public int getTextCol2()
\r
911 return this._textCol2;
\r
912 } //-- int getTextCol2()
\r
915 * Returns the value of field 'textColThreshold'.
\r
918 * @return the value of field 'textColThreshold'.
\r
920 public int getTextColThreshold()
\r
922 return this._textColThreshold;
\r
923 } //-- int getTextColThreshold()
\r
926 * Returns the value of field 'title'.
\r
929 * @return the value of field 'title'.
\r
931 public java.lang.String getTitle()
\r
933 return this._title;
\r
934 } //-- java.lang.String getTitle()
\r
937 * Returns the value of field 'viewName'.
\r
940 * @return the value of field 'viewName'.
\r
942 public java.lang.String getViewName()
\r
944 return this._viewName;
\r
945 } //-- java.lang.String getViewName()
\r
948 * Returns the value of field 'width'.
\r
951 * @return the value of field 'width'.
\r
953 public int getWidth()
\r
955 return this._width;
\r
956 } //-- int getWidth()
\r
959 * Returns the value of field 'wrapAlignment'.
\r
962 * @return the value of field 'wrapAlignment'.
\r
964 public boolean getWrapAlignment()
\r
966 return this._wrapAlignment;
\r
967 } //-- boolean getWrapAlignment()
\r
970 * Returns the value of field 'xpos'.
\r
973 * @return the value of field 'xpos'.
\r
975 public int getXpos()
\r
978 } //-- int getXpos()
\r
981 * Returns the value of field 'ypos'.
\r
984 * @return the value of field 'ypos'.
\r
986 public int getYpos()
\r
989 } //-- int getYpos()
\r
992 * Method hasConsThreshold
\r
998 public boolean hasConsThreshold()
\r
1000 return this._has_consThreshold;
\r
1001 } //-- boolean hasConsThreshold()
\r
1004 * Method hasConservationSelected
\r
1010 public boolean hasConservationSelected()
\r
1012 return this._has_conservationSelected;
\r
1013 } //-- boolean hasConservationSelected()
\r
1016 * Method hasFontSize
\r
1022 public boolean hasFontSize()
\r
1024 return this._has_fontSize;
\r
1025 } //-- boolean hasFontSize()
\r
1028 * Method hasFontStyle
\r
1034 public boolean hasFontStyle()
\r
1036 return this._has_fontStyle;
\r
1037 } //-- boolean hasFontStyle()
\r
1040 * Method hasGatheredViews
\r
1046 public boolean hasGatheredViews()
\r
1048 return this._has_gatheredViews;
\r
1049 } //-- boolean hasGatheredViews()
\r
1052 * Method hasHeight
\r
1058 public boolean hasHeight()
\r
1060 return this._has_height;
\r
1061 } //-- boolean hasHeight()
\r
1064 * Method hasPidSelected
\r
1070 public boolean hasPidSelected()
\r
1072 return this._has_pidSelected;
\r
1073 } //-- boolean hasPidSelected()
\r
1076 * Method hasPidThreshold
\r
1082 public boolean hasPidThreshold()
\r
1084 return this._has_pidThreshold;
\r
1085 } //-- boolean hasPidThreshold()
\r
1088 * Method hasRenderGaps
\r
1094 public boolean hasRenderGaps()
\r
1096 return this._has_renderGaps;
\r
1097 } //-- boolean hasRenderGaps()
\r
1100 * Method hasRightAlignIds
\r
1106 public boolean hasRightAlignIds()
\r
1108 return this._has_rightAlignIds;
\r
1109 } //-- boolean hasRightAlignIds()
\r
1112 * Method hasShowAnnotation
\r
1118 public boolean hasShowAnnotation()
\r
1120 return this._has_showAnnotation;
\r
1121 } //-- boolean hasShowAnnotation()
\r
1124 * Method hasShowBoxes
\r
1130 public boolean hasShowBoxes()
\r
1132 return this._has_showBoxes;
\r
1133 } //-- boolean hasShowBoxes()
\r
1136 * Method hasShowColourText
\r
1142 public boolean hasShowColourText()
\r
1144 return this._has_showColourText;
\r
1145 } //-- boolean hasShowColourText()
\r
1148 * Method hasShowFullId
\r
1154 public boolean hasShowFullId()
\r
1156 return this._has_showFullId;
\r
1157 } //-- boolean hasShowFullId()
\r
1160 * Method hasShowSequenceFeatures
\r
1166 public boolean hasShowSequenceFeatures()
\r
1168 return this._has_showSequenceFeatures;
\r
1169 } //-- boolean hasShowSequenceFeatures()
\r
1172 * Method hasShowText
\r
1178 public boolean hasShowText()
\r
1180 return this._has_showText;
\r
1181 } //-- boolean hasShowText()
\r
1184 * Method hasStartRes
\r
1190 public boolean hasStartRes()
\r
1192 return this._has_startRes;
\r
1193 } //-- boolean hasStartRes()
\r
1196 * Method hasStartSeq
\r
1202 public boolean hasStartSeq()
\r
1204 return this._has_startSeq;
\r
1205 } //-- boolean hasStartSeq()
\r
1208 * Method hasTextCol1
\r
1214 public boolean hasTextCol1()
\r
1216 return this._has_textCol1;
\r
1217 } //-- boolean hasTextCol1()
\r
1220 * Method hasTextCol2
\r
1226 public boolean hasTextCol2()
\r
1228 return this._has_textCol2;
\r
1229 } //-- boolean hasTextCol2()
\r
1232 * Method hasTextColThreshold
\r
1238 public boolean hasTextColThreshold()
\r
1240 return this._has_textColThreshold;
\r
1241 } //-- boolean hasTextColThreshold()
\r
1250 public boolean hasWidth()
\r
1252 return this._has_width;
\r
1253 } //-- boolean hasWidth()
\r
1256 * Method hasWrapAlignment
\r
1262 public boolean hasWrapAlignment()
\r
1264 return this._has_wrapAlignment;
\r
1265 } //-- boolean hasWrapAlignment()
\r
1274 public boolean hasXpos()
\r
1276 return this._has_xpos;
\r
1277 } //-- boolean hasXpos()
\r
1286 public boolean hasYpos()
\r
1288 return this._has_ypos;
\r
1289 } //-- boolean hasYpos()
\r
1298 public boolean isValid()
\r
1303 catch (org.exolab.castor.xml.ValidationException vex) {
\r
1307 } //-- boolean isValid()
\r
1316 public void marshal(java.io.Writer out)
\r
1317 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
\r
1320 Marshaller.marshal(this, out);
\r
1321 } //-- void marshal(java.io.Writer)
\r
1330 public void marshal(org.xml.sax.ContentHandler handler)
\r
1331 throws java.io.IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
\r
1334 Marshaller.marshal(this, handler);
\r
1335 } //-- void marshal(org.xml.sax.ContentHandler)
\r
1338 * Method removeAllHiddenColumns
\r
1341 public void removeAllHiddenColumns()
\r
1343 _hiddenColumnsList.removeAllElements();
\r
1344 } //-- void removeAllHiddenColumns()
\r
1347 * Method removeHiddenColumns
\r
1352 * @return HiddenColumns
\r
1354 public jalview.schemabinding.version2.HiddenColumns removeHiddenColumns(int index)
\r
1356 java.lang.Object obj = _hiddenColumnsList.elementAt(index);
\r
1357 _hiddenColumnsList.removeElementAt(index);
\r
1358 return (jalview.schemabinding.version2.HiddenColumns) obj;
\r
1359 } //-- jalview.schemabinding.version2.HiddenColumns removeHiddenColumns(int)
\r
1362 * Sets the value of field 'annotationColours'.
\r
1364 * @param annotationColours the value of field
\r
1365 * 'annotationColours'.
\r
1367 public void setAnnotationColours(jalview.schemabinding.version2.AnnotationColours annotationColours)
\r
1369 this._annotationColours = annotationColours;
\r
1370 } //-- void setAnnotationColours(jalview.schemabinding.version2.AnnotationColours)
\r
1373 * Sets the value of field 'bgColour'.
\r
1375 * @param bgColour the value of field 'bgColour'.
\r
1377 public void setBgColour(java.lang.String bgColour)
\r
1379 this._bgColour = bgColour;
\r
1380 } //-- void setBgColour(java.lang.String)
\r
1383 * Sets the value of field 'consThreshold'.
\r
1385 * @param consThreshold the value of field 'consThreshold'.
\r
1387 public void setConsThreshold(int consThreshold)
\r
1389 this._consThreshold = consThreshold;
\r
1390 this._has_consThreshold = true;
\r
1391 } //-- void setConsThreshold(int)
\r
1394 * Sets the value of field 'conservationSelected'.
\r
1396 * @param conservationSelected the value of field
\r
1397 * 'conservationSelected'.
\r
1399 public void setConservationSelected(boolean conservationSelected)
\r
1401 this._conservationSelected = conservationSelected;
\r
1402 this._has_conservationSelected = true;
\r
1403 } //-- void setConservationSelected(boolean)
\r
1406 * Sets the value of field 'fontName'.
\r
1408 * @param fontName the value of field 'fontName'.
\r
1410 public void setFontName(java.lang.String fontName)
\r
1412 this._fontName = fontName;
\r
1413 } //-- void setFontName(java.lang.String)
\r
1416 * Sets the value of field 'fontSize'.
\r
1418 * @param fontSize the value of field 'fontSize'.
\r
1420 public void setFontSize(int fontSize)
\r
1422 this._fontSize = fontSize;
\r
1423 this._has_fontSize = true;
\r
1424 } //-- void setFontSize(int)
\r
1427 * Sets the value of field 'fontStyle'.
\r
1429 * @param fontStyle the value of field 'fontStyle'.
\r
1431 public void setFontStyle(int fontStyle)
\r
1433 this._fontStyle = fontStyle;
\r
1434 this._has_fontStyle = true;
\r
1435 } //-- void setFontStyle(int)
\r
1438 * Sets the value of field 'gatheredViews'.
\r
1440 * @param gatheredViews the value of field 'gatheredViews'.
\r
1442 public void setGatheredViews(boolean gatheredViews)
\r
1444 this._gatheredViews = gatheredViews;
\r
1445 this._has_gatheredViews = true;
\r
1446 } //-- void setGatheredViews(boolean)
\r
1449 * Sets the value of field 'height'.
\r
1451 * @param height the value of field 'height'.
\r
1453 public void setHeight(int height)
\r
1455 this._height = height;
\r
1456 this._has_height = true;
\r
1457 } //-- void setHeight(int)
\r
1460 * Method setHiddenColumns
\r
1465 * @param vHiddenColumns
\r
1467 public void setHiddenColumns(int index, jalview.schemabinding.version2.HiddenColumns vHiddenColumns)
\r
1468 throws java.lang.IndexOutOfBoundsException
\r
1470 //-- check bounds for index
\r
1471 if ((index < 0) || (index > _hiddenColumnsList.size())) {
\r
1472 throw new IndexOutOfBoundsException();
\r
1474 _hiddenColumnsList.setElementAt(vHiddenColumns, index);
\r
1475 } //-- void setHiddenColumns(int, jalview.schemabinding.version2.HiddenColumns)
\r
1478 * Method setHiddenColumns
\r
1482 * @param hiddenColumnsArray
\r
1484 public void setHiddenColumns(jalview.schemabinding.version2.HiddenColumns[] hiddenColumnsArray)
\r
1487 _hiddenColumnsList.removeAllElements();
\r
1488 for (int i = 0; i < hiddenColumnsArray.length; i++) {
\r
1489 _hiddenColumnsList.addElement(hiddenColumnsArray[i]);
\r
1491 } //-- void setHiddenColumns(jalview.schemabinding.version2.HiddenColumns)
\r
1494 * Sets the value of field 'pidSelected'.
\r
1496 * @param pidSelected the value of field 'pidSelected'.
\r
1498 public void setPidSelected(boolean pidSelected)
\r
1500 this._pidSelected = pidSelected;
\r
1501 this._has_pidSelected = true;
\r
1502 } //-- void setPidSelected(boolean)
\r
1505 * Sets the value of field 'pidThreshold'.
\r
1507 * @param pidThreshold the value of field 'pidThreshold'.
\r
1509 public void setPidThreshold(int pidThreshold)
\r
1511 this._pidThreshold = pidThreshold;
\r
1512 this._has_pidThreshold = true;
\r
1513 } //-- void setPidThreshold(int)
\r
1516 * Sets the value of field 'renderGaps'.
\r
1518 * @param renderGaps the value of field 'renderGaps'.
\r
1520 public void setRenderGaps(boolean renderGaps)
\r
1522 this._renderGaps = renderGaps;
\r
1523 this._has_renderGaps = true;
\r
1524 } //-- void setRenderGaps(boolean)
\r
1527 * Sets the value of field 'rightAlignIds'.
\r
1529 * @param rightAlignIds the value of field 'rightAlignIds'.
\r
1531 public void setRightAlignIds(boolean rightAlignIds)
\r
1533 this._rightAlignIds = rightAlignIds;
\r
1534 this._has_rightAlignIds = true;
\r
1535 } //-- void setRightAlignIds(boolean)
\r
1538 * Sets the value of field 'sequenceSetId'.
\r
1540 * @param sequenceSetId the value of field 'sequenceSetId'.
\r
1542 public void setSequenceSetId(java.lang.String sequenceSetId)
\r
1544 this._sequenceSetId = sequenceSetId;
\r
1545 } //-- void setSequenceSetId(java.lang.String)
\r
1548 * Sets the value of field 'showAnnotation'.
\r
1550 * @param showAnnotation the value of field 'showAnnotation'.
\r
1552 public void setShowAnnotation(boolean showAnnotation)
\r
1554 this._showAnnotation = showAnnotation;
\r
1555 this._has_showAnnotation = true;
\r
1556 } //-- void setShowAnnotation(boolean)
\r
1559 * Sets the value of field 'showBoxes'.
\r
1561 * @param showBoxes the value of field 'showBoxes'.
\r
1563 public void setShowBoxes(boolean showBoxes)
\r
1565 this._showBoxes = showBoxes;
\r
1566 this._has_showBoxes = true;
\r
1567 } //-- void setShowBoxes(boolean)
\r
1570 * Sets the value of field 'showColourText'.
\r
1572 * @param showColourText the value of field 'showColourText'.
\r
1574 public void setShowColourText(boolean showColourText)
\r
1576 this._showColourText = showColourText;
\r
1577 this._has_showColourText = true;
\r
1578 } //-- void setShowColourText(boolean)
\r
1581 * Sets the value of field 'showFullId'.
\r
1583 * @param showFullId the value of field 'showFullId'.
\r
1585 public void setShowFullId(boolean showFullId)
\r
1587 this._showFullId = showFullId;
\r
1588 this._has_showFullId = true;
\r
1589 } //-- void setShowFullId(boolean)
\r
1592 * Sets the value of field 'showSequenceFeatures'.
\r
1594 * @param showSequenceFeatures the value of field
\r
1595 * 'showSequenceFeatures'.
\r
1597 public void setShowSequenceFeatures(boolean showSequenceFeatures)
\r
1599 this._showSequenceFeatures = showSequenceFeatures;
\r
1600 this._has_showSequenceFeatures = true;
\r
1601 } //-- void setShowSequenceFeatures(boolean)
\r
1604 * Sets the value of field 'showText'.
\r
1606 * @param showText the value of field 'showText'.
\r
1608 public void setShowText(boolean showText)
\r
1610 this._showText = showText;
\r
1611 this._has_showText = true;
\r
1612 } //-- void setShowText(boolean)
\r
1615 * Sets the value of field 'startRes'.
\r
1617 * @param startRes the value of field 'startRes'.
\r
1619 public void setStartRes(int startRes)
\r
1621 this._startRes = startRes;
\r
1622 this._has_startRes = true;
\r
1623 } //-- void setStartRes(int)
\r
1626 * Sets the value of field 'startSeq'.
\r
1628 * @param startSeq the value of field 'startSeq'.
\r
1630 public void setStartSeq(int startSeq)
\r
1632 this._startSeq = startSeq;
\r
1633 this._has_startSeq = true;
\r
1634 } //-- void setStartSeq(int)
\r
1637 * Sets the value of field 'textCol1'.
\r
1639 * @param textCol1 the value of field 'textCol1'.
\r
1641 public void setTextCol1(int textCol1)
\r
1643 this._textCol1 = textCol1;
\r
1644 this._has_textCol1 = true;
\r
1645 } //-- void setTextCol1(int)
\r
1648 * Sets the value of field 'textCol2'.
\r
1650 * @param textCol2 the value of field 'textCol2'.
\r
1652 public void setTextCol2(int textCol2)
\r
1654 this._textCol2 = textCol2;
\r
1655 this._has_textCol2 = true;
\r
1656 } //-- void setTextCol2(int)
\r
1659 * Sets the value of field 'textColThreshold'.
\r
1661 * @param textColThreshold the value of field 'textColThreshold'
\r
1663 public void setTextColThreshold(int textColThreshold)
\r
1665 this._textColThreshold = textColThreshold;
\r
1666 this._has_textColThreshold = true;
\r
1667 } //-- void setTextColThreshold(int)
\r
1670 * Sets the value of field 'title'.
\r
1672 * @param title the value of field 'title'.
\r
1674 public void setTitle(java.lang.String title)
\r
1676 this._title = title;
\r
1677 } //-- void setTitle(java.lang.String)
\r
1680 * Sets the value of field 'viewName'.
\r
1682 * @param viewName the value of field 'viewName'.
\r
1684 public void setViewName(java.lang.String viewName)
\r
1686 this._viewName = viewName;
\r
1687 } //-- void setViewName(java.lang.String)
\r
1690 * Sets the value of field 'width'.
\r
1692 * @param width the value of field 'width'.
\r
1694 public void setWidth(int width)
\r
1696 this._width = width;
\r
1697 this._has_width = true;
\r
1698 } //-- void setWidth(int)
\r
1701 * Sets the value of field 'wrapAlignment'.
\r
1703 * @param wrapAlignment the value of field 'wrapAlignment'.
\r
1705 public void setWrapAlignment(boolean wrapAlignment)
\r
1707 this._wrapAlignment = wrapAlignment;
\r
1708 this._has_wrapAlignment = true;
\r
1709 } //-- void setWrapAlignment(boolean)
\r
1712 * Sets the value of field 'xpos'.
\r
1714 * @param xpos the value of field 'xpos'.
\r
1716 public void setXpos(int xpos)
\r
1718 this._xpos = xpos;
\r
1719 this._has_xpos = true;
\r
1720 } //-- void setXpos(int)
\r
1723 * Sets the value of field 'ypos'.
\r
1725 * @param ypos the value of field 'ypos'.
\r
1727 public void setYpos(int ypos)
\r
1729 this._ypos = ypos;
\r
1730 this._has_ypos = true;
\r
1731 } //-- void setYpos(int)
\r
1734 * Method unmarshal
\r
1741 public static java.lang.Object unmarshal(java.io.Reader reader)
\r
1742 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
\r
1744 return (jalview.schemabinding.version2.Viewport) Unmarshaller.unmarshal(jalview.schemabinding.version2.Viewport.class, reader);
\r
1745 } //-- java.lang.Object unmarshal(java.io.Reader)
\r
1751 public void validate()
\r
1752 throws org.exolab.castor.xml.ValidationException
\r
1754 org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
\r
1755 validator.validate(this);
\r
1756 } //-- void validate()
\r