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;
290 public void deleteConsThreshold(
292 this._has_consThreshold= false;
297 public void deleteConservationSelected(
299 this._has_conservationSelected= false;
304 public void deleteFontSize(
306 this._has_fontSize= false;
311 public void deleteFontStyle(
313 this._has_fontStyle= false;
318 public void deleteHeight(
320 this._has_height= false;
325 public void deletePidSelected(
327 this._has_pidSelected= false;
332 public void deletePidThreshold(
334 this._has_pidThreshold= false;
339 public void deleteRenderGaps(
341 this._has_renderGaps= false;
346 public void deleteShowAnnotation(
348 this._has_showAnnotation= false;
353 public void deleteShowBoxes(
355 this._has_showBoxes= false;
360 public void deleteShowColourText(
362 this._has_showColourText= false;
367 public void deleteShowConservation(
369 this._has_showConservation= false;
374 public void deleteShowFullId(
376 this._has_showFullId= false;
381 public void deleteShowIdentity(
383 this._has_showIdentity= false;
388 public void deleteShowQuality(
390 this._has_showQuality= false;
395 public void deleteShowSequenceFeatures(
397 this._has_showSequenceFeatures= false;
402 public void deleteShowText(
404 this._has_showText= false;
409 public void deleteStartRes(
411 this._has_startRes= false;
416 public void deleteStartSeq(
418 this._has_startSeq= false;
423 public void deleteWidth(
425 this._has_width= false;
430 public void deleteWrapAlignment(
432 this._has_wrapAlignment= false;
437 public void deleteXpos(
439 this._has_xpos= false;
444 public void deleteYpos(
446 this._has_ypos= false;
450 * Returns the value of field 'bgColour'.
452 * @return the value of field 'BgColour'.
454 public java.lang.String getBgColour(
456 return this._bgColour;
460 * Returns the value of field 'consThreshold'.
462 * @return the value of field 'ConsThreshold'.
464 public int getConsThreshold(
466 return this._consThreshold;
470 * Returns the value of field 'conservationSelected'.
472 * @return the value of field 'ConservationSelected'.
474 public boolean getConservationSelected(
476 return this._conservationSelected;
480 * Returns the value of field 'fontName'.
482 * @return the value of field 'FontName'.
484 public java.lang.String getFontName(
486 return this._fontName;
490 * Returns the value of field 'fontSize'.
492 * @return the value of field 'FontSize'.
494 public int getFontSize(
496 return this._fontSize;
500 * Returns the value of field 'fontStyle'.
502 * @return the value of field 'FontStyle'.
504 public int getFontStyle(
506 return this._fontStyle;
510 * Returns the value of field 'height'.
512 * @return the value of field 'Height'.
514 public int getHeight(
520 * Returns the value of field 'pidSelected'.
522 * @return the value of field 'PidSelected'.
524 public boolean getPidSelected(
526 return this._pidSelected;
530 * Returns the value of field 'pidThreshold'.
532 * @return the value of field 'PidThreshold'.
534 public int getPidThreshold(
536 return this._pidThreshold;
540 * Returns the value of field 'renderGaps'.
542 * @return the value of field 'RenderGaps'.
544 public boolean getRenderGaps(
546 return this._renderGaps;
550 * Returns the value of field 'showAnnotation'.
552 * @return the value of field 'ShowAnnotation'.
554 public boolean getShowAnnotation(
556 return this._showAnnotation;
560 * Returns the value of field 'showBoxes'.
562 * @return the value of field 'ShowBoxes'.
564 public boolean getShowBoxes(
566 return this._showBoxes;
570 * Returns the value of field 'showColourText'.
572 * @return the value of field 'ShowColourText'.
574 public boolean getShowColourText(
576 return this._showColourText;
580 * Returns the value of field 'showConservation'.
582 * @return the value of field 'ShowConservation'.
584 public boolean getShowConservation(
586 return this._showConservation;
590 * Returns the value of field 'showFullId'.
592 * @return the value of field 'ShowFullId'.
594 public boolean getShowFullId(
596 return this._showFullId;
600 * Returns the value of field 'showIdentity'.
602 * @return the value of field 'ShowIdentity'.
604 public boolean getShowIdentity(
606 return this._showIdentity;
610 * Returns the value of field 'showQuality'.
612 * @return the value of field 'ShowQuality'.
614 public boolean getShowQuality(
616 return this._showQuality;
620 * Returns the value of field 'showSequenceFeatures'.
622 * @return the value of field 'ShowSequenceFeatures'.
624 public boolean getShowSequenceFeatures(
626 return this._showSequenceFeatures;
630 * Returns the value of field 'showText'.
632 * @return the value of field 'ShowText'.
634 public boolean getShowText(
636 return this._showText;
640 * Returns the value of field 'startRes'.
642 * @return the value of field 'StartRes'.
644 public int getStartRes(
646 return this._startRes;
650 * Returns the value of field 'startSeq'.
652 * @return the value of field 'StartSeq'.
654 public int getStartSeq(
656 return this._startSeq;
660 * Returns the value of field 'title'.
662 * @return the value of field 'Title'.
664 public java.lang.String getTitle(
670 * Returns the value of field 'width'.
672 * @return the value of field 'Width'.
680 * Returns the value of field 'wrapAlignment'.
682 * @return the value of field 'WrapAlignment'.
684 public boolean getWrapAlignment(
686 return this._wrapAlignment;
690 * Returns the value of field 'xpos'.
692 * @return the value of field 'Xpos'.
700 * Returns the value of field 'ypos'.
702 * @return the value of field 'Ypos'.
710 * Method hasConsThreshold.
712 * @return true if at least one ConsThreshold has been added
714 public boolean hasConsThreshold(
716 return this._has_consThreshold;
720 * Method hasConservationSelected.
722 * @return true if at least one ConservationSelected has been
725 public boolean hasConservationSelected(
727 return this._has_conservationSelected;
731 * Method hasFontSize.
733 * @return true if at least one FontSize has been added
735 public boolean hasFontSize(
737 return this._has_fontSize;
741 * Method hasFontStyle.
743 * @return true if at least one FontStyle has been added
745 public boolean hasFontStyle(
747 return this._has_fontStyle;
753 * @return true if at least one Height has been added
755 public boolean hasHeight(
757 return this._has_height;
761 * Method hasPidSelected.
763 * @return true if at least one PidSelected has been added
765 public boolean hasPidSelected(
767 return this._has_pidSelected;
771 * Method hasPidThreshold.
773 * @return true if at least one PidThreshold has been added
775 public boolean hasPidThreshold(
777 return this._has_pidThreshold;
781 * Method hasRenderGaps.
783 * @return true if at least one RenderGaps has been added
785 public boolean hasRenderGaps(
787 return this._has_renderGaps;
791 * Method hasShowAnnotation.
793 * @return true if at least one ShowAnnotation has been added
795 public boolean hasShowAnnotation(
797 return this._has_showAnnotation;
801 * Method hasShowBoxes.
803 * @return true if at least one ShowBoxes has been added
805 public boolean hasShowBoxes(
807 return this._has_showBoxes;
811 * Method hasShowColourText.
813 * @return true if at least one ShowColourText has been added
815 public boolean hasShowColourText(
817 return this._has_showColourText;
821 * Method hasShowConservation.
823 * @return true if at least one ShowConservation has been added
825 public boolean hasShowConservation(
827 return this._has_showConservation;
831 * Method hasShowFullId.
833 * @return true if at least one ShowFullId has been added
835 public boolean hasShowFullId(
837 return this._has_showFullId;
841 * Method hasShowIdentity.
843 * @return true if at least one ShowIdentity has been added
845 public boolean hasShowIdentity(
847 return this._has_showIdentity;
851 * Method hasShowQuality.
853 * @return true if at least one ShowQuality has been added
855 public boolean hasShowQuality(
857 return this._has_showQuality;
861 * Method hasShowSequenceFeatures.
863 * @return true if at least one ShowSequenceFeatures has been
866 public boolean hasShowSequenceFeatures(
868 return this._has_showSequenceFeatures;
872 * Method hasShowText.
874 * @return true if at least one ShowText has been added
876 public boolean hasShowText(
878 return this._has_showText;
882 * Method hasStartRes.
884 * @return true if at least one StartRes has been added
886 public boolean hasStartRes(
888 return this._has_startRes;
892 * Method hasStartSeq.
894 * @return true if at least one StartSeq has been added
896 public boolean hasStartSeq(
898 return this._has_startSeq;
904 * @return true if at least one Width has been added
906 public boolean hasWidth(
908 return this._has_width;
912 * Method hasWrapAlignment.
914 * @return true if at least one WrapAlignment has been added
916 public boolean hasWrapAlignment(
918 return this._has_wrapAlignment;
924 * @return true if at least one Xpos has been added
926 public boolean hasXpos(
928 return this._has_xpos;
934 * @return true if at least one Ypos has been added
936 public boolean hasYpos(
938 return this._has_ypos;
942 * Returns the value of field 'conservationSelected'.
944 * @return the value of field 'ConservationSelected'.
946 public boolean isConservationSelected(
948 return this._conservationSelected;
952 * Returns the value of field 'pidSelected'.
954 * @return the value of field 'PidSelected'.
956 public boolean isPidSelected(
958 return this._pidSelected;
962 * Returns the value of field 'renderGaps'.
964 * @return the value of field 'RenderGaps'.
966 public boolean isRenderGaps(
968 return this._renderGaps;
972 * Returns the value of field 'showAnnotation'.
974 * @return the value of field 'ShowAnnotation'.
976 public boolean isShowAnnotation(
978 return this._showAnnotation;
982 * Returns the value of field 'showBoxes'.
984 * @return the value of field 'ShowBoxes'.
986 public boolean isShowBoxes(
988 return this._showBoxes;
992 * Returns the value of field 'showColourText'.
994 * @return the value of field 'ShowColourText'.
996 public boolean isShowColourText(
998 return this._showColourText;
1002 * Returns the value of field 'showConservation'.
1004 * @return the value of field 'ShowConservation'.
1006 public boolean isShowConservation(
1008 return this._showConservation;
1012 * Returns the value of field 'showFullId'.
1014 * @return the value of field 'ShowFullId'.
1016 public boolean isShowFullId(
1018 return this._showFullId;
1022 * Returns the value of field 'showIdentity'.
1024 * @return the value of field 'ShowIdentity'.
1026 public boolean isShowIdentity(
1028 return this._showIdentity;
1032 * Returns the value of field 'showQuality'.
1034 * @return the value of field 'ShowQuality'.
1036 public boolean isShowQuality(
1038 return this._showQuality;
1042 * Returns the value of field 'showSequenceFeatures'.
1044 * @return the value of field 'ShowSequenceFeatures'.
1046 public boolean isShowSequenceFeatures(
1048 return this._showSequenceFeatures;
1052 * Returns the value of field 'showText'.
1054 * @return the value of field 'ShowText'.
1056 public boolean isShowText(
1058 return this._showText;
1064 * @return true if this object is valid according to the schema
1066 public boolean isValid(
1070 } catch (org.exolab.castor.xml.ValidationException vex) {
1077 * Returns the value of field 'wrapAlignment'.
1079 * @return the value of field 'WrapAlignment'.
1081 public boolean isWrapAlignment(
1083 return this._wrapAlignment;
1090 * @throws org.exolab.castor.xml.MarshalException if object is
1091 * null or if any SAXException is thrown during marshaling
1092 * @throws org.exolab.castor.xml.ValidationException if this
1093 * object is an invalid instance according to the schema
1095 public void marshal(
1096 final java.io.Writer out)
1097 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
1098 Marshaller.marshal(this, out);
1105 * @throws java.io.IOException if an IOException occurs during
1107 * @throws org.exolab.castor.xml.ValidationException if this
1108 * object is an invalid instance according to the schema
1109 * @throws org.exolab.castor.xml.MarshalException if object is
1110 * null or if any SAXException is thrown during marshaling
1112 public void marshal(
1113 final org.xml.sax.ContentHandler handler)
1114 throws java.io.IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
1115 Marshaller.marshal(this, handler);
1119 * Sets the value of field 'bgColour'.
1121 * @param bgColour the value of field 'bgColour'.
1123 public void setBgColour(
1124 final java.lang.String bgColour) {
1125 this._bgColour = bgColour;
1129 * Sets the value of field 'consThreshold'.
1131 * @param consThreshold the value of field 'consThreshold'.
1133 public void setConsThreshold(
1134 final int consThreshold) {
1135 this._consThreshold = consThreshold;
1136 this._has_consThreshold = true;
1140 * Sets the value of field 'conservationSelected'.
1142 * @param conservationSelected the value of field
1143 * 'conservationSelected'.
1145 public void setConservationSelected(
1146 final boolean conservationSelected) {
1147 this._conservationSelected = conservationSelected;
1148 this._has_conservationSelected = true;
1152 * Sets the value of field 'fontName'.
1154 * @param fontName the value of field 'fontName'.
1156 public void setFontName(
1157 final java.lang.String fontName) {
1158 this._fontName = fontName;
1162 * Sets the value of field 'fontSize'.
1164 * @param fontSize the value of field 'fontSize'.
1166 public void setFontSize(
1167 final int fontSize) {
1168 this._fontSize = fontSize;
1169 this._has_fontSize = true;
1173 * Sets the value of field 'fontStyle'.
1175 * @param fontStyle the value of field 'fontStyle'.
1177 public void setFontStyle(
1178 final int fontStyle) {
1179 this._fontStyle = fontStyle;
1180 this._has_fontStyle = true;
1184 * Sets the value of field 'height'.
1186 * @param height the value of field 'height'.
1188 public void setHeight(
1190 this._height = height;
1191 this._has_height = true;
1195 * Sets the value of field 'pidSelected'.
1197 * @param pidSelected the value of field 'pidSelected'.
1199 public void setPidSelected(
1200 final boolean pidSelected) {
1201 this._pidSelected = pidSelected;
1202 this._has_pidSelected = true;
1206 * Sets the value of field 'pidThreshold'.
1208 * @param pidThreshold the value of field 'pidThreshold'.
1210 public void setPidThreshold(
1211 final int pidThreshold) {
1212 this._pidThreshold = pidThreshold;
1213 this._has_pidThreshold = true;
1217 * Sets the value of field 'renderGaps'.
1219 * @param renderGaps the value of field 'renderGaps'.
1221 public void setRenderGaps(
1222 final boolean renderGaps) {
1223 this._renderGaps = renderGaps;
1224 this._has_renderGaps = true;
1228 * Sets the value of field 'showAnnotation'.
1230 * @param showAnnotation the value of field 'showAnnotation'.
1232 public void setShowAnnotation(
1233 final boolean showAnnotation) {
1234 this._showAnnotation = showAnnotation;
1235 this._has_showAnnotation = true;
1239 * Sets the value of field 'showBoxes'.
1241 * @param showBoxes the value of field 'showBoxes'.
1243 public void setShowBoxes(
1244 final boolean showBoxes) {
1245 this._showBoxes = showBoxes;
1246 this._has_showBoxes = true;
1250 * Sets the value of field 'showColourText'.
1252 * @param showColourText the value of field 'showColourText'.
1254 public void setShowColourText(
1255 final boolean showColourText) {
1256 this._showColourText = showColourText;
1257 this._has_showColourText = true;
1261 * Sets the value of field 'showConservation'.
1263 * @param showConservation the value of field 'showConservation'
1265 public void setShowConservation(
1266 final boolean showConservation) {
1267 this._showConservation = showConservation;
1268 this._has_showConservation = true;
1272 * Sets the value of field 'showFullId'.
1274 * @param showFullId the value of field 'showFullId'.
1276 public void setShowFullId(
1277 final boolean showFullId) {
1278 this._showFullId = showFullId;
1279 this._has_showFullId = true;
1283 * Sets the value of field 'showIdentity'.
1285 * @param showIdentity the value of field 'showIdentity'.
1287 public void setShowIdentity(
1288 final boolean showIdentity) {
1289 this._showIdentity = showIdentity;
1290 this._has_showIdentity = true;
1294 * Sets the value of field 'showQuality'.
1296 * @param showQuality the value of field 'showQuality'.
1298 public void setShowQuality(
1299 final boolean showQuality) {
1300 this._showQuality = showQuality;
1301 this._has_showQuality = true;
1305 * Sets the value of field 'showSequenceFeatures'.
1307 * @param showSequenceFeatures the value of field
1308 * 'showSequenceFeatures'.
1310 public void setShowSequenceFeatures(
1311 final boolean showSequenceFeatures) {
1312 this._showSequenceFeatures = showSequenceFeatures;
1313 this._has_showSequenceFeatures = true;
1317 * Sets the value of field 'showText'.
1319 * @param showText the value of field 'showText'.
1321 public void setShowText(
1322 final boolean showText) {
1323 this._showText = showText;
1324 this._has_showText = true;
1328 * Sets the value of field 'startRes'.
1330 * @param startRes the value of field 'startRes'.
1332 public void setStartRes(
1333 final int startRes) {
1334 this._startRes = startRes;
1335 this._has_startRes = true;
1339 * Sets the value of field 'startSeq'.
1341 * @param startSeq the value of field 'startSeq'.
1343 public void setStartSeq(
1344 final int startSeq) {
1345 this._startSeq = startSeq;
1346 this._has_startSeq = true;
1350 * Sets the value of field 'title'.
1352 * @param title the value of field 'title'.
1354 public void setTitle(
1355 final java.lang.String title) {
1356 this._title = title;
1360 * Sets the value of field 'width'.
1362 * @param width the value of field 'width'.
1364 public void setWidth(
1366 this._width = width;
1367 this._has_width = true;
1371 * Sets the value of field 'wrapAlignment'.
1373 * @param wrapAlignment the value of field 'wrapAlignment'.
1375 public void setWrapAlignment(
1376 final boolean wrapAlignment) {
1377 this._wrapAlignment = wrapAlignment;
1378 this._has_wrapAlignment = true;
1382 * Sets the value of field 'xpos'.
1384 * @param xpos the value of field 'xpos'.
1386 public void setXpos(
1389 this._has_xpos = true;
1393 * Sets the value of field 'ypos'.
1395 * @param ypos the value of field 'ypos'.
1397 public void setYpos(
1400 this._has_ypos = true;
1407 * @throws org.exolab.castor.xml.MarshalException if object is
1408 * null or if any SAXException is thrown during marshaling
1409 * @throws org.exolab.castor.xml.ValidationException if this
1410 * object is an invalid instance according to the schema
1411 * @return the unmarshaled jalview.binding.Viewport
1413 public static jalview.binding.Viewport unmarshal(
1414 final java.io.Reader reader)
1415 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
1416 return (jalview.binding.Viewport) Unmarshaller.unmarshal(jalview.binding.Viewport.class, reader);
1422 * @throws org.exolab.castor.xml.ValidationException if this
1423 * object is an invalid instance according to the schema
1425 public void validate(
1427 throws org.exolab.castor.xml.ValidationException {
1428 org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
1429 validator.validate(this);