2 * This class was automatically generated with
3 * <a href="http://www.castor.org">Castor 1.1</a>, using an XML
8 package jalview.schemabinding.version2;
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 Tree implements java.io.Serializable
25 // --------------------------/
26 // - Class/Member Variables -/
27 // --------------------------/
32 private java.lang.String _fontName;
37 private int _fontSize;
40 * keeps track of state for field: _fontSize
42 private boolean _has_fontSize;
47 private int _fontStyle;
50 * keeps track of state for field: _fontStyle
52 private boolean _has_fontStyle;
57 private float _threshold;
60 * keeps track of state for field: _threshold
62 private boolean _has_threshold;
65 * Field _showBootstrap.
67 private boolean _showBootstrap;
70 * keeps track of state for field: _showBootstrap
72 private boolean _has_showBootstrap;
75 * Field _showDistances.
77 private boolean _showDistances;
80 * keeps track of state for field: _showDistances
82 private boolean _has_showDistances;
85 * Field _markUnlinked.
87 private boolean _markUnlinked;
90 * keeps track of state for field: _markUnlinked
92 private boolean _has_markUnlinked;
97 private boolean _fitToWindow;
100 * keeps track of state for field: _fitToWindow
102 private boolean _has_fitToWindow;
105 * Field _currentTree.
107 private boolean _currentTree;
110 * keeps track of state for field: _currentTree
112 private boolean _has_currentTree;
115 * Tree ID added for binding tree visualization settings to vamsas document
116 * trees in jalview 2.4.1
119 private java.lang.String _id;
127 * keeps track of state for field: _width
129 private boolean _has_width;
137 * keeps track of state for field: _height
139 private boolean _has_height;
147 * keeps track of state for field: _xpos
149 private boolean _has_xpos;
157 * keeps track of state for field: _ypos
159 private boolean _has_ypos;
164 private java.lang.String _title;
169 private java.lang.String _newick;
186 public void deleteCurrentTree()
188 this._has_currentTree = false;
193 public void deleteFitToWindow()
195 this._has_fitToWindow = false;
200 public void deleteFontSize()
202 this._has_fontSize = false;
207 public void deleteFontStyle()
209 this._has_fontStyle = false;
214 public void deleteHeight()
216 this._has_height = false;
221 public void deleteMarkUnlinked()
223 this._has_markUnlinked = false;
228 public void deleteShowBootstrap()
230 this._has_showBootstrap = false;
235 public void deleteShowDistances()
237 this._has_showDistances = false;
242 public void deleteThreshold()
244 this._has_threshold = false;
249 public void deleteWidth()
251 this._has_width = false;
256 public void deleteXpos()
258 this._has_xpos = false;
263 public void deleteYpos()
265 this._has_ypos = false;
269 * Returns the value of field 'currentTree'.
271 * @return the value of field 'CurrentTree'.
273 public boolean getCurrentTree()
275 return this._currentTree;
279 * Returns the value of field 'fitToWindow'.
281 * @return the value of field 'FitToWindow'.
283 public boolean getFitToWindow()
285 return this._fitToWindow;
289 * Returns the value of field 'fontName'.
291 * @return the value of field 'FontName'.
293 public java.lang.String getFontName()
295 return this._fontName;
299 * Returns the value of field 'fontSize'.
301 * @return the value of field 'FontSize'.
303 public int getFontSize()
305 return this._fontSize;
309 * Returns the value of field 'fontStyle'.
311 * @return the value of field 'FontStyle'.
313 public int getFontStyle()
315 return this._fontStyle;
319 * Returns the value of field 'height'.
321 * @return the value of field 'Height'.
323 public int getHeight()
329 * Returns the value of field 'id'. The field 'id' has the following
330 * description: Tree ID added for binding tree visualization settings to
331 * vamsas document trees in jalview 2.4.1
334 * @return the value of field 'Id'.
336 public java.lang.String getId()
342 * Returns the value of field 'markUnlinked'.
344 * @return the value of field 'MarkUnlinked'.
346 public boolean getMarkUnlinked()
348 return this._markUnlinked;
352 * Returns the value of field 'newick'.
354 * @return the value of field 'Newick'.
356 public java.lang.String getNewick()
362 * Returns the value of field 'showBootstrap'.
364 * @return the value of field 'ShowBootstrap'.
366 public boolean getShowBootstrap()
368 return this._showBootstrap;
372 * Returns the value of field 'showDistances'.
374 * @return the value of field 'ShowDistances'.
376 public boolean getShowDistances()
378 return this._showDistances;
382 * Returns the value of field 'threshold'.
384 * @return the value of field 'Threshold'.
386 public float getThreshold()
388 return this._threshold;
392 * Returns the value of field 'title'.
394 * @return the value of field 'Title'.
396 public java.lang.String getTitle()
402 * Returns the value of field 'width'.
404 * @return the value of field 'Width'.
406 public int getWidth()
412 * Returns the value of field 'xpos'.
414 * @return the value of field 'Xpos'.
422 * Returns the value of field 'ypos'.
424 * @return the value of field 'Ypos'.
432 * Method hasCurrentTree.
434 * @return true if at least one CurrentTree has been added
436 public boolean hasCurrentTree()
438 return this._has_currentTree;
442 * Method hasFitToWindow.
444 * @return true if at least one FitToWindow has been added
446 public boolean hasFitToWindow()
448 return this._has_fitToWindow;
452 * Method hasFontSize.
454 * @return true if at least one FontSize has been added
456 public boolean hasFontSize()
458 return this._has_fontSize;
462 * Method hasFontStyle.
464 * @return true if at least one FontStyle has been added
466 public boolean hasFontStyle()
468 return this._has_fontStyle;
474 * @return true if at least one Height has been added
476 public boolean hasHeight()
478 return this._has_height;
482 * Method hasMarkUnlinked.
484 * @return true if at least one MarkUnlinked has been added
486 public boolean hasMarkUnlinked()
488 return this._has_markUnlinked;
492 * Method hasShowBootstrap.
494 * @return true if at least one ShowBootstrap has been added
496 public boolean hasShowBootstrap()
498 return this._has_showBootstrap;
502 * Method hasShowDistances.
504 * @return true if at least one ShowDistances has been added
506 public boolean hasShowDistances()
508 return this._has_showDistances;
512 * Method hasThreshold.
514 * @return true if at least one Threshold has been added
516 public boolean hasThreshold()
518 return this._has_threshold;
524 * @return true if at least one Width has been added
526 public boolean hasWidth()
528 return this._has_width;
534 * @return true if at least one Xpos has been added
536 public boolean hasXpos()
538 return this._has_xpos;
544 * @return true if at least one Ypos has been added
546 public boolean hasYpos()
548 return this._has_ypos;
552 * Returns the value of field 'currentTree'.
554 * @return the value of field 'CurrentTree'.
556 public boolean isCurrentTree()
558 return this._currentTree;
562 * Returns the value of field 'fitToWindow'.
564 * @return the value of field 'FitToWindow'.
566 public boolean isFitToWindow()
568 return this._fitToWindow;
572 * Returns the value of field 'markUnlinked'.
574 * @return the value of field 'MarkUnlinked'.
576 public boolean isMarkUnlinked()
578 return this._markUnlinked;
582 * Returns the value of field 'showBootstrap'.
584 * @return the value of field 'ShowBootstrap'.
586 public boolean isShowBootstrap()
588 return this._showBootstrap;
592 * Returns the value of field 'showDistances'.
594 * @return the value of field 'ShowDistances'.
596 public boolean isShowDistances()
598 return this._showDistances;
604 * @return true if this object is valid according to the schema
606 public boolean isValid()
611 } catch (org.exolab.castor.xml.ValidationException vex)
622 * @throws org.exolab.castor.xml.MarshalException
623 * if object is null or if any SAXException is thrown during
625 * @throws org.exolab.castor.xml.ValidationException
626 * if this object is an invalid instance according to the schema
628 public void marshal(final java.io.Writer out)
629 throws org.exolab.castor.xml.MarshalException,
630 org.exolab.castor.xml.ValidationException
632 Marshaller.marshal(this, out);
639 * @throws java.io.IOException
640 * if an IOException occurs during marshaling
641 * @throws org.exolab.castor.xml.ValidationException
642 * if this object is an invalid instance according to the schema
643 * @throws org.exolab.castor.xml.MarshalException
644 * if object is null or if any SAXException is thrown during
647 public void marshal(final org.xml.sax.ContentHandler handler)
648 throws java.io.IOException,
649 org.exolab.castor.xml.MarshalException,
650 org.exolab.castor.xml.ValidationException
652 Marshaller.marshal(this, handler);
656 * Sets the value of field 'currentTree'.
659 * the value of field 'currentTree'.
661 public void setCurrentTree(final boolean currentTree)
663 this._currentTree = currentTree;
664 this._has_currentTree = true;
668 * Sets the value of field 'fitToWindow'.
671 * the value of field 'fitToWindow'.
673 public void setFitToWindow(final boolean fitToWindow)
675 this._fitToWindow = fitToWindow;
676 this._has_fitToWindow = true;
680 * Sets the value of field 'fontName'.
683 * the value of field 'fontName'.
685 public void setFontName(final java.lang.String fontName)
687 this._fontName = fontName;
691 * Sets the value of field 'fontSize'.
694 * the value of field 'fontSize'.
696 public void setFontSize(final int fontSize)
698 this._fontSize = fontSize;
699 this._has_fontSize = true;
703 * Sets the value of field 'fontStyle'.
706 * the value of field 'fontStyle'.
708 public void setFontStyle(final int fontStyle)
710 this._fontStyle = fontStyle;
711 this._has_fontStyle = true;
715 * Sets the value of field 'height'.
718 * the value of field 'height'.
720 public void setHeight(final int height)
722 this._height = height;
723 this._has_height = true;
727 * Sets the value of field 'id'. The field 'id' has the following description:
728 * Tree ID added for binding tree visualization settings to vamsas document
729 * trees in jalview 2.4.1
733 * the value of field 'id'.
735 public void setId(final java.lang.String id)
741 * Sets the value of field 'markUnlinked'.
743 * @param markUnlinked
744 * the value of field 'markUnlinked'.
746 public void setMarkUnlinked(final boolean markUnlinked)
748 this._markUnlinked = markUnlinked;
749 this._has_markUnlinked = true;
753 * Sets the value of field 'newick'.
756 * the value of field 'newick'.
758 public void setNewick(final java.lang.String newick)
760 this._newick = newick;
764 * Sets the value of field 'showBootstrap'.
766 * @param showBootstrap
767 * the value of field 'showBootstrap'.
769 public void setShowBootstrap(final boolean showBootstrap)
771 this._showBootstrap = showBootstrap;
772 this._has_showBootstrap = true;
776 * Sets the value of field 'showDistances'.
778 * @param showDistances
779 * the value of field 'showDistances'.
781 public void setShowDistances(final boolean showDistances)
783 this._showDistances = showDistances;
784 this._has_showDistances = true;
788 * Sets the value of field 'threshold'.
791 * the value of field 'threshold'.
793 public void setThreshold(final float threshold)
795 this._threshold = threshold;
796 this._has_threshold = true;
800 * Sets the value of field 'title'.
803 * the value of field 'title'.
805 public void setTitle(final java.lang.String title)
811 * Sets the value of field 'width'.
814 * the value of field 'width'.
816 public void setWidth(final int width)
819 this._has_width = true;
823 * Sets the value of field 'xpos'.
826 * the value of field 'xpos'.
828 public void setXpos(final int xpos)
831 this._has_xpos = true;
835 * Sets the value of field 'ypos'.
838 * the value of field 'ypos'.
840 public void setYpos(final int ypos)
843 this._has_ypos = true;
850 * @throws org.exolab.castor.xml.MarshalException
851 * if object is null or if any SAXException is thrown during
853 * @throws org.exolab.castor.xml.ValidationException
854 * if this object is an invalid instance according to the schema
855 * @return the unmarshaled jalview.schemabinding.version2.Tree
857 public static jalview.schemabinding.version2.Tree unmarshal(
858 final java.io.Reader reader)
859 throws org.exolab.castor.xml.MarshalException,
860 org.exolab.castor.xml.ValidationException
862 return (jalview.schemabinding.version2.Tree) Unmarshaller.unmarshal(
863 jalview.schemabinding.version2.Tree.class, reader);
869 * @throws org.exolab.castor.xml.ValidationException
870 * if this object is an invalid instance according to the schema
872 public void validate() throws org.exolab.castor.xml.ValidationException
874 org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
875 validator.validate(this);