Debian Codegraph @

src/dr/app/phylogeography/tools/kml/TreeDefinition.java

raw symbols SCIP
1 /*
2 * TreeDefinition.java
3 *
4 * Copyright (c) 2002-2015 Alexei Drummond, Andrew Rambaut and Marc Suchard
5 *
6 * This file is part of BEAST.
7 * See the NOTICE file distributed with this work for additional
8 * information regarding copyright ownership and licensing.
9 *
10 * BEAST is free software; you can redistribute it and/or modify
11 * it under the terms of the GNU Lesser General Public License as
12 * published by the Free Software Foundation; either version 2
13 * of the License, or (at your option) any later version.
14 *
15 * BEAST is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU Lesser General Public License for more details.
19 *
20 * You should have received a copy of the GNU Lesser General Public
21 * License along with BEAST; if not, write to the
22 * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
23 * Boston, MA 02110-1301 USA
24 */
25
26 package dr.app.phylogeography.tools.kml;
27
28 /**
29 * @author Andrew Rambaut
30 * @author Philippe Lemey
31 * @version $Id$
32 */
33 public class TreeDefinition {
34 public TreeDefinition(TreeType treeType, String traitName, String latitudeName, String longitudeName, double plotAltitude, double rootFraction, double arcAltitude, boolean taxaVisible, BranchStyle branchStyle, SurfaceDecoration locationContours, SurfaceDecoration groundContours, BranchStyle projections) {
35 this.treeType = treeType;
36 this.traitName = traitName;
37 this.latitudeName = latitudeName;
38 this.longitudeName = longitudeName;
39 this.plotAltitude = plotAltitude;
40 this.rootFraction = rootFraction;
41 this.arcAltitude = arcAltitude;
42 this.taxaVisible = taxaVisible;
43 this.branchStyle = branchStyle;
44 this.locationContours = locationContours;
45 this.groundContours = groundContours;
46 this.projections = projections;
47 }
48
49
50 public TreeType getTreeType() {
51 return treeType;
52 }
53
54 public void setTreeType(TreeType treeType) {
55 this.treeType = treeType;
56 }
57
58 public String getTraitName() {
59 return traitName;
60 }
61
62 public void setTraitName(String traitName) {
63 this.traitName = traitName;
64 }
65
66 public String getLatitudeName() {
67 return latitudeName;
68 }
69
70 public void setLatitudeName(String latitudeName) {
71 this.latitudeName = latitudeName;
72 }
73
74 public String getLongitudeName() {
75 return longitudeName;
76 }
77
78 public void setLongitudeName(String longitudeName) {
79 this.longitudeName = longitudeName;
80 }
81
82 public double getPlotAltitude() {
83 return plotAltitude;
84 }
85
86 public void setPlotAltitude(double plotAltitude) {
87 this.plotAltitude = plotAltitude;
88 }
89
90 public double getRootFraction() {
91 return rootFraction;
92 }
93
94 public void setRootFraction(double rootFraction) {
95 this.rootFraction = rootFraction;
96 }
97
98 public double getArcAltitude() {
99 return arcAltitude;
100 }
101
102 public void setArcAltitude(double arcAltitude) {
103 this.arcAltitude = arcAltitude;
104 }
105
106 public boolean isTaxaVisible() {
107 return taxaVisible;
108 }
109
110 public void setTaxaVisible(boolean taxaVisible) {
111 this.taxaVisible = taxaVisible;
112 }
113
114 public BranchStyle getBranchDecoration() {
115 return branchStyle;
116 }
117
118 public void setBranchDecoration(BranchStyle branchStyle) {
119 this.branchStyle = branchStyle;
120 }
121
122 public SurfaceDecoration getLocationContours() {
123 return locationContours;
124 }
125
126 public void setLocationContours(SurfaceDecoration locationContours) {
127 this.locationContours = locationContours;
128 }
129
130 public SurfaceDecoration getGroundContours() {
131 return groundContours;
132 }
133
134 public void setGroundContours(SurfaceDecoration groundContours) {
135 this.groundContours = groundContours;
136 }
137
138 public BranchStyle getProjections() {
139 return projections;
140 }
141
142 public void setProjections(BranchStyle projections) {
143 this.projections = projections;
144 }
145
146 private TreeType treeType;
147
148 private String traitName;
149 private String latitudeName;
150 private String longitudeName;
151
152 private double plotAltitude = 500000;
153 private double rootFraction = 0.05; // additional fraction of the total plotHeight for the root branch
154
155 private double arcAltitude = 10000; // this is the factor with which to multiply the time of the branch to get the altitude for that branch in the surface Tree
156
157 private boolean taxaVisible = false;
158
159 private BranchStyle branchStyle;
160
161 private SurfaceDecoration locationContours;
162 private SurfaceDecoration groundContours;
163
164 private BranchStyle projections;
165 }