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 Tree implements java.io.Serializable
25 // --------------------------/
26 // - Class/Member Variables -/
27 // --------------------------/
35 * keeps track of state for field: _width
37 private boolean _has_width;
45 * keeps track of state for field: _height
47 private boolean _has_height;
55 * keeps track of state for field: _xpos
57 private boolean _has_xpos;
65 * keeps track of state for field: _ypos
67 private boolean _has_ypos;
72 private java.lang.String _fontName;
77 private int _fontSize;
80 * keeps track of state for field: _fontSize
82 private boolean _has_fontSize;
87 private int _fontStyle;
90 * keeps track of state for field: _fontStyle
92 private boolean _has_fontStyle;
97 private float _threshold;
100 * keeps track of state for field: _threshold
102 private boolean _has_threshold;
105 * Field _showBootstrap.
107 private boolean _showBootstrap;
110 * keeps track of state for field: _showBootstrap
112 private boolean _has_showBootstrap;
115 * Field _showDistances.
117 private boolean _showDistances;
120 * keeps track of state for field: _showDistances
122 private boolean _has_showDistances;
125 * Field _markUnlinked.
127 private boolean _markUnlinked;
130 * keeps track of state for field: _markUnlinked
132 private boolean _has_markUnlinked;
135 * Field _fitToWindow.
137 private boolean _fitToWindow;
140 * keeps track of state for field: _fitToWindow
142 private boolean _has_fitToWindow;
145 * Field _currentTree.
147 private boolean _currentTree;
150 * keeps track of state for field: _currentTree
152 private boolean _has_currentTree;
157 private java.lang.String _title;
162 private java.lang.String _newick;
179 public void deleteCurrentTree()
181 this._has_currentTree = false;
186 public void deleteFitToWindow()
188 this._has_fitToWindow = false;
193 public void deleteFontSize()
195 this._has_fontSize = false;
200 public void deleteFontStyle()
202 this._has_fontStyle = false;
207 public void deleteHeight()
209 this._has_height = false;
214 public void deleteMarkUnlinked()
216 this._has_markUnlinked = false;
221 public void deleteShowBootstrap()
223 this._has_showBootstrap = false;
228 public void deleteShowDistances()
230 this._has_showDistances = false;
235 public void deleteThreshold()
237 this._has_threshold = false;
242 public void deleteWidth()
244 this._has_width = false;
249 public void deleteXpos()
251 this._has_xpos = false;
256 public void deleteYpos()
258 this._has_ypos = false;
262 * Returns the value of field 'currentTree'.
264 * @return the value of field 'CurrentTree'.
266 public boolean getCurrentTree()
268 return this._currentTree;
272 * Returns the value of field 'fitToWindow'.
274 * @return the value of field 'FitToWindow'.
276 public boolean getFitToWindow()
278 return this._fitToWindow;
282 * Returns the value of field 'fontName'.
284 * @return the value of field 'FontName'.
286 public java.lang.String getFontName()
288 return this._fontName;
292 * Returns the value of field 'fontSize'.
294 * @return the value of field 'FontSize'.
296 public int getFontSize()
298 return this._fontSize;
302 * Returns the value of field 'fontStyle'.
304 * @return the value of field 'FontStyle'.
306 public int getFontStyle()
308 return this._fontStyle;
312 * Returns the value of field 'height'.
314 * @return the value of field 'Height'.
316 public int getHeight()
322 * Returns the value of field 'markUnlinked'.
324 * @return the value of field 'MarkUnlinked'.
326 public boolean getMarkUnlinked()
328 return this._markUnlinked;
332 * Returns the value of field 'newick'.
334 * @return the value of field 'Newick'.
336 public java.lang.String getNewick()
342 * Returns the value of field 'showBootstrap'.
344 * @return the value of field 'ShowBootstrap'.
346 public boolean getShowBootstrap()
348 return this._showBootstrap;
352 * Returns the value of field 'showDistances'.
354 * @return the value of field 'ShowDistances'.
356 public boolean getShowDistances()
358 return this._showDistances;
362 * Returns the value of field 'threshold'.
364 * @return the value of field 'Threshold'.
366 public float getThreshold()
368 return this._threshold;
372 * Returns the value of field 'title'.
374 * @return the value of field 'Title'.
376 public java.lang.String getTitle()
382 * Returns the value of field 'width'.
384 * @return the value of field 'Width'.
386 public int getWidth()
392 * Returns the value of field 'xpos'.
394 * @return the value of field 'Xpos'.
402 * Returns the value of field 'ypos'.
404 * @return the value of field 'Ypos'.
412 * Method hasCurrentTree.
414 * @return true if at least one CurrentTree has been added
416 public boolean hasCurrentTree()
418 return this._has_currentTree;
422 * Method hasFitToWindow.
424 * @return true if at least one FitToWindow has been added
426 public boolean hasFitToWindow()
428 return this._has_fitToWindow;
432 * Method hasFontSize.
434 * @return true if at least one FontSize has been added
436 public boolean hasFontSize()
438 return this._has_fontSize;
442 * Method hasFontStyle.
444 * @return true if at least one FontStyle has been added
446 public boolean hasFontStyle()
448 return this._has_fontStyle;
454 * @return true if at least one Height has been added
456 public boolean hasHeight()
458 return this._has_height;
462 * Method hasMarkUnlinked.
464 * @return true if at least one MarkUnlinked has been added
466 public boolean hasMarkUnlinked()
468 return this._has_markUnlinked;
472 * Method hasShowBootstrap.
474 * @return true if at least one ShowBootstrap has been added
476 public boolean hasShowBootstrap()
478 return this._has_showBootstrap;
482 * Method hasShowDistances.
484 * @return true if at least one ShowDistances has been added
486 public boolean hasShowDistances()
488 return this._has_showDistances;
492 * Method hasThreshold.
494 * @return true if at least one Threshold has been added
496 public boolean hasThreshold()
498 return this._has_threshold;
504 * @return true if at least one Width has been added
506 public boolean hasWidth()
508 return this._has_width;
514 * @return true if at least one Xpos has been added
516 public boolean hasXpos()
518 return this._has_xpos;
524 * @return true if at least one Ypos has been added
526 public boolean hasYpos()
528 return this._has_ypos;
532 * Returns the value of field 'currentTree'.
534 * @return the value of field 'CurrentTree'.
536 public boolean isCurrentTree()
538 return this._currentTree;
542 * Returns the value of field 'fitToWindow'.
544 * @return the value of field 'FitToWindow'.
546 public boolean isFitToWindow()
548 return this._fitToWindow;
552 * Returns the value of field 'markUnlinked'.
554 * @return the value of field 'MarkUnlinked'.
556 public boolean isMarkUnlinked()
558 return this._markUnlinked;
562 * Returns the value of field 'showBootstrap'.
564 * @return the value of field 'ShowBootstrap'.
566 public boolean isShowBootstrap()
568 return this._showBootstrap;
572 * Returns the value of field 'showDistances'.
574 * @return the value of field 'ShowDistances'.
576 public boolean isShowDistances()
578 return this._showDistances;
584 * @return true if this object is valid according to the schema
586 public boolean isValid()
591 } catch (org.exolab.castor.xml.ValidationException vex)
602 * @throws org.exolab.castor.xml.MarshalException
603 * if object is null or if any SAXException is thrown during
605 * @throws org.exolab.castor.xml.ValidationException
606 * if this object is an invalid instance according to the schema
608 public void marshal(final java.io.Writer out)
609 throws org.exolab.castor.xml.MarshalException,
610 org.exolab.castor.xml.ValidationException
612 Marshaller.marshal(this, out);
619 * @throws java.io.IOException
620 * if an IOException occurs during marshaling
621 * @throws org.exolab.castor.xml.ValidationException
622 * if this object is an invalid instance according to the schema
623 * @throws org.exolab.castor.xml.MarshalException
624 * if object is null or if any SAXException is thrown during
627 public void marshal(final org.xml.sax.ContentHandler handler)
628 throws java.io.IOException,
629 org.exolab.castor.xml.MarshalException,
630 org.exolab.castor.xml.ValidationException
632 Marshaller.marshal(this, handler);
636 * Sets the value of field 'currentTree'.
639 * the value of field 'currentTree'.
641 public void setCurrentTree(final boolean currentTree)
643 this._currentTree = currentTree;
644 this._has_currentTree = true;
648 * Sets the value of field 'fitToWindow'.
651 * the value of field 'fitToWindow'.
653 public void setFitToWindow(final boolean fitToWindow)
655 this._fitToWindow = fitToWindow;
656 this._has_fitToWindow = true;
660 * Sets the value of field 'fontName'.
663 * the value of field 'fontName'.
665 public void setFontName(final java.lang.String fontName)
667 this._fontName = fontName;
671 * Sets the value of field 'fontSize'.
674 * the value of field 'fontSize'.
676 public void setFontSize(final int fontSize)
678 this._fontSize = fontSize;
679 this._has_fontSize = true;
683 * Sets the value of field 'fontStyle'.
686 * the value of field 'fontStyle'.
688 public void setFontStyle(final int fontStyle)
690 this._fontStyle = fontStyle;
691 this._has_fontStyle = true;
695 * Sets the value of field 'height'.
698 * the value of field 'height'.
700 public void setHeight(final int height)
702 this._height = height;
703 this._has_height = true;
707 * Sets the value of field 'markUnlinked'.
709 * @param markUnlinked
710 * the value of field 'markUnlinked'.
712 public void setMarkUnlinked(final boolean markUnlinked)
714 this._markUnlinked = markUnlinked;
715 this._has_markUnlinked = true;
719 * Sets the value of field 'newick'.
722 * the value of field 'newick'.
724 public void setNewick(final java.lang.String newick)
726 this._newick = newick;
730 * Sets the value of field 'showBootstrap'.
732 * @param showBootstrap
733 * the value of field 'showBootstrap'.
735 public void setShowBootstrap(final boolean showBootstrap)
737 this._showBootstrap = showBootstrap;
738 this._has_showBootstrap = true;
742 * Sets the value of field 'showDistances'.
744 * @param showDistances
745 * the value of field 'showDistances'.
747 public void setShowDistances(final boolean showDistances)
749 this._showDistances = showDistances;
750 this._has_showDistances = true;
754 * Sets the value of field 'threshold'.
757 * the value of field 'threshold'.
759 public void setThreshold(final float threshold)
761 this._threshold = threshold;
762 this._has_threshold = true;
766 * Sets the value of field 'title'.
769 * the value of field 'title'.
771 public void setTitle(final java.lang.String title)
777 * Sets the value of field 'width'.
780 * the value of field 'width'.
782 public void setWidth(final int width)
785 this._has_width = true;
789 * Sets the value of field 'xpos'.
792 * the value of field 'xpos'.
794 public void setXpos(final int xpos)
797 this._has_xpos = true;
801 * Sets the value of field 'ypos'.
804 * the value of field 'ypos'.
806 public void setYpos(final int ypos)
809 this._has_ypos = true;
816 * @throws org.exolab.castor.xml.MarshalException
817 * if object is null or if any SAXException is thrown during
819 * @throws org.exolab.castor.xml.ValidationException
820 * if this object is an invalid instance according to the schema
821 * @return the unmarshaled jalview.binding.Tree
823 public static jalview.binding.Tree unmarshal(final java.io.Reader reader)
824 throws org.exolab.castor.xml.MarshalException,
825 org.exolab.castor.xml.ValidationException
827 return (jalview.binding.Tree) Unmarshaller.unmarshal(
828 jalview.binding.Tree.class, reader);
834 * @throws org.exolab.castor.xml.ValidationException
835 * if this object is an invalid instance according to the schema
837 public void validate() throws org.exolab.castor.xml.ValidationException
839 org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
840 validator.validate(this);