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.binding;
\r
10 //---------------------------------/
\r
11 //- Imported classes and packages -/
\r
12 //---------------------------------/
\r
14 import java.io.IOException;
\r
15 import java.io.Reader;
\r
16 import java.io.Serializable;
\r
17 import java.io.Writer;
\r
18 import org.exolab.castor.xml.MarshalException;
\r
19 import org.exolab.castor.xml.Marshaller;
\r
20 import org.exolab.castor.xml.Unmarshaller;
\r
21 import org.exolab.castor.xml.ValidationException;
\r
22 import org.xml.sax.ContentHandler;
\r
27 * @version $Revision$ $Date$
\r
29 public class Tree implements java.io.Serializable {
\r
32 //--------------------------/
\r
33 //- Class/Member Variables -/
\r
34 //--------------------------/
\r
42 * keeps track of state for field: _width
\r
44 private boolean _has_width;
\r
49 private int _height;
\r
52 * keeps track of state for field: _height
\r
54 private boolean _has_height;
\r
62 * keeps track of state for field: _xpos
\r
64 private boolean _has_xpos;
\r
72 * keeps track of state for field: _ypos
\r
74 private boolean _has_ypos;
\r
79 private java.lang.String _fontName;
\r
84 private int _fontSize;
\r
87 * keeps track of state for field: _fontSize
\r
89 private boolean _has_fontSize;
\r
94 private int _fontStyle;
\r
97 * keeps track of state for field: _fontStyle
\r
99 private boolean _has_fontStyle;
\r
104 private float _threshold;
\r
107 * keeps track of state for field: _threshold
\r
109 private boolean _has_threshold;
\r
112 * Field _showBootstrap
\r
114 private boolean _showBootstrap;
\r
117 * keeps track of state for field: _showBootstrap
\r
119 private boolean _has_showBootstrap;
\r
122 * Field _showDistances
\r
124 private boolean _showDistances;
\r
127 * keeps track of state for field: _showDistances
\r
129 private boolean _has_showDistances;
\r
132 * Field _markUnlinked
\r
134 private boolean _markUnlinked;
\r
137 * keeps track of state for field: _markUnlinked
\r
139 private boolean _has_markUnlinked;
\r
142 * Field _fitToWindow
\r
144 private boolean _fitToWindow;
\r
147 * keeps track of state for field: _fitToWindow
\r
149 private boolean _has_fitToWindow;
\r
152 * Field _currentTree
\r
154 private boolean _currentTree;
\r
157 * keeps track of state for field: _currentTree
\r
159 private boolean _has_currentTree;
\r
164 private java.lang.String _title;
\r
169 private java.lang.String _newick;
\r
172 //----------------/
\r
173 //- Constructors -/
\r
174 //----------------/
\r
178 } //-- jalview.binding.Tree()
\r
186 * Method deleteCurrentTree
\r
189 public void deleteCurrentTree()
\r
191 this._has_currentTree= false;
\r
192 } //-- void deleteCurrentTree()
\r
195 * Method deleteFitToWindow
\r
198 public void deleteFitToWindow()
\r
200 this._has_fitToWindow= false;
\r
201 } //-- void deleteFitToWindow()
\r
204 * Method deleteFontSize
\r
207 public void deleteFontSize()
\r
209 this._has_fontSize= false;
\r
210 } //-- void deleteFontSize()
\r
213 * Method deleteFontStyle
\r
216 public void deleteFontStyle()
\r
218 this._has_fontStyle= false;
\r
219 } //-- void deleteFontStyle()
\r
222 * Method deleteHeight
\r
225 public void deleteHeight()
\r
227 this._has_height= false;
\r
228 } //-- void deleteHeight()
\r
231 * Method deleteMarkUnlinked
\r
234 public void deleteMarkUnlinked()
\r
236 this._has_markUnlinked= false;
\r
237 } //-- void deleteMarkUnlinked()
\r
240 * Method deleteShowBootstrap
\r
243 public void deleteShowBootstrap()
\r
245 this._has_showBootstrap= false;
\r
246 } //-- void deleteShowBootstrap()
\r
249 * Method deleteShowDistances
\r
252 public void deleteShowDistances()
\r
254 this._has_showDistances= false;
\r
255 } //-- void deleteShowDistances()
\r
258 * Method deleteThreshold
\r
261 public void deleteThreshold()
\r
263 this._has_threshold= false;
\r
264 } //-- void deleteThreshold()
\r
267 * Method deleteWidth
\r
270 public void deleteWidth()
\r
272 this._has_width= false;
\r
273 } //-- void deleteWidth()
\r
276 * Method deleteXpos
\r
279 public void deleteXpos()
\r
281 this._has_xpos= false;
\r
282 } //-- void deleteXpos()
\r
285 * Method deleteYpos
\r
288 public void deleteYpos()
\r
290 this._has_ypos= false;
\r
291 } //-- void deleteYpos()
\r
294 * Returns the value of field 'currentTree'.
\r
297 * @return the value of field 'currentTree'.
\r
299 public boolean getCurrentTree()
\r
301 return this._currentTree;
\r
302 } //-- boolean getCurrentTree()
\r
305 * Returns the value of field 'fitToWindow'.
\r
308 * @return the value of field 'fitToWindow'.
\r
310 public boolean getFitToWindow()
\r
312 return this._fitToWindow;
\r
313 } //-- boolean getFitToWindow()
\r
316 * Returns the value of field 'fontName'.
\r
319 * @return the value of field 'fontName'.
\r
321 public java.lang.String getFontName()
\r
323 return this._fontName;
\r
324 } //-- java.lang.String getFontName()
\r
327 * Returns the value of field 'fontSize'.
\r
330 * @return the value of field 'fontSize'.
\r
332 public int getFontSize()
\r
334 return this._fontSize;
\r
335 } //-- int getFontSize()
\r
338 * Returns the value of field 'fontStyle'.
\r
341 * @return the value of field 'fontStyle'.
\r
343 public int getFontStyle()
\r
345 return this._fontStyle;
\r
346 } //-- int getFontStyle()
\r
349 * Returns the value of field 'height'.
\r
352 * @return the value of field 'height'.
\r
354 public int getHeight()
\r
356 return this._height;
\r
357 } //-- int getHeight()
\r
360 * Returns the value of field 'markUnlinked'.
\r
363 * @return the value of field 'markUnlinked'.
\r
365 public boolean getMarkUnlinked()
\r
367 return this._markUnlinked;
\r
368 } //-- boolean getMarkUnlinked()
\r
371 * Returns the value of field 'newick'.
\r
374 * @return the value of field 'newick'.
\r
376 public java.lang.String getNewick()
\r
378 return this._newick;
\r
379 } //-- java.lang.String getNewick()
\r
382 * Returns the value of field 'showBootstrap'.
\r
385 * @return the value of field 'showBootstrap'.
\r
387 public boolean getShowBootstrap()
\r
389 return this._showBootstrap;
\r
390 } //-- boolean getShowBootstrap()
\r
393 * Returns the value of field 'showDistances'.
\r
396 * @return the value of field 'showDistances'.
\r
398 public boolean getShowDistances()
\r
400 return this._showDistances;
\r
401 } //-- boolean getShowDistances()
\r
404 * Returns the value of field 'threshold'.
\r
407 * @return the value of field 'threshold'.
\r
409 public float getThreshold()
\r
411 return this._threshold;
\r
412 } //-- float getThreshold()
\r
415 * Returns the value of field 'title'.
\r
418 * @return the value of field 'title'.
\r
420 public java.lang.String getTitle()
\r
422 return this._title;
\r
423 } //-- java.lang.String getTitle()
\r
426 * Returns the value of field 'width'.
\r
429 * @return the value of field 'width'.
\r
431 public int getWidth()
\r
433 return this._width;
\r
434 } //-- int getWidth()
\r
437 * Returns the value of field 'xpos'.
\r
440 * @return the value of field 'xpos'.
\r
442 public int getXpos()
\r
445 } //-- int getXpos()
\r
448 * Returns the value of field 'ypos'.
\r
451 * @return the value of field 'ypos'.
\r
453 public int getYpos()
\r
456 } //-- int getYpos()
\r
459 * Method hasCurrentTree
\r
465 public boolean hasCurrentTree()
\r
467 return this._has_currentTree;
\r
468 } //-- boolean hasCurrentTree()
\r
471 * Method hasFitToWindow
\r
477 public boolean hasFitToWindow()
\r
479 return this._has_fitToWindow;
\r
480 } //-- boolean hasFitToWindow()
\r
483 * Method hasFontSize
\r
489 public boolean hasFontSize()
\r
491 return this._has_fontSize;
\r
492 } //-- boolean hasFontSize()
\r
495 * Method hasFontStyle
\r
501 public boolean hasFontStyle()
\r
503 return this._has_fontStyle;
\r
504 } //-- boolean hasFontStyle()
\r
513 public boolean hasHeight()
\r
515 return this._has_height;
\r
516 } //-- boolean hasHeight()
\r
519 * Method hasMarkUnlinked
\r
525 public boolean hasMarkUnlinked()
\r
527 return this._has_markUnlinked;
\r
528 } //-- boolean hasMarkUnlinked()
\r
531 * Method hasShowBootstrap
\r
537 public boolean hasShowBootstrap()
\r
539 return this._has_showBootstrap;
\r
540 } //-- boolean hasShowBootstrap()
\r
543 * Method hasShowDistances
\r
549 public boolean hasShowDistances()
\r
551 return this._has_showDistances;
\r
552 } //-- boolean hasShowDistances()
\r
555 * Method hasThreshold
\r
561 public boolean hasThreshold()
\r
563 return this._has_threshold;
\r
564 } //-- boolean hasThreshold()
\r
573 public boolean hasWidth()
\r
575 return this._has_width;
\r
576 } //-- boolean hasWidth()
\r
585 public boolean hasXpos()
\r
587 return this._has_xpos;
\r
588 } //-- boolean hasXpos()
\r
597 public boolean hasYpos()
\r
599 return this._has_ypos;
\r
600 } //-- boolean hasYpos()
\r
609 public boolean isValid()
\r
614 catch (org.exolab.castor.xml.ValidationException vex) {
\r
618 } //-- boolean isValid()
\r
627 public void marshal(java.io.Writer out)
\r
628 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
\r
631 Marshaller.marshal(this, out);
\r
632 } //-- void marshal(java.io.Writer)
\r
641 public void marshal(org.xml.sax.ContentHandler handler)
\r
642 throws java.io.IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
\r
645 Marshaller.marshal(this, handler);
\r
646 } //-- void marshal(org.xml.sax.ContentHandler)
\r
649 * Sets the value of field 'currentTree'.
\r
651 * @param currentTree the value of field 'currentTree'.
\r
653 public void setCurrentTree(boolean currentTree)
\r
655 this._currentTree = currentTree;
\r
656 this._has_currentTree = true;
\r
657 } //-- void setCurrentTree(boolean)
\r
660 * Sets the value of field 'fitToWindow'.
\r
662 * @param fitToWindow the value of field 'fitToWindow'.
\r
664 public void setFitToWindow(boolean fitToWindow)
\r
666 this._fitToWindow = fitToWindow;
\r
667 this._has_fitToWindow = true;
\r
668 } //-- void setFitToWindow(boolean)
\r
671 * Sets the value of field 'fontName'.
\r
673 * @param fontName the value of field 'fontName'.
\r
675 public void setFontName(java.lang.String fontName)
\r
677 this._fontName = fontName;
\r
678 } //-- void setFontName(java.lang.String)
\r
681 * Sets the value of field 'fontSize'.
\r
683 * @param fontSize the value of field 'fontSize'.
\r
685 public void setFontSize(int fontSize)
\r
687 this._fontSize = fontSize;
\r
688 this._has_fontSize = true;
\r
689 } //-- void setFontSize(int)
\r
692 * Sets the value of field 'fontStyle'.
\r
694 * @param fontStyle the value of field 'fontStyle'.
\r
696 public void setFontStyle(int fontStyle)
\r
698 this._fontStyle = fontStyle;
\r
699 this._has_fontStyle = true;
\r
700 } //-- void setFontStyle(int)
\r
703 * Sets the value of field 'height'.
\r
705 * @param height the value of field 'height'.
\r
707 public void setHeight(int height)
\r
709 this._height = height;
\r
710 this._has_height = true;
\r
711 } //-- void setHeight(int)
\r
714 * Sets the value of field 'markUnlinked'.
\r
716 * @param markUnlinked the value of field 'markUnlinked'.
\r
718 public void setMarkUnlinked(boolean markUnlinked)
\r
720 this._markUnlinked = markUnlinked;
\r
721 this._has_markUnlinked = true;
\r
722 } //-- void setMarkUnlinked(boolean)
\r
725 * Sets the value of field 'newick'.
\r
727 * @param newick the value of field 'newick'.
\r
729 public void setNewick(java.lang.String newick)
\r
731 this._newick = newick;
\r
732 } //-- void setNewick(java.lang.String)
\r
735 * Sets the value of field 'showBootstrap'.
\r
737 * @param showBootstrap the value of field 'showBootstrap'.
\r
739 public void setShowBootstrap(boolean showBootstrap)
\r
741 this._showBootstrap = showBootstrap;
\r
742 this._has_showBootstrap = true;
\r
743 } //-- void setShowBootstrap(boolean)
\r
746 * Sets the value of field 'showDistances'.
\r
748 * @param showDistances the value of field 'showDistances'.
\r
750 public void setShowDistances(boolean showDistances)
\r
752 this._showDistances = showDistances;
\r
753 this._has_showDistances = true;
\r
754 } //-- void setShowDistances(boolean)
\r
757 * Sets the value of field 'threshold'.
\r
759 * @param threshold the value of field 'threshold'.
\r
761 public void setThreshold(float threshold)
\r
763 this._threshold = threshold;
\r
764 this._has_threshold = true;
\r
765 } //-- void setThreshold(float)
\r
768 * Sets the value of field 'title'.
\r
770 * @param title the value of field 'title'.
\r
772 public void setTitle(java.lang.String title)
\r
774 this._title = title;
\r
775 } //-- void setTitle(java.lang.String)
\r
778 * Sets the value of field 'width'.
\r
780 * @param width the value of field 'width'.
\r
782 public void setWidth(int width)
\r
784 this._width = width;
\r
785 this._has_width = true;
\r
786 } //-- void setWidth(int)
\r
789 * Sets the value of field 'xpos'.
\r
791 * @param xpos the value of field 'xpos'.
\r
793 public void setXpos(int xpos)
\r
796 this._has_xpos = true;
\r
797 } //-- void setXpos(int)
\r
800 * Sets the value of field 'ypos'.
\r
802 * @param ypos the value of field 'ypos'.
\r
804 public void setYpos(int ypos)
\r
807 this._has_ypos = true;
\r
808 } //-- void setYpos(int)
\r
818 public static java.lang.Object unmarshal(java.io.Reader reader)
\r
819 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
\r
821 return (jalview.binding.Tree) Unmarshaller.unmarshal(jalview.binding.Tree.class, reader);
\r
822 } //-- java.lang.Object unmarshal(java.io.Reader)
\r
828 public void validate()
\r
829 throws org.exolab.castor.xml.ValidationException
\r
831 org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
\r
832 validator.validate(this);
\r
833 } //-- void validate()
\r