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;
180 public void deleteCurrentTree(
182 this._has_currentTree= false;
187 public void deleteFitToWindow(
189 this._has_fitToWindow= false;
194 public void deleteFontSize(
196 this._has_fontSize= false;
201 public void deleteFontStyle(
203 this._has_fontStyle= false;
208 public void deleteHeight(
210 this._has_height= false;
215 public void deleteMarkUnlinked(
217 this._has_markUnlinked= false;
222 public void deleteShowBootstrap(
224 this._has_showBootstrap= false;
229 public void deleteShowDistances(
231 this._has_showDistances= false;
236 public void deleteThreshold(
238 this._has_threshold= false;
243 public void deleteWidth(
245 this._has_width= false;
250 public void deleteXpos(
252 this._has_xpos= false;
257 public void deleteYpos(
259 this._has_ypos= false;
263 * Returns the value of field 'currentTree'.
265 * @return the value of field 'CurrentTree'.
267 public boolean getCurrentTree(
269 return this._currentTree;
273 * Returns the value of field 'fitToWindow'.
275 * @return the value of field 'FitToWindow'.
277 public boolean getFitToWindow(
279 return this._fitToWindow;
283 * Returns the value of field 'fontName'.
285 * @return the value of field 'FontName'.
287 public java.lang.String getFontName(
289 return this._fontName;
293 * Returns the value of field 'fontSize'.
295 * @return the value of field 'FontSize'.
297 public int getFontSize(
299 return this._fontSize;
303 * Returns the value of field 'fontStyle'.
305 * @return the value of field 'FontStyle'.
307 public int getFontStyle(
309 return this._fontStyle;
313 * Returns the value of field 'height'.
315 * @return the value of field 'Height'.
317 public int getHeight(
323 * Returns the value of field 'markUnlinked'.
325 * @return the value of field 'MarkUnlinked'.
327 public boolean getMarkUnlinked(
329 return this._markUnlinked;
333 * Returns the value of field 'newick'.
335 * @return the value of field 'Newick'.
337 public java.lang.String getNewick(
343 * Returns the value of field 'showBootstrap'.
345 * @return the value of field 'ShowBootstrap'.
347 public boolean getShowBootstrap(
349 return this._showBootstrap;
353 * Returns the value of field 'showDistances'.
355 * @return the value of field 'ShowDistances'.
357 public boolean getShowDistances(
359 return this._showDistances;
363 * Returns the value of field 'threshold'.
365 * @return the value of field 'Threshold'.
367 public float getThreshold(
369 return this._threshold;
373 * Returns the value of field 'title'.
375 * @return the value of field 'Title'.
377 public java.lang.String getTitle(
383 * Returns the value of field 'width'.
385 * @return the value of field 'Width'.
393 * Returns the value of field 'xpos'.
395 * @return the value of field 'Xpos'.
403 * Returns the value of field 'ypos'.
405 * @return the value of field 'Ypos'.
413 * Method hasCurrentTree.
415 * @return true if at least one CurrentTree has been added
417 public boolean hasCurrentTree(
419 return this._has_currentTree;
423 * Method hasFitToWindow.
425 * @return true if at least one FitToWindow has been added
427 public boolean hasFitToWindow(
429 return this._has_fitToWindow;
433 * Method hasFontSize.
435 * @return true if at least one FontSize has been added
437 public boolean hasFontSize(
439 return this._has_fontSize;
443 * Method hasFontStyle.
445 * @return true if at least one FontStyle has been added
447 public boolean hasFontStyle(
449 return this._has_fontStyle;
455 * @return true if at least one Height has been added
457 public boolean hasHeight(
459 return this._has_height;
463 * Method hasMarkUnlinked.
465 * @return true if at least one MarkUnlinked has been added
467 public boolean hasMarkUnlinked(
469 return this._has_markUnlinked;
473 * Method hasShowBootstrap.
475 * @return true if at least one ShowBootstrap has been added
477 public boolean hasShowBootstrap(
479 return this._has_showBootstrap;
483 * Method hasShowDistances.
485 * @return true if at least one ShowDistances has been added
487 public boolean hasShowDistances(
489 return this._has_showDistances;
493 * Method hasThreshold.
495 * @return true if at least one Threshold has been added
497 public boolean hasThreshold(
499 return this._has_threshold;
505 * @return true if at least one Width has been added
507 public boolean hasWidth(
509 return this._has_width;
515 * @return true if at least one Xpos has been added
517 public boolean hasXpos(
519 return this._has_xpos;
525 * @return true if at least one Ypos has been added
527 public boolean hasYpos(
529 return this._has_ypos;
533 * Returns the value of field 'currentTree'.
535 * @return the value of field 'CurrentTree'.
537 public boolean isCurrentTree(
539 return this._currentTree;
543 * Returns the value of field 'fitToWindow'.
545 * @return the value of field 'FitToWindow'.
547 public boolean isFitToWindow(
549 return this._fitToWindow;
553 * Returns the value of field 'markUnlinked'.
555 * @return the value of field 'MarkUnlinked'.
557 public boolean isMarkUnlinked(
559 return this._markUnlinked;
563 * Returns the value of field 'showBootstrap'.
565 * @return the value of field 'ShowBootstrap'.
567 public boolean isShowBootstrap(
569 return this._showBootstrap;
573 * Returns the value of field 'showDistances'.
575 * @return the value of field 'ShowDistances'.
577 public boolean isShowDistances(
579 return this._showDistances;
585 * @return true if this object is valid according to the schema
587 public boolean isValid(
591 } catch (org.exolab.castor.xml.ValidationException vex) {
601 * @throws org.exolab.castor.xml.MarshalException if object is
602 * null or if any SAXException is thrown during marshaling
603 * @throws org.exolab.castor.xml.ValidationException if this
604 * object is an invalid instance according to the schema
607 final java.io.Writer out)
608 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
609 Marshaller.marshal(this, out);
616 * @throws java.io.IOException if an IOException occurs during
618 * @throws org.exolab.castor.xml.ValidationException if this
619 * object is an invalid instance according to the schema
620 * @throws org.exolab.castor.xml.MarshalException if object is
621 * null or if any SAXException is thrown during marshaling
624 final org.xml.sax.ContentHandler handler)
625 throws java.io.IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
626 Marshaller.marshal(this, handler);
630 * Sets the value of field 'currentTree'.
632 * @param currentTree the value of field 'currentTree'.
634 public void setCurrentTree(
635 final boolean currentTree) {
636 this._currentTree = currentTree;
637 this._has_currentTree = true;
641 * Sets the value of field 'fitToWindow'.
643 * @param fitToWindow the value of field 'fitToWindow'.
645 public void setFitToWindow(
646 final boolean fitToWindow) {
647 this._fitToWindow = fitToWindow;
648 this._has_fitToWindow = true;
652 * Sets the value of field 'fontName'.
654 * @param fontName the value of field 'fontName'.
656 public void setFontName(
657 final java.lang.String fontName) {
658 this._fontName = fontName;
662 * Sets the value of field 'fontSize'.
664 * @param fontSize the value of field 'fontSize'.
666 public void setFontSize(
667 final int fontSize) {
668 this._fontSize = fontSize;
669 this._has_fontSize = true;
673 * Sets the value of field 'fontStyle'.
675 * @param fontStyle the value of field 'fontStyle'.
677 public void setFontStyle(
678 final int fontStyle) {
679 this._fontStyle = fontStyle;
680 this._has_fontStyle = true;
684 * Sets the value of field 'height'.
686 * @param height the value of field 'height'.
688 public void setHeight(
690 this._height = height;
691 this._has_height = true;
695 * Sets the value of field 'markUnlinked'.
697 * @param markUnlinked the value of field 'markUnlinked'.
699 public void setMarkUnlinked(
700 final boolean markUnlinked) {
701 this._markUnlinked = markUnlinked;
702 this._has_markUnlinked = true;
706 * Sets the value of field 'newick'.
708 * @param newick the value of field 'newick'.
710 public void setNewick(
711 final java.lang.String newick) {
712 this._newick = newick;
716 * Sets the value of field 'showBootstrap'.
718 * @param showBootstrap the value of field 'showBootstrap'.
720 public void setShowBootstrap(
721 final boolean showBootstrap) {
722 this._showBootstrap = showBootstrap;
723 this._has_showBootstrap = true;
727 * Sets the value of field 'showDistances'.
729 * @param showDistances the value of field 'showDistances'.
731 public void setShowDistances(
732 final boolean showDistances) {
733 this._showDistances = showDistances;
734 this._has_showDistances = true;
738 * Sets the value of field 'threshold'.
740 * @param threshold the value of field 'threshold'.
742 public void setThreshold(
743 final float threshold) {
744 this._threshold = threshold;
745 this._has_threshold = true;
749 * Sets the value of field 'title'.
751 * @param title the value of field 'title'.
753 public void setTitle(
754 final java.lang.String title) {
759 * Sets the value of field 'width'.
761 * @param width the value of field 'width'.
763 public void setWidth(
766 this._has_width = true;
770 * Sets the value of field 'xpos'.
772 * @param xpos the value of field 'xpos'.
777 this._has_xpos = true;
781 * Sets the value of field 'ypos'.
783 * @param ypos the value of field 'ypos'.
788 this._has_ypos = true;
795 * @throws org.exolab.castor.xml.MarshalException if object is
796 * null or if any SAXException is thrown during marshaling
797 * @throws org.exolab.castor.xml.ValidationException if this
798 * object is an invalid instance according to the schema
799 * @return the unmarshaled jalview.binding.Tree
801 public static jalview.binding.Tree unmarshal(
802 final java.io.Reader reader)
803 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
804 return (jalview.binding.Tree) Unmarshaller.unmarshal(jalview.binding.Tree.class, reader);
810 * @throws org.exolab.castor.xml.ValidationException if this
811 * object is an invalid instance according to the schema
813 public void validate(
815 throws org.exolab.castor.xml.ValidationException {
816 org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
817 validator.validate(this);