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 org.exolab.castor.xml.*;
\r
19 * @version $Revision$ $Date$
\r
22 implements java.io.Serializable
\r
25 //--------------------------/
\r
26 //- Class/Member Variables -/
\r
27 //--------------------------/
\r
35 * keeps track of state for field: _width
\r
37 private boolean _has_width;
\r
42 private int _height;
\r
45 * keeps track of state for field: _height
\r
47 private boolean _has_height;
\r
55 * keeps track of state for field: _xpos
\r
57 private boolean _has_xpos;
\r
65 * keeps track of state for field: _ypos
\r
67 private boolean _has_ypos;
\r
72 private java.lang.String _fontName;
\r
77 private int _fontSize;
\r
80 * keeps track of state for field: _fontSize
\r
82 private boolean _has_fontSize;
\r
87 private int _fontStyle;
\r
90 * keeps track of state for field: _fontStyle
\r
92 private boolean _has_fontStyle;
\r
97 private float _threshold;
\r
100 * keeps track of state for field: _threshold
\r
102 private boolean _has_threshold;
\r
105 * Field _showBootstrap
\r
107 private boolean _showBootstrap;
\r
110 * keeps track of state for field: _showBootstrap
\r
112 private boolean _has_showBootstrap;
\r
115 * Field _showDistances
\r
117 private boolean _showDistances;
\r
120 * keeps track of state for field: _showDistances
\r
122 private boolean _has_showDistances;
\r
125 * Field _markUnlinked
\r
127 private boolean _markUnlinked;
\r
130 * keeps track of state for field: _markUnlinked
\r
132 private boolean _has_markUnlinked;
\r
135 * Field _fitToWindow
\r
137 private boolean _fitToWindow;
\r
140 * keeps track of state for field: _fitToWindow
\r
142 private boolean _has_fitToWindow;
\r
145 * Field _currentTree
\r
147 private boolean _currentTree;
\r
150 * keeps track of state for field: _currentTree
\r
152 private boolean _has_currentTree;
\r
157 private java.lang.String _title;
\r
162 private java.lang.String _newick;
\r
164 //----------------/
\r
165 //- Constructors -/
\r
166 //----------------/
\r
171 } //-- jalview.schemabinding.version2.Tree()
\r
178 * Method deleteCurrentTree
\r
181 public void deleteCurrentTree()
\r
183 this._has_currentTree = false;
\r
184 } //-- void deleteCurrentTree()
\r
187 * Method deleteFitToWindow
\r
190 public void deleteFitToWindow()
\r
192 this._has_fitToWindow = false;
\r
193 } //-- void deleteFitToWindow()
\r
196 * Method deleteFontSize
\r
199 public void deleteFontSize()
\r
201 this._has_fontSize = false;
\r
202 } //-- void deleteFontSize()
\r
205 * Method deleteFontStyle
\r
208 public void deleteFontStyle()
\r
210 this._has_fontStyle = false;
\r
211 } //-- void deleteFontStyle()
\r
214 * Method deleteHeight
\r
217 public void deleteHeight()
\r
219 this._has_height = false;
\r
220 } //-- void deleteHeight()
\r
223 * Method deleteMarkUnlinked
\r
226 public void deleteMarkUnlinked()
\r
228 this._has_markUnlinked = false;
\r
229 } //-- void deleteMarkUnlinked()
\r
232 * Method deleteShowBootstrap
\r
235 public void deleteShowBootstrap()
\r
237 this._has_showBootstrap = false;
\r
238 } //-- void deleteShowBootstrap()
\r
241 * Method deleteShowDistances
\r
244 public void deleteShowDistances()
\r
246 this._has_showDistances = false;
\r
247 } //-- void deleteShowDistances()
\r
250 * Method deleteThreshold
\r
253 public void deleteThreshold()
\r
255 this._has_threshold = false;
\r
256 } //-- void deleteThreshold()
\r
259 * Method deleteWidth
\r
262 public void deleteWidth()
\r
264 this._has_width = false;
\r
265 } //-- void deleteWidth()
\r
268 * Method deleteXpos
\r
271 public void deleteXpos()
\r
273 this._has_xpos = false;
\r
274 } //-- void deleteXpos()
\r
277 * Method deleteYpos
\r
280 public void deleteYpos()
\r
282 this._has_ypos = false;
\r
283 } //-- void deleteYpos()
\r
286 * Returns the value of field 'currentTree'.
\r
289 * @return the value of field 'currentTree'.
\r
291 public boolean getCurrentTree()
\r
293 return this._currentTree;
\r
294 } //-- boolean getCurrentTree()
\r
297 * Returns the value of field 'fitToWindow'.
\r
300 * @return the value of field 'fitToWindow'.
\r
302 public boolean getFitToWindow()
\r
304 return this._fitToWindow;
\r
305 } //-- boolean getFitToWindow()
\r
308 * Returns the value of field 'fontName'.
\r
311 * @return the value of field 'fontName'.
\r
313 public java.lang.String getFontName()
\r
315 return this._fontName;
\r
316 } //-- java.lang.String getFontName()
\r
319 * Returns the value of field 'fontSize'.
\r
322 * @return the value of field 'fontSize'.
\r
324 public int getFontSize()
\r
326 return this._fontSize;
\r
327 } //-- int getFontSize()
\r
330 * Returns the value of field 'fontStyle'.
\r
333 * @return the value of field 'fontStyle'.
\r
335 public int getFontStyle()
\r
337 return this._fontStyle;
\r
338 } //-- int getFontStyle()
\r
341 * Returns the value of field 'height'.
\r
344 * @return the value of field 'height'.
\r
346 public int getHeight()
\r
348 return this._height;
\r
349 } //-- int getHeight()
\r
352 * Returns the value of field 'markUnlinked'.
\r
355 * @return the value of field 'markUnlinked'.
\r
357 public boolean getMarkUnlinked()
\r
359 return this._markUnlinked;
\r
360 } //-- boolean getMarkUnlinked()
\r
363 * Returns the value of field 'newick'.
\r
366 * @return the value of field 'newick'.
\r
368 public java.lang.String getNewick()
\r
370 return this._newick;
\r
371 } //-- java.lang.String getNewick()
\r
374 * Returns the value of field 'showBootstrap'.
\r
377 * @return the value of field 'showBootstrap'.
\r
379 public boolean getShowBootstrap()
\r
381 return this._showBootstrap;
\r
382 } //-- boolean getShowBootstrap()
\r
385 * Returns the value of field 'showDistances'.
\r
388 * @return the value of field 'showDistances'.
\r
390 public boolean getShowDistances()
\r
392 return this._showDistances;
\r
393 } //-- boolean getShowDistances()
\r
396 * Returns the value of field 'threshold'.
\r
399 * @return the value of field 'threshold'.
\r
401 public float getThreshold()
\r
403 return this._threshold;
\r
404 } //-- float getThreshold()
\r
407 * Returns the value of field 'title'.
\r
410 * @return the value of field 'title'.
\r
412 public java.lang.String getTitle()
\r
414 return this._title;
\r
415 } //-- java.lang.String getTitle()
\r
418 * Returns the value of field 'width'.
\r
421 * @return the value of field 'width'.
\r
423 public int getWidth()
\r
425 return this._width;
\r
426 } //-- int getWidth()
\r
429 * Returns the value of field 'xpos'.
\r
432 * @return the value of field 'xpos'.
\r
434 public int getXpos()
\r
437 } //-- int getXpos()
\r
440 * Returns the value of field 'ypos'.
\r
443 * @return the value of field 'ypos'.
\r
445 public int getYpos()
\r
448 } //-- int getYpos()
\r
451 * Method hasCurrentTree
\r
457 public boolean hasCurrentTree()
\r
459 return this._has_currentTree;
\r
460 } //-- boolean hasCurrentTree()
\r
463 * Method hasFitToWindow
\r
469 public boolean hasFitToWindow()
\r
471 return this._has_fitToWindow;
\r
472 } //-- boolean hasFitToWindow()
\r
475 * Method hasFontSize
\r
481 public boolean hasFontSize()
\r
483 return this._has_fontSize;
\r
484 } //-- boolean hasFontSize()
\r
487 * Method hasFontStyle
\r
493 public boolean hasFontStyle()
\r
495 return this._has_fontStyle;
\r
496 } //-- boolean hasFontStyle()
\r
505 public boolean hasHeight()
\r
507 return this._has_height;
\r
508 } //-- boolean hasHeight()
\r
511 * Method hasMarkUnlinked
\r
517 public boolean hasMarkUnlinked()
\r
519 return this._has_markUnlinked;
\r
520 } //-- boolean hasMarkUnlinked()
\r
523 * Method hasShowBootstrap
\r
529 public boolean hasShowBootstrap()
\r
531 return this._has_showBootstrap;
\r
532 } //-- boolean hasShowBootstrap()
\r
535 * Method hasShowDistances
\r
541 public boolean hasShowDistances()
\r
543 return this._has_showDistances;
\r
544 } //-- boolean hasShowDistances()
\r
547 * Method hasThreshold
\r
553 public boolean hasThreshold()
\r
555 return this._has_threshold;
\r
556 } //-- boolean hasThreshold()
\r
565 public boolean hasWidth()
\r
567 return this._has_width;
\r
568 } //-- boolean hasWidth()
\r
577 public boolean hasXpos()
\r
579 return this._has_xpos;
\r
580 } //-- boolean hasXpos()
\r
589 public boolean hasYpos()
\r
591 return this._has_ypos;
\r
592 } //-- boolean hasYpos()
\r
601 public boolean isValid()
\r
607 catch (org.exolab.castor.xml.ValidationException vex)
\r
612 } //-- boolean isValid()
\r
621 public void marshal(java.io.Writer out)
\r
622 throws org.exolab.castor.xml.MarshalException,
\r
623 org.exolab.castor.xml.ValidationException
\r
626 Marshaller.marshal(this, out);
\r
627 } //-- void marshal(java.io.Writer)
\r
636 public void marshal(org.xml.sax.ContentHandler handler)
\r
637 throws java.io.IOException, org.exolab.castor.xml.MarshalException,
\r
638 org.exolab.castor.xml.ValidationException
\r
641 Marshaller.marshal(this, handler);
\r
642 } //-- void marshal(org.xml.sax.ContentHandler)
\r
645 * Sets the value of field 'currentTree'.
\r
647 * @param currentTree the value of field 'currentTree'.
\r
649 public void setCurrentTree(boolean currentTree)
\r
651 this._currentTree = currentTree;
\r
652 this._has_currentTree = true;
\r
653 } //-- void setCurrentTree(boolean)
\r
656 * Sets the value of field 'fitToWindow'.
\r
658 * @param fitToWindow the value of field 'fitToWindow'.
\r
660 public void setFitToWindow(boolean fitToWindow)
\r
662 this._fitToWindow = fitToWindow;
\r
663 this._has_fitToWindow = true;
\r
664 } //-- void setFitToWindow(boolean)
\r
667 * Sets the value of field 'fontName'.
\r
669 * @param fontName the value of field 'fontName'.
\r
671 public void setFontName(java.lang.String fontName)
\r
673 this._fontName = fontName;
\r
674 } //-- void setFontName(java.lang.String)
\r
677 * Sets the value of field 'fontSize'.
\r
679 * @param fontSize the value of field 'fontSize'.
\r
681 public void setFontSize(int fontSize)
\r
683 this._fontSize = fontSize;
\r
684 this._has_fontSize = true;
\r
685 } //-- void setFontSize(int)
\r
688 * Sets the value of field 'fontStyle'.
\r
690 * @param fontStyle the value of field 'fontStyle'.
\r
692 public void setFontStyle(int fontStyle)
\r
694 this._fontStyle = fontStyle;
\r
695 this._has_fontStyle = true;
\r
696 } //-- void setFontStyle(int)
\r
699 * Sets the value of field 'height'.
\r
701 * @param height the value of field 'height'.
\r
703 public void setHeight(int height)
\r
705 this._height = height;
\r
706 this._has_height = true;
\r
707 } //-- void setHeight(int)
\r
710 * Sets the value of field 'markUnlinked'.
\r
712 * @param markUnlinked the value of field 'markUnlinked'.
\r
714 public void setMarkUnlinked(boolean markUnlinked)
\r
716 this._markUnlinked = markUnlinked;
\r
717 this._has_markUnlinked = true;
\r
718 } //-- void setMarkUnlinked(boolean)
\r
721 * Sets the value of field 'newick'.
\r
723 * @param newick the value of field 'newick'.
\r
725 public void setNewick(java.lang.String newick)
\r
727 this._newick = newick;
\r
728 } //-- void setNewick(java.lang.String)
\r
731 * Sets the value of field 'showBootstrap'.
\r
733 * @param showBootstrap the value of field 'showBootstrap'.
\r
735 public void setShowBootstrap(boolean showBootstrap)
\r
737 this._showBootstrap = showBootstrap;
\r
738 this._has_showBootstrap = true;
\r
739 } //-- void setShowBootstrap(boolean)
\r
742 * Sets the value of field 'showDistances'.
\r
744 * @param showDistances the value of field 'showDistances'.
\r
746 public void setShowDistances(boolean showDistances)
\r
748 this._showDistances = showDistances;
\r
749 this._has_showDistances = true;
\r
750 } //-- void setShowDistances(boolean)
\r
753 * Sets the value of field 'threshold'.
\r
755 * @param threshold the value of field 'threshold'.
\r
757 public void setThreshold(float threshold)
\r
759 this._threshold = threshold;
\r
760 this._has_threshold = true;
\r
761 } //-- void setThreshold(float)
\r
764 * Sets the value of field 'title'.
\r
766 * @param title the value of field 'title'.
\r
768 public void setTitle(java.lang.String title)
\r
770 this._title = title;
\r
771 } //-- void setTitle(java.lang.String)
\r
774 * Sets the value of field 'width'.
\r
776 * @param width the value of field 'width'.
\r
778 public void setWidth(int width)
\r
780 this._width = width;
\r
781 this._has_width = true;
\r
782 } //-- void setWidth(int)
\r
785 * Sets the value of field 'xpos'.
\r
787 * @param xpos the value of field 'xpos'.
\r
789 public void setXpos(int xpos)
\r
792 this._has_xpos = true;
\r
793 } //-- void setXpos(int)
\r
796 * Sets the value of field 'ypos'.
\r
798 * @param ypos the value of field 'ypos'.
\r
800 public void setYpos(int ypos)
\r
803 this._has_ypos = true;
\r
804 } //-- void setYpos(int)
\r
814 public static java.lang.Object unmarshal(java.io.Reader reader)
\r
815 throws org.exolab.castor.xml.MarshalException,
\r
816 org.exolab.castor.xml.ValidationException
\r
818 return (jalview.schemabinding.version2.Tree) Unmarshaller.unmarshal(jalview.
\r
819 schemabinding.version2.Tree.class, reader);
\r
820 } //-- java.lang.Object unmarshal(java.io.Reader)
\r
826 public void validate()
\r
827 throws org.exolab.castor.xml.ValidationException
\r
829 org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.
\r
831 validator.validate(this);
\r
832 } //-- void validate()
\r