1 /*******************************************************************************
2 * Jalview - A Sequence Alignment Editor and Viewer ($$Version-Rel$$)
3 * Copyright (C) $(date) The Jalview Authors
5 * This file is part of Jalview.
7 * Jalview is free software: you can redistribute it and/or
8 * modify it under the terms of the GNU General Public License
9 * as published by the Free Software Foundation, either version 3
10 * of the License, or (at your option) any later version.
12 * Jalview is distributed in the hope that it will be useful, but
13 * WITHOUT ANY WARRANTY; without even the implied warranty
14 * of MERCHANTABILITY or FITNESS FOR A PARTICULAR
15 * PURPOSE. See the GNU General Public License for more details.
17 * You should have received a copy of the GNU General Public License
18 * along with Jalview. If not, see <http://www.gnu.org/licenses/>.
19 * The Jalview Authors are detailed in the 'AUTHORS' file.
20 *******************************************************************************/
22 * This class was automatically generated with
23 * <a href="http://www.castor.org">Castor 1.1</a>, using an XML
28 package jalview.binding;
30 //---------------------------------/
31 //- Imported classes and packages -/
32 //---------------------------------/
34 import org.exolab.castor.xml.Marshaller;
35 import org.exolab.castor.xml.Unmarshaller;
40 * @version $Revision$ $Date$
42 public class Viewport implements java.io.Serializable
45 // --------------------------/
46 // - Class/Member Variables -/
47 // --------------------------/
50 * Field _conservationSelected.
52 private boolean _conservationSelected;
55 * keeps track of state for field: _conservationSelected
57 private boolean _has_conservationSelected;
62 private boolean _pidSelected;
65 * keeps track of state for field: _pidSelected
67 private boolean _has_pidSelected;
72 private java.lang.String _bgColour;
75 * Field _consThreshold.
77 private int _consThreshold;
80 * keeps track of state for field: _consThreshold
82 private boolean _has_consThreshold;
85 * Field _pidThreshold.
87 private int _pidThreshold;
90 * keeps track of state for field: _pidThreshold
92 private boolean _has_pidThreshold;
97 private java.lang.String _title;
102 private boolean _showFullId;
105 * keeps track of state for field: _showFullId
107 private boolean _has_showFullId;
112 private boolean _showText;
115 * keeps track of state for field: _showText
117 private boolean _has_showText;
120 * Field _showColourText.
122 private boolean _showColourText;
125 * keeps track of state for field: _showColourText
127 private boolean _has_showColourText;
132 private boolean _showBoxes;
135 * keeps track of state for field: _showBoxes
137 private boolean _has_showBoxes;
140 * Field _wrapAlignment.
142 private boolean _wrapAlignment;
145 * keeps track of state for field: _wrapAlignment
147 private boolean _has_wrapAlignment;
152 private boolean _renderGaps;
155 * keeps track of state for field: _renderGaps
157 private boolean _has_renderGaps;
160 * Field _showSequenceFeatures.
162 private boolean _showSequenceFeatures;
165 * keeps track of state for field: _showSequenceFeatures
167 private boolean _has_showSequenceFeatures;
170 * Field _showAnnotation.
172 private boolean _showAnnotation;
175 * keeps track of state for field: _showAnnotation
177 private boolean _has_showAnnotation;
180 * Field _showConservation.
182 private boolean _showConservation;
185 * keeps track of state for field: _showConservation
187 private boolean _has_showConservation;
190 * Field _showQuality.
192 private boolean _showQuality;
195 * keeps track of state for field: _showQuality
197 private boolean _has_showQuality;
200 * Field _showIdentity.
202 private boolean _showIdentity;
205 * keeps track of state for field: _showIdentity
207 private boolean _has_showIdentity;
215 * keeps track of state for field: _xpos
217 private boolean _has_xpos;
225 * keeps track of state for field: _ypos
227 private boolean _has_ypos;
235 * keeps track of state for field: _width
237 private boolean _has_width;
245 * keeps track of state for field: _height
247 private boolean _has_height;
252 private int _startRes;
255 * keeps track of state for field: _startRes
257 private boolean _has_startRes;
262 private int _startSeq;
265 * keeps track of state for field: _startSeq
267 private boolean _has_startSeq;
272 private java.lang.String _fontName;
277 private int _fontSize;
280 * keeps track of state for field: _fontSize
282 private boolean _has_fontSize;
287 private int _fontStyle;
290 * keeps track of state for field: _fontStyle
292 private boolean _has_fontStyle;
309 public void deleteConsThreshold()
311 this._has_consThreshold = false;
316 public void deleteConservationSelected()
318 this._has_conservationSelected = false;
323 public void deleteFontSize()
325 this._has_fontSize = false;
330 public void deleteFontStyle()
332 this._has_fontStyle = false;
337 public void deleteHeight()
339 this._has_height = false;
344 public void deletePidSelected()
346 this._has_pidSelected = false;
351 public void deletePidThreshold()
353 this._has_pidThreshold = false;
358 public void deleteRenderGaps()
360 this._has_renderGaps = false;
365 public void deleteShowAnnotation()
367 this._has_showAnnotation = false;
372 public void deleteShowBoxes()
374 this._has_showBoxes = false;
379 public void deleteShowColourText()
381 this._has_showColourText = false;
386 public void deleteShowConservation()
388 this._has_showConservation = false;
393 public void deleteShowFullId()
395 this._has_showFullId = false;
400 public void deleteShowIdentity()
402 this._has_showIdentity = false;
407 public void deleteShowQuality()
409 this._has_showQuality = false;
414 public void deleteShowSequenceFeatures()
416 this._has_showSequenceFeatures = false;
421 public void deleteShowText()
423 this._has_showText = false;
428 public void deleteStartRes()
430 this._has_startRes = false;
435 public void deleteStartSeq()
437 this._has_startSeq = false;
442 public void deleteWidth()
444 this._has_width = false;
449 public void deleteWrapAlignment()
451 this._has_wrapAlignment = false;
456 public void deleteXpos()
458 this._has_xpos = false;
463 public void deleteYpos()
465 this._has_ypos = false;
469 * Returns the value of field 'bgColour'.
471 * @return the value of field 'BgColour'.
473 public java.lang.String getBgColour()
475 return this._bgColour;
479 * Returns the value of field 'consThreshold'.
481 * @return the value of field 'ConsThreshold'.
483 public int getConsThreshold()
485 return this._consThreshold;
489 * Returns the value of field 'conservationSelected'.
491 * @return the value of field 'ConservationSelected'.
493 public boolean getConservationSelected()
495 return this._conservationSelected;
499 * Returns the value of field 'fontName'.
501 * @return the value of field 'FontName'.
503 public java.lang.String getFontName()
505 return this._fontName;
509 * Returns the value of field 'fontSize'.
511 * @return the value of field 'FontSize'.
513 public int getFontSize()
515 return this._fontSize;
519 * Returns the value of field 'fontStyle'.
521 * @return the value of field 'FontStyle'.
523 public int getFontStyle()
525 return this._fontStyle;
529 * Returns the value of field 'height'.
531 * @return the value of field 'Height'.
533 public int getHeight()
539 * Returns the value of field 'pidSelected'.
541 * @return the value of field 'PidSelected'.
543 public boolean getPidSelected()
545 return this._pidSelected;
549 * Returns the value of field 'pidThreshold'.
551 * @return the value of field 'PidThreshold'.
553 public int getPidThreshold()
555 return this._pidThreshold;
559 * Returns the value of field 'renderGaps'.
561 * @return the value of field 'RenderGaps'.
563 public boolean getRenderGaps()
565 return this._renderGaps;
569 * Returns the value of field 'showAnnotation'.
571 * @return the value of field 'ShowAnnotation'.
573 public boolean getShowAnnotation()
575 return this._showAnnotation;
579 * Returns the value of field 'showBoxes'.
581 * @return the value of field 'ShowBoxes'.
583 public boolean getShowBoxes()
585 return this._showBoxes;
589 * Returns the value of field 'showColourText'.
591 * @return the value of field 'ShowColourText'.
593 public boolean getShowColourText()
595 return this._showColourText;
599 * Returns the value of field 'showConservation'.
601 * @return the value of field 'ShowConservation'.
603 public boolean getShowConservation()
605 return this._showConservation;
609 * Returns the value of field 'showFullId'.
611 * @return the value of field 'ShowFullId'.
613 public boolean getShowFullId()
615 return this._showFullId;
619 * Returns the value of field 'showIdentity'.
621 * @return the value of field 'ShowIdentity'.
623 public boolean getShowIdentity()
625 return this._showIdentity;
629 * Returns the value of field 'showQuality'.
631 * @return the value of field 'ShowQuality'.
633 public boolean getShowQuality()
635 return this._showQuality;
639 * Returns the value of field 'showSequenceFeatures'.
641 * @return the value of field 'ShowSequenceFeatures'.
643 public boolean getShowSequenceFeatures()
645 return this._showSequenceFeatures;
649 * Returns the value of field 'showText'.
651 * @return the value of field 'ShowText'.
653 public boolean getShowText()
655 return this._showText;
659 * Returns the value of field 'startRes'.
661 * @return the value of field 'StartRes'.
663 public int getStartRes()
665 return this._startRes;
669 * Returns the value of field 'startSeq'.
671 * @return the value of field 'StartSeq'.
673 public int getStartSeq()
675 return this._startSeq;
679 * Returns the value of field 'title'.
681 * @return the value of field 'Title'.
683 public java.lang.String getTitle()
689 * Returns the value of field 'width'.
691 * @return the value of field 'Width'.
693 public int getWidth()
699 * Returns the value of field 'wrapAlignment'.
701 * @return the value of field 'WrapAlignment'.
703 public boolean getWrapAlignment()
705 return this._wrapAlignment;
709 * Returns the value of field 'xpos'.
711 * @return the value of field 'Xpos'.
719 * Returns the value of field 'ypos'.
721 * @return the value of field 'Ypos'.
729 * Method hasConsThreshold.
731 * @return true if at least one ConsThreshold has been added
733 public boolean hasConsThreshold()
735 return this._has_consThreshold;
739 * Method hasConservationSelected.
741 * @return true if at least one ConservationSelected has been added
743 public boolean hasConservationSelected()
745 return this._has_conservationSelected;
749 * Method hasFontSize.
751 * @return true if at least one FontSize has been added
753 public boolean hasFontSize()
755 return this._has_fontSize;
759 * Method hasFontStyle.
761 * @return true if at least one FontStyle has been added
763 public boolean hasFontStyle()
765 return this._has_fontStyle;
771 * @return true if at least one Height has been added
773 public boolean hasHeight()
775 return this._has_height;
779 * Method hasPidSelected.
781 * @return true if at least one PidSelected has been added
783 public boolean hasPidSelected()
785 return this._has_pidSelected;
789 * Method hasPidThreshold.
791 * @return true if at least one PidThreshold has been added
793 public boolean hasPidThreshold()
795 return this._has_pidThreshold;
799 * Method hasRenderGaps.
801 * @return true if at least one RenderGaps has been added
803 public boolean hasRenderGaps()
805 return this._has_renderGaps;
809 * Method hasShowAnnotation.
811 * @return true if at least one ShowAnnotation has been added
813 public boolean hasShowAnnotation()
815 return this._has_showAnnotation;
819 * Method hasShowBoxes.
821 * @return true if at least one ShowBoxes has been added
823 public boolean hasShowBoxes()
825 return this._has_showBoxes;
829 * Method hasShowColourText.
831 * @return true if at least one ShowColourText has been added
833 public boolean hasShowColourText()
835 return this._has_showColourText;
839 * Method hasShowConservation.
841 * @return true if at least one ShowConservation has been added
843 public boolean hasShowConservation()
845 return this._has_showConservation;
849 * Method hasShowFullId.
851 * @return true if at least one ShowFullId has been added
853 public boolean hasShowFullId()
855 return this._has_showFullId;
859 * Method hasShowIdentity.
861 * @return true if at least one ShowIdentity has been added
863 public boolean hasShowIdentity()
865 return this._has_showIdentity;
869 * Method hasShowQuality.
871 * @return true if at least one ShowQuality has been added
873 public boolean hasShowQuality()
875 return this._has_showQuality;
879 * Method hasShowSequenceFeatures.
881 * @return true if at least one ShowSequenceFeatures has been added
883 public boolean hasShowSequenceFeatures()
885 return this._has_showSequenceFeatures;
889 * Method hasShowText.
891 * @return true if at least one ShowText has been added
893 public boolean hasShowText()
895 return this._has_showText;
899 * Method hasStartRes.
901 * @return true if at least one StartRes has been added
903 public boolean hasStartRes()
905 return this._has_startRes;
909 * Method hasStartSeq.
911 * @return true if at least one StartSeq has been added
913 public boolean hasStartSeq()
915 return this._has_startSeq;
921 * @return true if at least one Width has been added
923 public boolean hasWidth()
925 return this._has_width;
929 * Method hasWrapAlignment.
931 * @return true if at least one WrapAlignment has been added
933 public boolean hasWrapAlignment()
935 return this._has_wrapAlignment;
941 * @return true if at least one Xpos has been added
943 public boolean hasXpos()
945 return this._has_xpos;
951 * @return true if at least one Ypos has been added
953 public boolean hasYpos()
955 return this._has_ypos;
959 * Returns the value of field 'conservationSelected'.
961 * @return the value of field 'ConservationSelected'.
963 public boolean isConservationSelected()
965 return this._conservationSelected;
969 * Returns the value of field 'pidSelected'.
971 * @return the value of field 'PidSelected'.
973 public boolean isPidSelected()
975 return this._pidSelected;
979 * Returns the value of field 'renderGaps'.
981 * @return the value of field 'RenderGaps'.
983 public boolean isRenderGaps()
985 return this._renderGaps;
989 * Returns the value of field 'showAnnotation'.
991 * @return the value of field 'ShowAnnotation'.
993 public boolean isShowAnnotation()
995 return this._showAnnotation;
999 * Returns the value of field 'showBoxes'.
1001 * @return the value of field 'ShowBoxes'.
1003 public boolean isShowBoxes()
1005 return this._showBoxes;
1009 * Returns the value of field 'showColourText'.
1011 * @return the value of field 'ShowColourText'.
1013 public boolean isShowColourText()
1015 return this._showColourText;
1019 * Returns the value of field 'showConservation'.
1021 * @return the value of field 'ShowConservation'.
1023 public boolean isShowConservation()
1025 return this._showConservation;
1029 * Returns the value of field 'showFullId'.
1031 * @return the value of field 'ShowFullId'.
1033 public boolean isShowFullId()
1035 return this._showFullId;
1039 * Returns the value of field 'showIdentity'.
1041 * @return the value of field 'ShowIdentity'.
1043 public boolean isShowIdentity()
1045 return this._showIdentity;
1049 * Returns the value of field 'showQuality'.
1051 * @return the value of field 'ShowQuality'.
1053 public boolean isShowQuality()
1055 return this._showQuality;
1059 * Returns the value of field 'showSequenceFeatures'.
1061 * @return the value of field 'ShowSequenceFeatures'.
1063 public boolean isShowSequenceFeatures()
1065 return this._showSequenceFeatures;
1069 * Returns the value of field 'showText'.
1071 * @return the value of field 'ShowText'.
1073 public boolean isShowText()
1075 return this._showText;
1081 * @return true if this object is valid according to the schema
1083 public boolean isValid()
1088 } catch (org.exolab.castor.xml.ValidationException vex)
1096 * Returns the value of field 'wrapAlignment'.
1098 * @return the value of field 'WrapAlignment'.
1100 public boolean isWrapAlignment()
1102 return this._wrapAlignment;
1109 * @throws org.exolab.castor.xml.MarshalException
1110 * if object is null or if any SAXException is thrown during
1112 * @throws org.exolab.castor.xml.ValidationException
1113 * if this object is an invalid instance according to the schema
1115 public void marshal(final java.io.Writer out)
1116 throws org.exolab.castor.xml.MarshalException,
1117 org.exolab.castor.xml.ValidationException
1119 Marshaller.marshal(this, out);
1126 * @throws java.io.IOException
1127 * if an IOException occurs during marshaling
1128 * @throws org.exolab.castor.xml.ValidationException
1129 * if this object is an invalid instance according to the schema
1130 * @throws org.exolab.castor.xml.MarshalException
1131 * if object is null or if any SAXException is thrown during
1134 public void marshal(final org.xml.sax.ContentHandler handler)
1135 throws java.io.IOException,
1136 org.exolab.castor.xml.MarshalException,
1137 org.exolab.castor.xml.ValidationException
1139 Marshaller.marshal(this, handler);
1143 * Sets the value of field 'bgColour'.
1146 * the value of field 'bgColour'.
1148 public void setBgColour(final java.lang.String bgColour)
1150 this._bgColour = bgColour;
1154 * Sets the value of field 'consThreshold'.
1156 * @param consThreshold
1157 * the value of field 'consThreshold'.
1159 public void setConsThreshold(final int consThreshold)
1161 this._consThreshold = consThreshold;
1162 this._has_consThreshold = true;
1166 * Sets the value of field 'conservationSelected'.
1168 * @param conservationSelected
1169 * the value of field 'conservationSelected'.
1171 public void setConservationSelected(final boolean conservationSelected)
1173 this._conservationSelected = conservationSelected;
1174 this._has_conservationSelected = true;
1178 * Sets the value of field 'fontName'.
1181 * the value of field 'fontName'.
1183 public void setFontName(final java.lang.String fontName)
1185 this._fontName = fontName;
1189 * Sets the value of field 'fontSize'.
1192 * the value of field 'fontSize'.
1194 public void setFontSize(final int fontSize)
1196 this._fontSize = fontSize;
1197 this._has_fontSize = true;
1201 * Sets the value of field 'fontStyle'.
1204 * the value of field 'fontStyle'.
1206 public void setFontStyle(final int fontStyle)
1208 this._fontStyle = fontStyle;
1209 this._has_fontStyle = true;
1213 * Sets the value of field 'height'.
1216 * the value of field 'height'.
1218 public void setHeight(final int height)
1220 this._height = height;
1221 this._has_height = true;
1225 * Sets the value of field 'pidSelected'.
1227 * @param pidSelected
1228 * the value of field 'pidSelected'.
1230 public void setPidSelected(final boolean pidSelected)
1232 this._pidSelected = pidSelected;
1233 this._has_pidSelected = true;
1237 * Sets the value of field 'pidThreshold'.
1239 * @param pidThreshold
1240 * the value of field 'pidThreshold'.
1242 public void setPidThreshold(final int pidThreshold)
1244 this._pidThreshold = pidThreshold;
1245 this._has_pidThreshold = true;
1249 * Sets the value of field 'renderGaps'.
1252 * the value of field 'renderGaps'.
1254 public void setRenderGaps(final boolean renderGaps)
1256 this._renderGaps = renderGaps;
1257 this._has_renderGaps = true;
1261 * Sets the value of field 'showAnnotation'.
1263 * @param showAnnotation
1264 * the value of field 'showAnnotation'.
1266 public void setShowAnnotation(final boolean showAnnotation)
1268 this._showAnnotation = showAnnotation;
1269 this._has_showAnnotation = true;
1273 * Sets the value of field 'showBoxes'.
1276 * the value of field 'showBoxes'.
1278 public void setShowBoxes(final boolean showBoxes)
1280 this._showBoxes = showBoxes;
1281 this._has_showBoxes = true;
1285 * Sets the value of field 'showColourText'.
1287 * @param showColourText
1288 * the value of field 'showColourText'.
1290 public void setShowColourText(final boolean showColourText)
1292 this._showColourText = showColourText;
1293 this._has_showColourText = true;
1297 * Sets the value of field 'showConservation'.
1299 * @param showConservation
1300 * the value of field 'showConservation'
1302 public void setShowConservation(final boolean showConservation)
1304 this._showConservation = showConservation;
1305 this._has_showConservation = true;
1309 * Sets the value of field 'showFullId'.
1312 * the value of field 'showFullId'.
1314 public void setShowFullId(final boolean showFullId)
1316 this._showFullId = showFullId;
1317 this._has_showFullId = true;
1321 * Sets the value of field 'showIdentity'.
1323 * @param showIdentity
1324 * the value of field 'showIdentity'.
1326 public void setShowIdentity(final boolean showIdentity)
1328 this._showIdentity = showIdentity;
1329 this._has_showIdentity = true;
1333 * Sets the value of field 'showQuality'.
1335 * @param showQuality
1336 * the value of field 'showQuality'.
1338 public void setShowQuality(final boolean showQuality)
1340 this._showQuality = showQuality;
1341 this._has_showQuality = true;
1345 * Sets the value of field 'showSequenceFeatures'.
1347 * @param showSequenceFeatures
1348 * the value of field 'showSequenceFeatures'.
1350 public void setShowSequenceFeatures(final boolean showSequenceFeatures)
1352 this._showSequenceFeatures = showSequenceFeatures;
1353 this._has_showSequenceFeatures = true;
1357 * Sets the value of field 'showText'.
1360 * the value of field 'showText'.
1362 public void setShowText(final boolean showText)
1364 this._showText = showText;
1365 this._has_showText = true;
1369 * Sets the value of field 'startRes'.
1372 * the value of field 'startRes'.
1374 public void setStartRes(final int startRes)
1376 this._startRes = startRes;
1377 this._has_startRes = true;
1381 * Sets the value of field 'startSeq'.
1384 * the value of field 'startSeq'.
1386 public void setStartSeq(final int startSeq)
1388 this._startSeq = startSeq;
1389 this._has_startSeq = true;
1393 * Sets the value of field 'title'.
1396 * the value of field 'title'.
1398 public void setTitle(final java.lang.String title)
1400 this._title = title;
1404 * Sets the value of field 'width'.
1407 * the value of field 'width'.
1409 public void setWidth(final int width)
1411 this._width = width;
1412 this._has_width = true;
1416 * Sets the value of field 'wrapAlignment'.
1418 * @param wrapAlignment
1419 * the value of field 'wrapAlignment'.
1421 public void setWrapAlignment(final boolean wrapAlignment)
1423 this._wrapAlignment = wrapAlignment;
1424 this._has_wrapAlignment = true;
1428 * Sets the value of field 'xpos'.
1431 * the value of field 'xpos'.
1433 public void setXpos(final int xpos)
1436 this._has_xpos = true;
1440 * Sets the value of field 'ypos'.
1443 * the value of field 'ypos'.
1445 public void setYpos(final int ypos)
1448 this._has_ypos = true;
1455 * @throws org.exolab.castor.xml.MarshalException
1456 * if object is null or if any SAXException is thrown during
1458 * @throws org.exolab.castor.xml.ValidationException
1459 * if this object is an invalid instance according to the schema
1460 * @return the unmarshaled jalview.binding.Viewport
1462 public static jalview.binding.Viewport unmarshal(
1463 final java.io.Reader reader)
1464 throws org.exolab.castor.xml.MarshalException,
1465 org.exolab.castor.xml.ValidationException
1467 return (jalview.binding.Viewport) Unmarshaller
1468 .unmarshal(jalview.binding.Viewport.class, reader);
1474 * @throws org.exolab.castor.xml.ValidationException
1475 * if this object is an invalid instance according to the schema
1477 public void validate() throws org.exolab.castor.xml.ValidationException
1479 org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
1480 validator.validate(this);