1 /*******************************************************************************
2 * Jalview - A Sequence Alignment Editor and Viewer ($$Version-Rel$$)
3 * Copyright (C) $(date) The Jalview Authors
5 * This file is part of Jalview.
7 * Jalview is free software: you can redistribute it and/or
8 * modify it under the terms of the GNU General Public License
9 * as published by the Free Software Foundation, either version 3
10 * of the License, or (at your option) any later version.
12 * Jalview is distributed in the hope that it will be useful, but
13 * WITHOUT ANY WARRANTY; without even the implied warranty
14 * of MERCHANTABILITY or FITNESS FOR A PARTICULAR
15 * PURPOSE. See the GNU General Public License for more details.
17 * You should have received a copy of the GNU General Public License
18 * along with Jalview. If not, see <http://www.gnu.org/licenses/>.
19 * The Jalview Authors are detailed in the 'AUTHORS' file.
20 *******************************************************************************/
22 * This class was automatically generated with
23 * <a href="http://www.castor.org">Castor 1.1</a>, using an XML
28 package jalview.schemabinding.version2;
30 //---------------------------------/
31 //- Imported classes and packages -/
32 //---------------------------------/
34 import org.exolab.castor.xml.Marshaller;
35 import org.exolab.castor.xml.Unmarshaller;
40 * @version $Revision$ $Date$
42 public class Tree implements java.io.Serializable
45 // --------------------------/
46 // - Class/Member Variables -/
47 // --------------------------/
52 private java.lang.String _fontName;
57 private int _fontSize;
60 * keeps track of state for field: _fontSize
62 private boolean _has_fontSize;
67 private int _fontStyle;
70 * keeps track of state for field: _fontStyle
72 private boolean _has_fontStyle;
77 private float _threshold;
80 * keeps track of state for field: _threshold
82 private boolean _has_threshold;
85 * Field _showBootstrap.
87 private boolean _showBootstrap;
90 * keeps track of state for field: _showBootstrap
92 private boolean _has_showBootstrap;
95 * Field _showDistances.
97 private boolean _showDistances;
100 * keeps track of state for field: _showDistances
102 private boolean _has_showDistances;
105 * Field _markUnlinked.
107 private boolean _markUnlinked;
110 * keeps track of state for field: _markUnlinked
112 private boolean _has_markUnlinked;
115 * Field _fitToWindow.
117 private boolean _fitToWindow;
120 * keeps track of state for field: _fitToWindow
122 private boolean _has_fitToWindow;
125 * Field _currentTree.
127 private boolean _currentTree;
130 * keeps track of state for field: _currentTree
132 private boolean _has_currentTree;
135 * Tree ID added for binding tree visualization settings to vamsas document
136 * trees in jalview 2.4.1
139 private java.lang.String _id;
147 * keeps track of state for field: _width
149 private boolean _has_width;
157 * keeps track of state for field: _height
159 private boolean _has_height;
167 * keeps track of state for field: _xpos
169 private boolean _has_xpos;
177 * keeps track of state for field: _ypos
179 private boolean _has_ypos;
184 private java.lang.String _title;
189 private java.lang.String _newick;
206 public void deleteCurrentTree()
208 this._has_currentTree = false;
213 public void deleteFitToWindow()
215 this._has_fitToWindow = false;
220 public void deleteFontSize()
222 this._has_fontSize = false;
227 public void deleteFontStyle()
229 this._has_fontStyle = false;
234 public void deleteHeight()
236 this._has_height = false;
241 public void deleteMarkUnlinked()
243 this._has_markUnlinked = false;
248 public void deleteShowBootstrap()
250 this._has_showBootstrap = false;
255 public void deleteShowDistances()
257 this._has_showDistances = false;
262 public void deleteThreshold()
264 this._has_threshold = false;
269 public void deleteWidth()
271 this._has_width = false;
276 public void deleteXpos()
278 this._has_xpos = false;
283 public void deleteYpos()
285 this._has_ypos = false;
289 * Returns the value of field 'currentTree'.
291 * @return the value of field 'CurrentTree'.
293 public boolean getCurrentTree()
295 return this._currentTree;
299 * Returns the value of field 'fitToWindow'.
301 * @return the value of field 'FitToWindow'.
303 public boolean getFitToWindow()
305 return this._fitToWindow;
309 * Returns the value of field 'fontName'.
311 * @return the value of field 'FontName'.
313 public java.lang.String getFontName()
315 return this._fontName;
319 * Returns the value of field 'fontSize'.
321 * @return the value of field 'FontSize'.
323 public int getFontSize()
325 return this._fontSize;
329 * Returns the value of field 'fontStyle'.
331 * @return the value of field 'FontStyle'.
333 public int getFontStyle()
335 return this._fontStyle;
339 * Returns the value of field 'height'.
341 * @return the value of field 'Height'.
343 public int getHeight()
349 * Returns the value of field 'id'. The field 'id' has the following
350 * description: Tree ID added for binding tree visualization settings to
351 * vamsas document trees in jalview 2.4.1
354 * @return the value of field 'Id'.
356 public java.lang.String getId()
362 * Returns the value of field 'markUnlinked'.
364 * @return the value of field 'MarkUnlinked'.
366 public boolean getMarkUnlinked()
368 return this._markUnlinked;
372 * Returns the value of field 'newick'.
374 * @return the value of field 'Newick'.
376 public java.lang.String getNewick()
382 * Returns the value of field 'showBootstrap'.
384 * @return the value of field 'ShowBootstrap'.
386 public boolean getShowBootstrap()
388 return this._showBootstrap;
392 * Returns the value of field 'showDistances'.
394 * @return the value of field 'ShowDistances'.
396 public boolean getShowDistances()
398 return this._showDistances;
402 * Returns the value of field 'threshold'.
404 * @return the value of field 'Threshold'.
406 public float getThreshold()
408 return this._threshold;
412 * Returns the value of field 'title'.
414 * @return the value of field 'Title'.
416 public java.lang.String getTitle()
422 * Returns the value of field 'width'.
424 * @return the value of field 'Width'.
426 public int getWidth()
432 * Returns the value of field 'xpos'.
434 * @return the value of field 'Xpos'.
442 * Returns the value of field 'ypos'.
444 * @return the value of field 'Ypos'.
452 * Method hasCurrentTree.
454 * @return true if at least one CurrentTree has been added
456 public boolean hasCurrentTree()
458 return this._has_currentTree;
462 * Method hasFitToWindow.
464 * @return true if at least one FitToWindow has been added
466 public boolean hasFitToWindow()
468 return this._has_fitToWindow;
472 * Method hasFontSize.
474 * @return true if at least one FontSize has been added
476 public boolean hasFontSize()
478 return this._has_fontSize;
482 * Method hasFontStyle.
484 * @return true if at least one FontStyle has been added
486 public boolean hasFontStyle()
488 return this._has_fontStyle;
494 * @return true if at least one Height has been added
496 public boolean hasHeight()
498 return this._has_height;
502 * Method hasMarkUnlinked.
504 * @return true if at least one MarkUnlinked has been added
506 public boolean hasMarkUnlinked()
508 return this._has_markUnlinked;
512 * Method hasShowBootstrap.
514 * @return true if at least one ShowBootstrap has been added
516 public boolean hasShowBootstrap()
518 return this._has_showBootstrap;
522 * Method hasShowDistances.
524 * @return true if at least one ShowDistances has been added
526 public boolean hasShowDistances()
528 return this._has_showDistances;
532 * Method hasThreshold.
534 * @return true if at least one Threshold has been added
536 public boolean hasThreshold()
538 return this._has_threshold;
544 * @return true if at least one Width has been added
546 public boolean hasWidth()
548 return this._has_width;
554 * @return true if at least one Xpos has been added
556 public boolean hasXpos()
558 return this._has_xpos;
564 * @return true if at least one Ypos has been added
566 public boolean hasYpos()
568 return this._has_ypos;
572 * Returns the value of field 'currentTree'.
574 * @return the value of field 'CurrentTree'.
576 public boolean isCurrentTree()
578 return this._currentTree;
582 * Returns the value of field 'fitToWindow'.
584 * @return the value of field 'FitToWindow'.
586 public boolean isFitToWindow()
588 return this._fitToWindow;
592 * Returns the value of field 'markUnlinked'.
594 * @return the value of field 'MarkUnlinked'.
596 public boolean isMarkUnlinked()
598 return this._markUnlinked;
602 * Returns the value of field 'showBootstrap'.
604 * @return the value of field 'ShowBootstrap'.
606 public boolean isShowBootstrap()
608 return this._showBootstrap;
612 * Returns the value of field 'showDistances'.
614 * @return the value of field 'ShowDistances'.
616 public boolean isShowDistances()
618 return this._showDistances;
624 * @return true if this object is valid according to the schema
626 public boolean isValid()
631 } catch (org.exolab.castor.xml.ValidationException vex)
642 * @throws org.exolab.castor.xml.MarshalException
643 * if object is null or if any SAXException is thrown during
645 * @throws org.exolab.castor.xml.ValidationException
646 * if this object is an invalid instance according to the schema
648 public void marshal(final java.io.Writer out)
649 throws org.exolab.castor.xml.MarshalException,
650 org.exolab.castor.xml.ValidationException
652 Marshaller.marshal(this, out);
659 * @throws java.io.IOException
660 * if an IOException occurs during marshaling
661 * @throws org.exolab.castor.xml.ValidationException
662 * if this object is an invalid instance according to the schema
663 * @throws org.exolab.castor.xml.MarshalException
664 * if object is null or if any SAXException is thrown during
667 public void marshal(final org.xml.sax.ContentHandler handler)
668 throws java.io.IOException,
669 org.exolab.castor.xml.MarshalException,
670 org.exolab.castor.xml.ValidationException
672 Marshaller.marshal(this, handler);
676 * Sets the value of field 'currentTree'.
679 * the value of field 'currentTree'.
681 public void setCurrentTree(final boolean currentTree)
683 this._currentTree = currentTree;
684 this._has_currentTree = true;
688 * Sets the value of field 'fitToWindow'.
691 * the value of field 'fitToWindow'.
693 public void setFitToWindow(final boolean fitToWindow)
695 this._fitToWindow = fitToWindow;
696 this._has_fitToWindow = true;
700 * Sets the value of field 'fontName'.
703 * the value of field 'fontName'.
705 public void setFontName(final java.lang.String fontName)
707 this._fontName = fontName;
711 * Sets the value of field 'fontSize'.
714 * the value of field 'fontSize'.
716 public void setFontSize(final int fontSize)
718 this._fontSize = fontSize;
719 this._has_fontSize = true;
723 * Sets the value of field 'fontStyle'.
726 * the value of field 'fontStyle'.
728 public void setFontStyle(final int fontStyle)
730 this._fontStyle = fontStyle;
731 this._has_fontStyle = true;
735 * Sets the value of field 'height'.
738 * the value of field 'height'.
740 public void setHeight(final int height)
742 this._height = height;
743 this._has_height = true;
747 * Sets the value of field 'id'. The field 'id' has the following description:
748 * Tree ID added for binding tree visualization settings to vamsas document
749 * trees in jalview 2.4.1
753 * the value of field 'id'.
755 public void setId(final java.lang.String id)
761 * Sets the value of field 'markUnlinked'.
763 * @param markUnlinked
764 * the value of field 'markUnlinked'.
766 public void setMarkUnlinked(final boolean markUnlinked)
768 this._markUnlinked = markUnlinked;
769 this._has_markUnlinked = true;
773 * Sets the value of field 'newick'.
776 * the value of field 'newick'.
778 public void setNewick(final java.lang.String newick)
780 this._newick = newick;
784 * Sets the value of field 'showBootstrap'.
786 * @param showBootstrap
787 * the value of field 'showBootstrap'.
789 public void setShowBootstrap(final boolean showBootstrap)
791 this._showBootstrap = showBootstrap;
792 this._has_showBootstrap = true;
796 * Sets the value of field 'showDistances'.
798 * @param showDistances
799 * the value of field 'showDistances'.
801 public void setShowDistances(final boolean showDistances)
803 this._showDistances = showDistances;
804 this._has_showDistances = true;
808 * Sets the value of field 'threshold'.
811 * the value of field 'threshold'.
813 public void setThreshold(final float threshold)
815 this._threshold = threshold;
816 this._has_threshold = true;
820 * Sets the value of field 'title'.
823 * the value of field 'title'.
825 public void setTitle(final java.lang.String title)
831 * Sets the value of field 'width'.
834 * the value of field 'width'.
836 public void setWidth(final int width)
839 this._has_width = true;
843 * Sets the value of field 'xpos'.
846 * the value of field 'xpos'.
848 public void setXpos(final int xpos)
851 this._has_xpos = true;
855 * Sets the value of field 'ypos'.
858 * the value of field 'ypos'.
860 public void setYpos(final int ypos)
863 this._has_ypos = true;
870 * @throws org.exolab.castor.xml.MarshalException
871 * if object is null or if any SAXException is thrown during
873 * @throws org.exolab.castor.xml.ValidationException
874 * if this object is an invalid instance according to the schema
875 * @return the unmarshaled jalview.schemabinding.version2.Tree
877 public static jalview.schemabinding.version2.Tree unmarshal(
878 final java.io.Reader reader)
879 throws org.exolab.castor.xml.MarshalException,
880 org.exolab.castor.xml.ValidationException
882 return (jalview.schemabinding.version2.Tree) Unmarshaller.unmarshal(
883 jalview.schemabinding.version2.Tree.class, reader);
889 * @throws org.exolab.castor.xml.ValidationException
890 * if this object is an invalid instance according to the schema
892 public void validate() throws org.exolab.castor.xml.ValidationException
894 org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
895 validator.validate(this);