Clover icon

jalviewX

  1. Project Clover database Wed Oct 31 2018 15:13:58 GMT
  2. Package jalview.schemabinding.version2

File Tree.java

 

Coverage histogram

../../../img/srcFileCovDistChart7.png
28% of files have more coverage

Code metrics

0
83
67
1
878
331
68
0.82
1.24
67
1.01

Classes

Class Line # Actions
Tree 22 83 68 48
0.6868%
 

Contributing tests

This file is covered by 6 tests. .

Source view

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