4fd5e7df62ee34975fdd7095651bc690ee1d5a68
[jalview.git] / src / jalview / schemabinding / version2 / Tree.java
1 /*
2  * This class was automatically generated with 
3  * <a href="http://www.castor.org">Castor 1.1</a>, using an XML
4  * Schema.
5  * $Id$
6  */
7
8 package jalview.schemabinding.version2;
9
10   //---------------------------------/
11  //- Imported classes and packages -/
12 //---------------------------------/
13
14 import org.exolab.castor.xml.Marshaller;
15 import org.exolab.castor.xml.Unmarshaller;
16
17 /**
18  * Class Tree.
19  * 
20  * @version $Revision$ $Date$
21  */
22 public class Tree implements java.io.Serializable {
23
24
25       //--------------------------/
26      //- Class/Member Variables -/
27     //--------------------------/
28
29     /**
30      * Field _fontName.
31      */
32     private java.lang.String _fontName;
33
34     /**
35      * Field _fontSize.
36      */
37     private int _fontSize;
38
39     /**
40      * keeps track of state for field: _fontSize
41      */
42     private boolean _has_fontSize;
43
44     /**
45      * Field _fontStyle.
46      */
47     private int _fontStyle;
48
49     /**
50      * keeps track of state for field: _fontStyle
51      */
52     private boolean _has_fontStyle;
53
54     /**
55      * Field _threshold.
56      */
57     private float _threshold;
58
59     /**
60      * keeps track of state for field: _threshold
61      */
62     private boolean _has_threshold;
63
64     /**
65      * Field _showBootstrap.
66      */
67     private boolean _showBootstrap;
68
69     /**
70      * keeps track of state for field: _showBootstrap
71      */
72     private boolean _has_showBootstrap;
73
74     /**
75      * Field _showDistances.
76      */
77     private boolean _showDistances;
78
79     /**
80      * keeps track of state for field: _showDistances
81      */
82     private boolean _has_showDistances;
83
84     /**
85      * Field _markUnlinked.
86      */
87     private boolean _markUnlinked;
88
89     /**
90      * keeps track of state for field: _markUnlinked
91      */
92     private boolean _has_markUnlinked;
93
94     /**
95      * Field _fitToWindow.
96      */
97     private boolean _fitToWindow;
98
99     /**
100      * keeps track of state for field: _fitToWindow
101      */
102     private boolean _has_fitToWindow;
103
104     /**
105      * Field _currentTree.
106      */
107     private boolean _currentTree;
108
109     /**
110      * keeps track of state for field: _currentTree
111      */
112     private boolean _has_currentTree;
113
114     /**
115      * Tree ID added for binding tree visualization settings to
116      * vamsas document trees in jalview 2.4.1
117      */
118     private java.lang.String _id;
119
120     /**
121      * Field _width.
122      */
123     private int _width;
124
125     /**
126      * keeps track of state for field: _width
127      */
128     private boolean _has_width;
129
130     /**
131      * Field _height.
132      */
133     private int _height;
134
135     /**
136      * keeps track of state for field: _height
137      */
138     private boolean _has_height;
139
140     /**
141      * Field _xpos.
142      */
143     private int _xpos;
144
145     /**
146      * keeps track of state for field: _xpos
147      */
148     private boolean _has_xpos;
149
150     /**
151      * Field _ypos.
152      */
153     private int _ypos;
154
155     /**
156      * keeps track of state for field: _ypos
157      */
158     private boolean _has_ypos;
159
160     /**
161      * Field _title.
162      */
163     private java.lang.String _title;
164
165     /**
166      * Field _newick.
167      */
168     private java.lang.String _newick;
169
170
171       //----------------/
172      //- Constructors -/
173     //----------------/
174
175     public Tree() {
176         super();
177     }
178
179
180       //-----------/
181      //- Methods -/
182     //-----------/
183
184     /**
185      */
186     public void deleteCurrentTree(
187     ) {
188         this._has_currentTree= false;
189     }
190
191     /**
192      */
193     public void deleteFitToWindow(
194     ) {
195         this._has_fitToWindow= false;
196     }
197
198     /**
199      */
200     public void deleteFontSize(
201     ) {
202         this._has_fontSize= false;
203     }
204
205     /**
206      */
207     public void deleteFontStyle(
208     ) {
209         this._has_fontStyle= false;
210     }
211
212     /**
213      */
214     public void deleteHeight(
215     ) {
216         this._has_height= false;
217     }
218
219     /**
220      */
221     public void deleteMarkUnlinked(
222     ) {
223         this._has_markUnlinked= false;
224     }
225
226     /**
227      */
228     public void deleteShowBootstrap(
229     ) {
230         this._has_showBootstrap= false;
231     }
232
233     /**
234      */
235     public void deleteShowDistances(
236     ) {
237         this._has_showDistances= false;
238     }
239
240     /**
241      */
242     public void deleteThreshold(
243     ) {
244         this._has_threshold= false;
245     }
246
247     /**
248      */
249     public void deleteWidth(
250     ) {
251         this._has_width= false;
252     }
253
254     /**
255      */
256     public void deleteXpos(
257     ) {
258         this._has_xpos= false;
259     }
260
261     /**
262      */
263     public void deleteYpos(
264     ) {
265         this._has_ypos= false;
266     }
267
268     /**
269      * Returns the value of field 'currentTree'.
270      * 
271      * @return the value of field 'CurrentTree'.
272      */
273     public boolean getCurrentTree(
274     ) {
275         return this._currentTree;
276     }
277
278     /**
279      * Returns the value of field 'fitToWindow'.
280      * 
281      * @return the value of field 'FitToWindow'.
282      */
283     public boolean getFitToWindow(
284     ) {
285         return this._fitToWindow;
286     }
287
288     /**
289      * Returns the value of field 'fontName'.
290      * 
291      * @return the value of field 'FontName'.
292      */
293     public java.lang.String getFontName(
294     ) {
295         return this._fontName;
296     }
297
298     /**
299      * Returns the value of field 'fontSize'.
300      * 
301      * @return the value of field 'FontSize'.
302      */
303     public int getFontSize(
304     ) {
305         return this._fontSize;
306     }
307
308     /**
309      * Returns the value of field 'fontStyle'.
310      * 
311      * @return the value of field 'FontStyle'.
312      */
313     public int getFontStyle(
314     ) {
315         return this._fontStyle;
316     }
317
318     /**
319      * Returns the value of field 'height'.
320      * 
321      * @return the value of field 'Height'.
322      */
323     public int getHeight(
324     ) {
325         return this._height;
326     }
327
328     /**
329      * Returns the value of field 'id'. The field 'id' has the
330      * following description: Tree ID added for binding tree
331      * visualization settings to vamsas document trees in jalview
332      * 2.4.1
333      * 
334      * @return the value of field 'Id'.
335      */
336     public java.lang.String getId(
337     ) {
338         return this._id;
339     }
340
341     /**
342      * Returns the value of field 'markUnlinked'.
343      * 
344      * @return the value of field 'MarkUnlinked'.
345      */
346     public boolean getMarkUnlinked(
347     ) {
348         return this._markUnlinked;
349     }
350
351     /**
352      * Returns the value of field 'newick'.
353      * 
354      * @return the value of field 'Newick'.
355      */
356     public java.lang.String getNewick(
357     ) {
358         return this._newick;
359     }
360
361     /**
362      * Returns the value of field 'showBootstrap'.
363      * 
364      * @return the value of field 'ShowBootstrap'.
365      */
366     public boolean getShowBootstrap(
367     ) {
368         return this._showBootstrap;
369     }
370
371     /**
372      * Returns the value of field 'showDistances'.
373      * 
374      * @return the value of field 'ShowDistances'.
375      */
376     public boolean getShowDistances(
377     ) {
378         return this._showDistances;
379     }
380
381     /**
382      * Returns the value of field 'threshold'.
383      * 
384      * @return the value of field 'Threshold'.
385      */
386     public float getThreshold(
387     ) {
388         return this._threshold;
389     }
390
391     /**
392      * Returns the value of field 'title'.
393      * 
394      * @return the value of field 'Title'.
395      */
396     public java.lang.String getTitle(
397     ) {
398         return this._title;
399     }
400
401     /**
402      * Returns the value of field 'width'.
403      * 
404      * @return the value of field 'Width'.
405      */
406     public int getWidth(
407     ) {
408         return this._width;
409     }
410
411     /**
412      * Returns the value of field 'xpos'.
413      * 
414      * @return the value of field 'Xpos'.
415      */
416     public int getXpos(
417     ) {
418         return this._xpos;
419     }
420
421     /**
422      * Returns the value of field 'ypos'.
423      * 
424      * @return the value of field 'Ypos'.
425      */
426     public int getYpos(
427     ) {
428         return this._ypos;
429     }
430
431     /**
432      * Method hasCurrentTree.
433      * 
434      * @return true if at least one CurrentTree has been added
435      */
436     public boolean hasCurrentTree(
437     ) {
438         return this._has_currentTree;
439     }
440
441     /**
442      * Method hasFitToWindow.
443      * 
444      * @return true if at least one FitToWindow has been added
445      */
446     public boolean hasFitToWindow(
447     ) {
448         return this._has_fitToWindow;
449     }
450
451     /**
452      * Method hasFontSize.
453      * 
454      * @return true if at least one FontSize has been added
455      */
456     public boolean hasFontSize(
457     ) {
458         return this._has_fontSize;
459     }
460
461     /**
462      * Method hasFontStyle.
463      * 
464      * @return true if at least one FontStyle has been added
465      */
466     public boolean hasFontStyle(
467     ) {
468         return this._has_fontStyle;
469     }
470
471     /**
472      * Method hasHeight.
473      * 
474      * @return true if at least one Height has been added
475      */
476     public boolean hasHeight(
477     ) {
478         return this._has_height;
479     }
480
481     /**
482      * Method hasMarkUnlinked.
483      * 
484      * @return true if at least one MarkUnlinked has been added
485      */
486     public boolean hasMarkUnlinked(
487     ) {
488         return this._has_markUnlinked;
489     }
490
491     /**
492      * Method hasShowBootstrap.
493      * 
494      * @return true if at least one ShowBootstrap has been added
495      */
496     public boolean hasShowBootstrap(
497     ) {
498         return this._has_showBootstrap;
499     }
500
501     /**
502      * Method hasShowDistances.
503      * 
504      * @return true if at least one ShowDistances has been added
505      */
506     public boolean hasShowDistances(
507     ) {
508         return this._has_showDistances;
509     }
510
511     /**
512      * Method hasThreshold.
513      * 
514      * @return true if at least one Threshold has been added
515      */
516     public boolean hasThreshold(
517     ) {
518         return this._has_threshold;
519     }
520
521     /**
522      * Method hasWidth.
523      * 
524      * @return true if at least one Width has been added
525      */
526     public boolean hasWidth(
527     ) {
528         return this._has_width;
529     }
530
531     /**
532      * Method hasXpos.
533      * 
534      * @return true if at least one Xpos has been added
535      */
536     public boolean hasXpos(
537     ) {
538         return this._has_xpos;
539     }
540
541     /**
542      * Method hasYpos.
543      * 
544      * @return true if at least one Ypos has been added
545      */
546     public boolean hasYpos(
547     ) {
548         return this._has_ypos;
549     }
550
551     /**
552      * Returns the value of field 'currentTree'.
553      * 
554      * @return the value of field 'CurrentTree'.
555      */
556     public boolean isCurrentTree(
557     ) {
558         return this._currentTree;
559     }
560
561     /**
562      * Returns the value of field 'fitToWindow'.
563      * 
564      * @return the value of field 'FitToWindow'.
565      */
566     public boolean isFitToWindow(
567     ) {
568         return this._fitToWindow;
569     }
570
571     /**
572      * Returns the value of field 'markUnlinked'.
573      * 
574      * @return the value of field 'MarkUnlinked'.
575      */
576     public boolean isMarkUnlinked(
577     ) {
578         return this._markUnlinked;
579     }
580
581     /**
582      * Returns the value of field 'showBootstrap'.
583      * 
584      * @return the value of field 'ShowBootstrap'.
585      */
586     public boolean isShowBootstrap(
587     ) {
588         return this._showBootstrap;
589     }
590
591     /**
592      * Returns the value of field 'showDistances'.
593      * 
594      * @return the value of field 'ShowDistances'.
595      */
596     public boolean isShowDistances(
597     ) {
598         return this._showDistances;
599     }
600
601     /**
602      * Method isValid.
603      * 
604      * @return true if this object is valid according to the schema
605      */
606     public boolean isValid(
607     ) {
608         try {
609             validate();
610         } catch (org.exolab.castor.xml.ValidationException vex) {
611             return false;
612         }
613         return true;
614     }
615
616     /**
617      * 
618      * 
619      * @param out
620      * @throws org.exolab.castor.xml.MarshalException if object is
621      * null or if any SAXException is thrown during marshaling
622      * @throws org.exolab.castor.xml.ValidationException if this
623      * object is an invalid instance according to the schema
624      */
625     public void marshal(
626             final java.io.Writer out)
627     throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
628         Marshaller.marshal(this, out);
629     }
630
631     /**
632      * 
633      * 
634      * @param handler
635      * @throws java.io.IOException if an IOException occurs during
636      * marshaling
637      * @throws org.exolab.castor.xml.ValidationException if this
638      * object is an invalid instance according to the schema
639      * @throws org.exolab.castor.xml.MarshalException if object is
640      * null or if any SAXException is thrown during marshaling
641      */
642     public void marshal(
643             final org.xml.sax.ContentHandler handler)
644     throws java.io.IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
645         Marshaller.marshal(this, handler);
646     }
647
648     /**
649      * Sets the value of field 'currentTree'.
650      * 
651      * @param currentTree the value of field 'currentTree'.
652      */
653     public void setCurrentTree(
654             final boolean currentTree) {
655         this._currentTree = currentTree;
656         this._has_currentTree = true;
657     }
658
659     /**
660      * Sets the value of field 'fitToWindow'.
661      * 
662      * @param fitToWindow the value of field 'fitToWindow'.
663      */
664     public void setFitToWindow(
665             final boolean fitToWindow) {
666         this._fitToWindow = fitToWindow;
667         this._has_fitToWindow = true;
668     }
669
670     /**
671      * Sets the value of field 'fontName'.
672      * 
673      * @param fontName the value of field 'fontName'.
674      */
675     public void setFontName(
676             final java.lang.String fontName) {
677         this._fontName = fontName;
678     }
679
680     /**
681      * Sets the value of field 'fontSize'.
682      * 
683      * @param fontSize the value of field 'fontSize'.
684      */
685     public void setFontSize(
686             final int fontSize) {
687         this._fontSize = fontSize;
688         this._has_fontSize = true;
689     }
690
691     /**
692      * Sets the value of field 'fontStyle'.
693      * 
694      * @param fontStyle the value of field 'fontStyle'.
695      */
696     public void setFontStyle(
697             final int fontStyle) {
698         this._fontStyle = fontStyle;
699         this._has_fontStyle = true;
700     }
701
702     /**
703      * Sets the value of field 'height'.
704      * 
705      * @param height the value of field 'height'.
706      */
707     public void setHeight(
708             final int height) {
709         this._height = height;
710         this._has_height = true;
711     }
712
713     /**
714      * Sets the value of field 'id'. The field 'id' has the
715      * following description: Tree ID added for binding tree
716      * visualization settings to vamsas document trees in jalview
717      * 2.4.1
718      * 
719      * @param id the value of field 'id'.
720      */
721     public void setId(
722             final java.lang.String id) {
723         this._id = id;
724     }
725
726     /**
727      * Sets the value of field 'markUnlinked'.
728      * 
729      * @param markUnlinked the value of field 'markUnlinked'.
730      */
731     public void setMarkUnlinked(
732             final boolean markUnlinked) {
733         this._markUnlinked = markUnlinked;
734         this._has_markUnlinked = true;
735     }
736
737     /**
738      * Sets the value of field 'newick'.
739      * 
740      * @param newick the value of field 'newick'.
741      */
742     public void setNewick(
743             final java.lang.String newick) {
744         this._newick = newick;
745     }
746
747     /**
748      * Sets the value of field 'showBootstrap'.
749      * 
750      * @param showBootstrap the value of field 'showBootstrap'.
751      */
752     public void setShowBootstrap(
753             final boolean showBootstrap) {
754         this._showBootstrap = showBootstrap;
755         this._has_showBootstrap = true;
756     }
757
758     /**
759      * Sets the value of field 'showDistances'.
760      * 
761      * @param showDistances the value of field 'showDistances'.
762      */
763     public void setShowDistances(
764             final boolean showDistances) {
765         this._showDistances = showDistances;
766         this._has_showDistances = true;
767     }
768
769     /**
770      * Sets the value of field 'threshold'.
771      * 
772      * @param threshold the value of field 'threshold'.
773      */
774     public void setThreshold(
775             final float threshold) {
776         this._threshold = threshold;
777         this._has_threshold = true;
778     }
779
780     /**
781      * Sets the value of field 'title'.
782      * 
783      * @param title the value of field 'title'.
784      */
785     public void setTitle(
786             final java.lang.String title) {
787         this._title = title;
788     }
789
790     /**
791      * Sets the value of field 'width'.
792      * 
793      * @param width the value of field 'width'.
794      */
795     public void setWidth(
796             final int width) {
797         this._width = width;
798         this._has_width = true;
799     }
800
801     /**
802      * Sets the value of field 'xpos'.
803      * 
804      * @param xpos the value of field 'xpos'.
805      */
806     public void setXpos(
807             final int xpos) {
808         this._xpos = xpos;
809         this._has_xpos = true;
810     }
811
812     /**
813      * Sets the value of field 'ypos'.
814      * 
815      * @param ypos the value of field 'ypos'.
816      */
817     public void setYpos(
818             final int ypos) {
819         this._ypos = ypos;
820         this._has_ypos = true;
821     }
822
823     /**
824      * Method unmarshal.
825      * 
826      * @param reader
827      * @throws org.exolab.castor.xml.MarshalException if object is
828      * null or if any SAXException is thrown during marshaling
829      * @throws org.exolab.castor.xml.ValidationException if this
830      * object is an invalid instance according to the schema
831      * @return the unmarshaled jalview.schemabinding.version2.Tree
832      */
833     public static jalview.schemabinding.version2.Tree unmarshal(
834             final java.io.Reader reader)
835     throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
836         return (jalview.schemabinding.version2.Tree) Unmarshaller.unmarshal(jalview.schemabinding.version2.Tree.class, reader);
837     }
838
839     /**
840      * 
841      * 
842      * @throws org.exolab.castor.xml.ValidationException if this
843      * object is an invalid instance according to the schema
844      */
845     public void validate(
846     )
847     throws org.exolab.castor.xml.ValidationException {
848         org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
849         validator.validate(this);
850     }
851
852 }