2 * This class was automatically generated with
3 * <a href="http://www.castor.org">Castor 1.1</a>, using an XML
8 package jalview.binding;
10 //---------------------------------/
11 //- Imported classes and packages -/
12 //---------------------------------/
14 import org.exolab.castor.xml.Marshaller;
15 import org.exolab.castor.xml.Unmarshaller;
20 * @version $Revision$ $Date$
22 public class Viewport implements java.io.Serializable
25 // --------------------------/
26 // - Class/Member Variables -/
27 // --------------------------/
30 * Field _conservationSelected.
32 private boolean _conservationSelected;
35 * keeps track of state for field: _conservationSelected
37 private boolean _has_conservationSelected;
42 private boolean _pidSelected;
45 * keeps track of state for field: _pidSelected
47 private boolean _has_pidSelected;
52 private java.lang.String _bgColour;
55 * Field _consThreshold.
57 private int _consThreshold;
60 * keeps track of state for field: _consThreshold
62 private boolean _has_consThreshold;
65 * Field _pidThreshold.
67 private int _pidThreshold;
70 * keeps track of state for field: _pidThreshold
72 private boolean _has_pidThreshold;
77 private java.lang.String _title;
82 private boolean _showFullId;
85 * keeps track of state for field: _showFullId
87 private boolean _has_showFullId;
92 private boolean _showText;
95 * keeps track of state for field: _showText
97 private boolean _has_showText;
100 * Field _showColourText.
102 private boolean _showColourText;
105 * keeps track of state for field: _showColourText
107 private boolean _has_showColourText;
112 private boolean _showBoxes;
115 * keeps track of state for field: _showBoxes
117 private boolean _has_showBoxes;
120 * Field _wrapAlignment.
122 private boolean _wrapAlignment;
125 * keeps track of state for field: _wrapAlignment
127 private boolean _has_wrapAlignment;
132 private boolean _renderGaps;
135 * keeps track of state for field: _renderGaps
137 private boolean _has_renderGaps;
140 * Field _showSequenceFeatures.
142 private boolean _showSequenceFeatures;
145 * keeps track of state for field: _showSequenceFeatures
147 private boolean _has_showSequenceFeatures;
150 * Field _showAnnotation.
152 private boolean _showAnnotation;
155 * keeps track of state for field: _showAnnotation
157 private boolean _has_showAnnotation;
160 * Field _showConservation.
162 private boolean _showConservation;
165 * keeps track of state for field: _showConservation
167 private boolean _has_showConservation;
170 * Field _showQuality.
172 private boolean _showQuality;
175 * keeps track of state for field: _showQuality
177 private boolean _has_showQuality;
180 * Field _showIdentity.
182 private boolean _showIdentity;
185 * keeps track of state for field: _showIdentity
187 private boolean _has_showIdentity;
195 * keeps track of state for field: _xpos
197 private boolean _has_xpos;
205 * keeps track of state for field: _ypos
207 private boolean _has_ypos;
215 * keeps track of state for field: _width
217 private boolean _has_width;
225 * keeps track of state for field: _height
227 private boolean _has_height;
232 private int _startRes;
235 * keeps track of state for field: _startRes
237 private boolean _has_startRes;
242 private int _startSeq;
245 * keeps track of state for field: _startSeq
247 private boolean _has_startSeq;
252 private java.lang.String _fontName;
257 private int _fontSize;
260 * keeps track of state for field: _fontSize
262 private boolean _has_fontSize;
267 private int _fontStyle;
270 * keeps track of state for field: _fontStyle
272 private boolean _has_fontStyle;
289 public void deleteConsThreshold()
291 this._has_consThreshold = false;
296 public void deleteConservationSelected()
298 this._has_conservationSelected = false;
303 public void deleteFontSize()
305 this._has_fontSize = false;
310 public void deleteFontStyle()
312 this._has_fontStyle = false;
317 public void deleteHeight()
319 this._has_height = false;
324 public void deletePidSelected()
326 this._has_pidSelected = false;
331 public void deletePidThreshold()
333 this._has_pidThreshold = false;
338 public void deleteRenderGaps()
340 this._has_renderGaps = false;
345 public void deleteShowAnnotation()
347 this._has_showAnnotation = false;
352 public void deleteShowBoxes()
354 this._has_showBoxes = false;
359 public void deleteShowColourText()
361 this._has_showColourText = false;
366 public void deleteShowConservation()
368 this._has_showConservation = false;
373 public void deleteShowFullId()
375 this._has_showFullId = false;
380 public void deleteShowIdentity()
382 this._has_showIdentity = false;
387 public void deleteShowQuality()
389 this._has_showQuality = false;
394 public void deleteShowSequenceFeatures()
396 this._has_showSequenceFeatures = false;
401 public void deleteShowText()
403 this._has_showText = false;
408 public void deleteStartRes()
410 this._has_startRes = false;
415 public void deleteStartSeq()
417 this._has_startSeq = false;
422 public void deleteWidth()
424 this._has_width = false;
429 public void deleteWrapAlignment()
431 this._has_wrapAlignment = false;
436 public void deleteXpos()
438 this._has_xpos = false;
443 public void deleteYpos()
445 this._has_ypos = false;
449 * Returns the value of field 'bgColour'.
451 * @return the value of field 'BgColour'.
453 public java.lang.String getBgColour()
455 return this._bgColour;
459 * Returns the value of field 'consThreshold'.
461 * @return the value of field 'ConsThreshold'.
463 public int getConsThreshold()
465 return this._consThreshold;
469 * Returns the value of field 'conservationSelected'.
471 * @return the value of field 'ConservationSelected'.
473 public boolean getConservationSelected()
475 return this._conservationSelected;
479 * Returns the value of field 'fontName'.
481 * @return the value of field 'FontName'.
483 public java.lang.String getFontName()
485 return this._fontName;
489 * Returns the value of field 'fontSize'.
491 * @return the value of field 'FontSize'.
493 public int getFontSize()
495 return this._fontSize;
499 * Returns the value of field 'fontStyle'.
501 * @return the value of field 'FontStyle'.
503 public int getFontStyle()
505 return this._fontStyle;
509 * Returns the value of field 'height'.
511 * @return the value of field 'Height'.
513 public int getHeight()
519 * Returns the value of field 'pidSelected'.
521 * @return the value of field 'PidSelected'.
523 public boolean getPidSelected()
525 return this._pidSelected;
529 * Returns the value of field 'pidThreshold'.
531 * @return the value of field 'PidThreshold'.
533 public int getPidThreshold()
535 return this._pidThreshold;
539 * Returns the value of field 'renderGaps'.
541 * @return the value of field 'RenderGaps'.
543 public boolean getRenderGaps()
545 return this._renderGaps;
549 * Returns the value of field 'showAnnotation'.
551 * @return the value of field 'ShowAnnotation'.
553 public boolean getShowAnnotation()
555 return this._showAnnotation;
559 * Returns the value of field 'showBoxes'.
561 * @return the value of field 'ShowBoxes'.
563 public boolean getShowBoxes()
565 return this._showBoxes;
569 * Returns the value of field 'showColourText'.
571 * @return the value of field 'ShowColourText'.
573 public boolean getShowColourText()
575 return this._showColourText;
579 * Returns the value of field 'showConservation'.
581 * @return the value of field 'ShowConservation'.
583 public boolean getShowConservation()
585 return this._showConservation;
589 * Returns the value of field 'showFullId'.
591 * @return the value of field 'ShowFullId'.
593 public boolean getShowFullId()
595 return this._showFullId;
599 * Returns the value of field 'showIdentity'.
601 * @return the value of field 'ShowIdentity'.
603 public boolean getShowIdentity()
605 return this._showIdentity;
609 * Returns the value of field 'showQuality'.
611 * @return the value of field 'ShowQuality'.
613 public boolean getShowQuality()
615 return this._showQuality;
619 * Returns the value of field 'showSequenceFeatures'.
621 * @return the value of field 'ShowSequenceFeatures'.
623 public boolean getShowSequenceFeatures()
625 return this._showSequenceFeatures;
629 * Returns the value of field 'showText'.
631 * @return the value of field 'ShowText'.
633 public boolean getShowText()
635 return this._showText;
639 * Returns the value of field 'startRes'.
641 * @return the value of field 'StartRes'.
643 public int getStartRes()
645 return this._startRes;
649 * Returns the value of field 'startSeq'.
651 * @return the value of field 'StartSeq'.
653 public int getStartSeq()
655 return this._startSeq;
659 * Returns the value of field 'title'.
661 * @return the value of field 'Title'.
663 public java.lang.String getTitle()
669 * Returns the value of field 'width'.
671 * @return the value of field 'Width'.
673 public int getWidth()
679 * Returns the value of field 'wrapAlignment'.
681 * @return the value of field 'WrapAlignment'.
683 public boolean getWrapAlignment()
685 return this._wrapAlignment;
689 * Returns the value of field 'xpos'.
691 * @return the value of field 'Xpos'.
699 * Returns the value of field 'ypos'.
701 * @return the value of field 'Ypos'.
709 * Method hasConsThreshold.
711 * @return true if at least one ConsThreshold has been added
713 public boolean hasConsThreshold()
715 return this._has_consThreshold;
719 * Method hasConservationSelected.
721 * @return true if at least one ConservationSelected has been added
723 public boolean hasConservationSelected()
725 return this._has_conservationSelected;
729 * Method hasFontSize.
731 * @return true if at least one FontSize has been added
733 public boolean hasFontSize()
735 return this._has_fontSize;
739 * Method hasFontStyle.
741 * @return true if at least one FontStyle has been added
743 public boolean hasFontStyle()
745 return this._has_fontStyle;
751 * @return true if at least one Height has been added
753 public boolean hasHeight()
755 return this._has_height;
759 * Method hasPidSelected.
761 * @return true if at least one PidSelected has been added
763 public boolean hasPidSelected()
765 return this._has_pidSelected;
769 * Method hasPidThreshold.
771 * @return true if at least one PidThreshold has been added
773 public boolean hasPidThreshold()
775 return this._has_pidThreshold;
779 * Method hasRenderGaps.
781 * @return true if at least one RenderGaps has been added
783 public boolean hasRenderGaps()
785 return this._has_renderGaps;
789 * Method hasShowAnnotation.
791 * @return true if at least one ShowAnnotation has been added
793 public boolean hasShowAnnotation()
795 return this._has_showAnnotation;
799 * Method hasShowBoxes.
801 * @return true if at least one ShowBoxes has been added
803 public boolean hasShowBoxes()
805 return this._has_showBoxes;
809 * Method hasShowColourText.
811 * @return true if at least one ShowColourText has been added
813 public boolean hasShowColourText()
815 return this._has_showColourText;
819 * Method hasShowConservation.
821 * @return true if at least one ShowConservation has been added
823 public boolean hasShowConservation()
825 return this._has_showConservation;
829 * Method hasShowFullId.
831 * @return true if at least one ShowFullId has been added
833 public boolean hasShowFullId()
835 return this._has_showFullId;
839 * Method hasShowIdentity.
841 * @return true if at least one ShowIdentity has been added
843 public boolean hasShowIdentity()
845 return this._has_showIdentity;
849 * Method hasShowQuality.
851 * @return true if at least one ShowQuality has been added
853 public boolean hasShowQuality()
855 return this._has_showQuality;
859 * Method hasShowSequenceFeatures.
861 * @return true if at least one ShowSequenceFeatures has been added
863 public boolean hasShowSequenceFeatures()
865 return this._has_showSequenceFeatures;
869 * Method hasShowText.
871 * @return true if at least one ShowText has been added
873 public boolean hasShowText()
875 return this._has_showText;
879 * Method hasStartRes.
881 * @return true if at least one StartRes has been added
883 public boolean hasStartRes()
885 return this._has_startRes;
889 * Method hasStartSeq.
891 * @return true if at least one StartSeq has been added
893 public boolean hasStartSeq()
895 return this._has_startSeq;
901 * @return true if at least one Width has been added
903 public boolean hasWidth()
905 return this._has_width;
909 * Method hasWrapAlignment.
911 * @return true if at least one WrapAlignment has been added
913 public boolean hasWrapAlignment()
915 return this._has_wrapAlignment;
921 * @return true if at least one Xpos has been added
923 public boolean hasXpos()
925 return this._has_xpos;
931 * @return true if at least one Ypos has been added
933 public boolean hasYpos()
935 return this._has_ypos;
939 * Returns the value of field 'conservationSelected'.
941 * @return the value of field 'ConservationSelected'.
943 public boolean isConservationSelected()
945 return this._conservationSelected;
949 * Returns the value of field 'pidSelected'.
951 * @return the value of field 'PidSelected'.
953 public boolean isPidSelected()
955 return this._pidSelected;
959 * Returns the value of field 'renderGaps'.
961 * @return the value of field 'RenderGaps'.
963 public boolean isRenderGaps()
965 return this._renderGaps;
969 * Returns the value of field 'showAnnotation'.
971 * @return the value of field 'ShowAnnotation'.
973 public boolean isShowAnnotation()
975 return this._showAnnotation;
979 * Returns the value of field 'showBoxes'.
981 * @return the value of field 'ShowBoxes'.
983 public boolean isShowBoxes()
985 return this._showBoxes;
989 * Returns the value of field 'showColourText'.
991 * @return the value of field 'ShowColourText'.
993 public boolean isShowColourText()
995 return this._showColourText;
999 * Returns the value of field 'showConservation'.
1001 * @return the value of field 'ShowConservation'.
1003 public boolean isShowConservation()
1005 return this._showConservation;
1009 * Returns the value of field 'showFullId'.
1011 * @return the value of field 'ShowFullId'.
1013 public boolean isShowFullId()
1015 return this._showFullId;
1019 * Returns the value of field 'showIdentity'.
1021 * @return the value of field 'ShowIdentity'.
1023 public boolean isShowIdentity()
1025 return this._showIdentity;
1029 * Returns the value of field 'showQuality'.
1031 * @return the value of field 'ShowQuality'.
1033 public boolean isShowQuality()
1035 return this._showQuality;
1039 * Returns the value of field 'showSequenceFeatures'.
1041 * @return the value of field 'ShowSequenceFeatures'.
1043 public boolean isShowSequenceFeatures()
1045 return this._showSequenceFeatures;
1049 * Returns the value of field 'showText'.
1051 * @return the value of field 'ShowText'.
1053 public boolean isShowText()
1055 return this._showText;
1061 * @return true if this object is valid according to the schema
1063 public boolean isValid()
1068 } catch (org.exolab.castor.xml.ValidationException vex)
1076 * Returns the value of field 'wrapAlignment'.
1078 * @return the value of field 'WrapAlignment'.
1080 public boolean isWrapAlignment()
1082 return this._wrapAlignment;
1089 * @throws org.exolab.castor.xml.MarshalException
1090 * if object is null or if any SAXException is thrown during
1092 * @throws org.exolab.castor.xml.ValidationException
1093 * if this object is an invalid instance according to the schema
1095 public void marshal(final java.io.Writer out)
1096 throws org.exolab.castor.xml.MarshalException,
1097 org.exolab.castor.xml.ValidationException
1099 Marshaller.marshal(this, out);
1106 * @throws java.io.IOException
1107 * if an IOException occurs during marshaling
1108 * @throws org.exolab.castor.xml.ValidationException
1109 * if this object is an invalid instance according to the schema
1110 * @throws org.exolab.castor.xml.MarshalException
1111 * if object is null or if any SAXException is thrown during
1114 public void marshal(final org.xml.sax.ContentHandler handler)
1115 throws java.io.IOException,
1116 org.exolab.castor.xml.MarshalException,
1117 org.exolab.castor.xml.ValidationException
1119 Marshaller.marshal(this, handler);
1123 * Sets the value of field 'bgColour'.
1126 * the value of field 'bgColour'.
1128 public void setBgColour(final java.lang.String bgColour)
1130 this._bgColour = bgColour;
1134 * Sets the value of field 'consThreshold'.
1136 * @param consThreshold
1137 * the value of field 'consThreshold'.
1139 public void setConsThreshold(final int consThreshold)
1141 this._consThreshold = consThreshold;
1142 this._has_consThreshold = true;
1146 * Sets the value of field 'conservationSelected'.
1148 * @param conservationSelected
1149 * the value of field 'conservationSelected'.
1151 public void setConservationSelected(final boolean conservationSelected)
1153 this._conservationSelected = conservationSelected;
1154 this._has_conservationSelected = true;
1158 * Sets the value of field 'fontName'.
1161 * the value of field 'fontName'.
1163 public void setFontName(final java.lang.String fontName)
1165 this._fontName = fontName;
1169 * Sets the value of field 'fontSize'.
1172 * the value of field 'fontSize'.
1174 public void setFontSize(final int fontSize)
1176 this._fontSize = fontSize;
1177 this._has_fontSize = true;
1181 * Sets the value of field 'fontStyle'.
1184 * the value of field 'fontStyle'.
1186 public void setFontStyle(final int fontStyle)
1188 this._fontStyle = fontStyle;
1189 this._has_fontStyle = true;
1193 * Sets the value of field 'height'.
1196 * the value of field 'height'.
1198 public void setHeight(final int height)
1200 this._height = height;
1201 this._has_height = true;
1205 * Sets the value of field 'pidSelected'.
1207 * @param pidSelected
1208 * the value of field 'pidSelected'.
1210 public void setPidSelected(final boolean pidSelected)
1212 this._pidSelected = pidSelected;
1213 this._has_pidSelected = true;
1217 * Sets the value of field 'pidThreshold'.
1219 * @param pidThreshold
1220 * the value of field 'pidThreshold'.
1222 public void setPidThreshold(final int pidThreshold)
1224 this._pidThreshold = pidThreshold;
1225 this._has_pidThreshold = true;
1229 * Sets the value of field 'renderGaps'.
1232 * the value of field 'renderGaps'.
1234 public void setRenderGaps(final boolean renderGaps)
1236 this._renderGaps = renderGaps;
1237 this._has_renderGaps = true;
1241 * Sets the value of field 'showAnnotation'.
1243 * @param showAnnotation
1244 * the value of field 'showAnnotation'.
1246 public void setShowAnnotation(final boolean showAnnotation)
1248 this._showAnnotation = showAnnotation;
1249 this._has_showAnnotation = true;
1253 * Sets the value of field 'showBoxes'.
1256 * the value of field 'showBoxes'.
1258 public void setShowBoxes(final boolean showBoxes)
1260 this._showBoxes = showBoxes;
1261 this._has_showBoxes = true;
1265 * Sets the value of field 'showColourText'.
1267 * @param showColourText
1268 * the value of field 'showColourText'.
1270 public void setShowColourText(final boolean showColourText)
1272 this._showColourText = showColourText;
1273 this._has_showColourText = true;
1277 * Sets the value of field 'showConservation'.
1279 * @param showConservation
1280 * the value of field 'showConservation'
1282 public void setShowConservation(final boolean showConservation)
1284 this._showConservation = showConservation;
1285 this._has_showConservation = true;
1289 * Sets the value of field 'showFullId'.
1292 * the value of field 'showFullId'.
1294 public void setShowFullId(final boolean showFullId)
1296 this._showFullId = showFullId;
1297 this._has_showFullId = true;
1301 * Sets the value of field 'showIdentity'.
1303 * @param showIdentity
1304 * the value of field 'showIdentity'.
1306 public void setShowIdentity(final boolean showIdentity)
1308 this._showIdentity = showIdentity;
1309 this._has_showIdentity = true;
1313 * Sets the value of field 'showQuality'.
1315 * @param showQuality
1316 * the value of field 'showQuality'.
1318 public void setShowQuality(final boolean showQuality)
1320 this._showQuality = showQuality;
1321 this._has_showQuality = true;
1325 * Sets the value of field 'showSequenceFeatures'.
1327 * @param showSequenceFeatures
1328 * the value of field 'showSequenceFeatures'.
1330 public void setShowSequenceFeatures(final boolean showSequenceFeatures)
1332 this._showSequenceFeatures = showSequenceFeatures;
1333 this._has_showSequenceFeatures = true;
1337 * Sets the value of field 'showText'.
1340 * the value of field 'showText'.
1342 public void setShowText(final boolean showText)
1344 this._showText = showText;
1345 this._has_showText = true;
1349 * Sets the value of field 'startRes'.
1352 * the value of field 'startRes'.
1354 public void setStartRes(final int startRes)
1356 this._startRes = startRes;
1357 this._has_startRes = true;
1361 * Sets the value of field 'startSeq'.
1364 * the value of field 'startSeq'.
1366 public void setStartSeq(final int startSeq)
1368 this._startSeq = startSeq;
1369 this._has_startSeq = true;
1373 * Sets the value of field 'title'.
1376 * the value of field 'title'.
1378 public void setTitle(final java.lang.String title)
1380 this._title = title;
1384 * Sets the value of field 'width'.
1387 * the value of field 'width'.
1389 public void setWidth(final int width)
1391 this._width = width;
1392 this._has_width = true;
1396 * Sets the value of field 'wrapAlignment'.
1398 * @param wrapAlignment
1399 * the value of field 'wrapAlignment'.
1401 public void setWrapAlignment(final boolean wrapAlignment)
1403 this._wrapAlignment = wrapAlignment;
1404 this._has_wrapAlignment = true;
1408 * Sets the value of field 'xpos'.
1411 * the value of field 'xpos'.
1413 public void setXpos(final int xpos)
1416 this._has_xpos = true;
1420 * Sets the value of field 'ypos'.
1423 * the value of field 'ypos'.
1425 public void setYpos(final int ypos)
1428 this._has_ypos = true;
1435 * @throws org.exolab.castor.xml.MarshalException
1436 * if object is null or if any SAXException is thrown during
1438 * @throws org.exolab.castor.xml.ValidationException
1439 * if this object is an invalid instance according to the schema
1440 * @return the unmarshaled jalview.binding.Viewport
1442 public static jalview.binding.Viewport unmarshal(
1443 final java.io.Reader reader)
1444 throws org.exolab.castor.xml.MarshalException,
1445 org.exolab.castor.xml.ValidationException
1447 return (jalview.binding.Viewport) Unmarshaller.unmarshal(
1448 jalview.binding.Viewport.class, reader);
1454 * @throws org.exolab.castor.xml.ValidationException
1455 * if this object is an invalid instance according to the schema
1457 public void validate() throws org.exolab.castor.xml.ValidationException
1459 org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
1460 validator.validate(this);