2 * This class was automatically generated with
\r
3 * <a href="http://www.castor.org">Castor 0.9.6</a>, using an XML
\r
7 package jalview.binding;
\r
9 import org.exolab.castor.xml.MarshalException;
\r
10 import org.exolab.castor.xml.Marshaller;
\r
11 import org.exolab.castor.xml.Unmarshaller;
\r
12 import org.exolab.castor.xml.ValidationException;
\r
14 import org.xml.sax.ContentHandler;
\r
16 //---------------------------------/
\r
17 //- Imported classes and packages -/
\r
18 //---------------------------------/
\r
19 import java.io.IOException;
\r
20 import java.io.Reader;
\r
21 import java.io.Serializable;
\r
22 import java.io.Writer;
\r
28 * @version $Revision$ $Date$
\r
30 public class Tree implements java.io.Serializable
\r
32 //--------------------------/
\r
33 //- Class/Member Variables -/
\r
34 //--------------------------/
\r
39 private java.lang.String _title;
\r
42 * Field _currentTree
\r
44 private boolean _currentTree;
\r
47 * keeps track of state for field: _currentTree
\r
49 private boolean _has_currentTree;
\r
52 * Field _fitToWindow
\r
54 private boolean _fitToWindow;
\r
57 * keeps track of state for field: _fitToWindow
\r
59 private boolean _has_fitToWindow;
\r
62 * Field _showDistances
\r
64 private boolean _showDistances;
\r
67 * keeps track of state for field: _showDistances
\r
69 private boolean _has_showDistances;
\r
72 * Field _showBootstrap
\r
74 private boolean _showBootstrap;
\r
77 * keeps track of state for field: _showBootstrap
\r
79 private boolean _has_showBootstrap;
\r
82 * Field _markUnlinked
\r
84 private boolean _markUnlinked;
\r
87 * keeps track of state for field: _markUnlinked
\r
89 private boolean _has_markUnlinked;
\r
94 private int _fontSize;
\r
97 * keeps track of state for field: _fontSize
\r
99 private boolean _has_fontSize;
\r
104 private float _threshold;
\r
107 * keeps track of state for field: _threshold
\r
109 private boolean _has_threshold;
\r
117 * keeps track of state for field: _xpos
\r
119 private boolean _has_xpos;
\r
127 * keeps track of state for field: _ypos
\r
129 private boolean _has_ypos;
\r
134 private int _width;
\r
137 * keeps track of state for field: _width
\r
139 private boolean _has_width;
\r
144 private int _height;
\r
147 * keeps track of state for field: _height
\r
149 private boolean _has_height;
\r
154 private java.lang.String _newick;
\r
156 //----------------/
\r
157 //- Constructors -/
\r
158 //----------------/
\r
164 //-- jalview.binding.Tree()
\r
170 public void deleteCurrentTree()
\r
172 this._has_currentTree = false;
\r
175 //-- void deleteCurrentTree()
\r
178 * Method deleteFitToWindow
\r
181 public void deleteFitToWindow()
\r
183 this._has_fitToWindow = false;
\r
186 //-- void deleteFitToWindow()
\r
189 * Method deleteFontSize
\r
192 public void deleteFontSize()
\r
194 this._has_fontSize = false;
\r
197 //-- void deleteFontSize()
\r
200 * Method deleteHeight
\r
203 public void deleteHeight()
\r
205 this._has_height = false;
\r
208 //-- void deleteHeight()
\r
211 * Method deleteMarkUnlinked
\r
214 public void deleteMarkUnlinked()
\r
216 this._has_markUnlinked = false;
\r
219 //-- void deleteMarkUnlinked()
\r
222 * Method deleteShowBootstrap
\r
225 public void deleteShowBootstrap()
\r
227 this._has_showBootstrap = false;
\r
230 //-- void deleteShowBootstrap()
\r
233 * Method deleteShowDistances
\r
236 public void deleteShowDistances()
\r
238 this._has_showDistances = false;
\r
241 //-- void deleteShowDistances()
\r
244 * Method deleteThreshold
\r
247 public void deleteThreshold()
\r
249 this._has_threshold = false;
\r
252 //-- void deleteThreshold()
\r
255 * Method deleteWidth
\r
258 public void deleteWidth()
\r
260 this._has_width = false;
\r
263 //-- void deleteWidth()
\r
266 * Method deleteXpos
\r
269 public void deleteXpos()
\r
271 this._has_xpos = false;
\r
274 //-- void deleteXpos()
\r
277 * Method deleteYpos
\r
280 public void deleteYpos()
\r
282 this._has_ypos = false;
\r
285 //-- void deleteYpos()
\r
288 * Returns the value of field 'currentTree'.
\r
291 * @return the value of field 'currentTree'.
\r
293 public boolean getCurrentTree()
\r
295 return this._currentTree;
\r
298 //-- boolean getCurrentTree()
\r
301 * Returns the value of field 'fitToWindow'.
\r
304 * @return the value of field 'fitToWindow'.
\r
306 public boolean getFitToWindow()
\r
308 return this._fitToWindow;
\r
311 //-- boolean getFitToWindow()
\r
314 * Returns the value of field 'fontSize'.
\r
317 * @return the value of field 'fontSize'.
\r
319 public int getFontSize()
\r
321 return this._fontSize;
\r
324 //-- int getFontSize()
\r
327 * Returns the value of field 'height'.
\r
330 * @return the value of field 'height'.
\r
332 public int getHeight()
\r
334 return this._height;
\r
337 //-- int getHeight()
\r
340 * Returns the value of field 'markUnlinked'.
\r
343 * @return the value of field 'markUnlinked'.
\r
345 public boolean getMarkUnlinked()
\r
347 return this._markUnlinked;
\r
350 //-- boolean getMarkUnlinked()
\r
353 * Returns the value of field 'newick'.
\r
356 * @return the value of field 'newick'.
\r
358 public java.lang.String getNewick()
\r
360 return this._newick;
\r
363 //-- java.lang.String getNewick()
\r
366 * Returns the value of field 'showBootstrap'.
\r
369 * @return the value of field 'showBootstrap'.
\r
371 public boolean getShowBootstrap()
\r
373 return this._showBootstrap;
\r
376 //-- boolean getShowBootstrap()
\r
379 * Returns the value of field 'showDistances'.
\r
382 * @return the value of field 'showDistances'.
\r
384 public boolean getShowDistances()
\r
386 return this._showDistances;
\r
389 //-- boolean getShowDistances()
\r
392 * Returns the value of field 'threshold'.
\r
395 * @return the value of field 'threshold'.
\r
397 public float getThreshold()
\r
399 return this._threshold;
\r
402 //-- float getThreshold()
\r
405 * Returns the value of field 'title'.
\r
408 * @return the value of field 'title'.
\r
410 public java.lang.String getTitle()
\r
412 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
428 //-- int getWidth()
\r
431 * Returns the value of field 'xpos'.
\r
434 * @return the value of field 'xpos'.
\r
436 public int getXpos()
\r
441 //-- int getXpos()
\r
444 * Returns the value of field 'ypos'.
\r
447 * @return the value of field 'ypos'.
\r
449 public int getYpos()
\r
454 //-- int getYpos()
\r
457 * Method hasCurrentTree
\r
463 public boolean hasCurrentTree()
\r
465 return this._has_currentTree;
\r
468 //-- boolean hasCurrentTree()
\r
471 * Method hasFitToWindow
\r
477 public boolean hasFitToWindow()
\r
479 return this._has_fitToWindow;
\r
482 //-- boolean hasFitToWindow()
\r
485 * Method hasFontSize
\r
491 public boolean hasFontSize()
\r
493 return this._has_fontSize;
\r
496 //-- boolean hasFontSize()
\r
505 public boolean hasHeight()
\r
507 return this._has_height;
\r
510 //-- boolean hasHeight()
\r
513 * Method hasMarkUnlinked
\r
519 public boolean hasMarkUnlinked()
\r
521 return this._has_markUnlinked;
\r
524 //-- boolean hasMarkUnlinked()
\r
527 * Method hasShowBootstrap
\r
533 public boolean hasShowBootstrap()
\r
535 return this._has_showBootstrap;
\r
538 //-- boolean hasShowBootstrap()
\r
541 * Method hasShowDistances
\r
547 public boolean hasShowDistances()
\r
549 return this._has_showDistances;
\r
552 //-- boolean hasShowDistances()
\r
555 * Method hasThreshold
\r
561 public boolean hasThreshold()
\r
563 return this._has_threshold;
\r
566 //-- boolean hasThreshold()
\r
575 public boolean hasWidth()
\r
577 return this._has_width;
\r
580 //-- boolean hasWidth()
\r
589 public boolean hasXpos()
\r
591 return this._has_xpos;
\r
594 //-- boolean hasXpos()
\r
603 public boolean hasYpos()
\r
605 return this._has_ypos;
\r
608 //-- boolean hasYpos()
\r
617 public boolean isValid()
\r
623 catch (org.exolab.castor.xml.ValidationException vex)
\r
631 //-- boolean isValid()
\r
640 public void marshal(java.io.Writer out)
\r
641 throws org.exolab.castor.xml.MarshalException,
\r
642 org.exolab.castor.xml.ValidationException
\r
644 Marshaller.marshal(this, out);
\r
647 //-- void marshal(java.io.Writer)
\r
656 public void marshal(org.xml.sax.ContentHandler handler)
\r
657 throws java.io.IOException, org.exolab.castor.xml.MarshalException,
\r
658 org.exolab.castor.xml.ValidationException
\r
660 Marshaller.marshal(this, handler);
\r
663 //-- void marshal(org.xml.sax.ContentHandler)
\r
666 * Sets the value of field 'currentTree'.
\r
668 * @param currentTree the value of field 'currentTree'.
\r
670 public void setCurrentTree(boolean currentTree)
\r
672 this._currentTree = currentTree;
\r
673 this._has_currentTree = true;
\r
676 //-- void setCurrentTree(boolean)
\r
679 * Sets the value of field 'fitToWindow'.
\r
681 * @param fitToWindow the value of field 'fitToWindow'.
\r
683 public void setFitToWindow(boolean fitToWindow)
\r
685 this._fitToWindow = fitToWindow;
\r
686 this._has_fitToWindow = true;
\r
689 //-- void setFitToWindow(boolean)
\r
692 * Sets the value of field 'fontSize'.
\r
694 * @param fontSize the value of field 'fontSize'.
\r
696 public void setFontSize(int fontSize)
\r
698 this._fontSize = fontSize;
\r
699 this._has_fontSize = true;
\r
702 //-- void setFontSize(int)
\r
705 * Sets the value of field 'height'.
\r
707 * @param height the value of field 'height'.
\r
709 public void setHeight(int height)
\r
711 this._height = height;
\r
712 this._has_height = true;
\r
715 //-- void setHeight(int)
\r
718 * Sets the value of field 'markUnlinked'.
\r
720 * @param markUnlinked the value of field 'markUnlinked'.
\r
722 public void setMarkUnlinked(boolean markUnlinked)
\r
724 this._markUnlinked = markUnlinked;
\r
725 this._has_markUnlinked = true;
\r
728 //-- void setMarkUnlinked(boolean)
\r
731 * Sets the value of field 'newick'.
\r
733 * @param newick the value of field 'newick'.
\r
735 public void setNewick(java.lang.String newick)
\r
737 this._newick = newick;
\r
740 //-- void setNewick(java.lang.String)
\r
743 * Sets the value of field 'showBootstrap'.
\r
745 * @param showBootstrap the value of field 'showBootstrap'.
\r
747 public void setShowBootstrap(boolean showBootstrap)
\r
749 this._showBootstrap = showBootstrap;
\r
750 this._has_showBootstrap = true;
\r
753 //-- void setShowBootstrap(boolean)
\r
756 * Sets the value of field 'showDistances'.
\r
758 * @param showDistances the value of field 'showDistances'.
\r
760 public void setShowDistances(boolean showDistances)
\r
762 this._showDistances = showDistances;
\r
763 this._has_showDistances = true;
\r
766 //-- void setShowDistances(boolean)
\r
769 * Sets the value of field 'threshold'.
\r
771 * @param threshold the value of field 'threshold'.
\r
773 public void setThreshold(float threshold)
\r
775 this._threshold = threshold;
\r
776 this._has_threshold = true;
\r
779 //-- void setThreshold(float)
\r
782 * Sets the value of field 'title'.
\r
784 * @param title the value of field 'title'.
\r
786 public void setTitle(java.lang.String title)
\r
788 this._title = title;
\r
791 //-- void setTitle(java.lang.String)
\r
794 * Sets the value of field 'width'.
\r
796 * @param width the value of field 'width'.
\r
798 public void setWidth(int width)
\r
800 this._width = width;
\r
801 this._has_width = true;
\r
804 //-- void setWidth(int)
\r
807 * Sets the value of field 'xpos'.
\r
809 * @param xpos the value of field 'xpos'.
\r
811 public void setXpos(int xpos)
\r
814 this._has_xpos = true;
\r
817 //-- void setXpos(int)
\r
820 * Sets the value of field 'ypos'.
\r
822 * @param ypos the value of field 'ypos'.
\r
824 public void setYpos(int ypos)
\r
827 this._has_ypos = true;
\r
830 //-- void setYpos(int)
\r
840 public static java.lang.Object unmarshal(java.io.Reader reader)
\r
841 throws org.exolab.castor.xml.MarshalException,
\r
842 org.exolab.castor.xml.ValidationException
\r
844 return (jalview.binding.Tree) Unmarshaller.unmarshal(jalview.binding.Tree.class,
\r
848 //-- java.lang.Object unmarshal(java.io.Reader)
\r
854 public void validate() throws org.exolab.castor.xml.ValidationException
\r
856 org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
\r
857 validator.validate(this);
\r
860 //-- void validate()
\r