Debian Codegraph @

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

raw symbols SCIP
1 /*
2 * TreeSettings.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 TreeSettings {
34 public TreeSettings(String name, String description, TreeType treeType) {
35 this.name = name;
36 this.description = description;
37 this.treeType = treeType;
38 }
39
40 public String getName() {
41 return name;
42 }
43
44 public void setName(String name) {
45 this.name = name;
46 }
47
48 public String getDescription() {
49 return description;
50 }
51
52 public void setDescription(String description) {
53 this.description = description;
54 }
55
56 public TreeType getTreeType() {
57 return treeType;
58 }
59
60 public void setTreeType(TreeType treeType) {
61 this.treeType = treeType;
62 }
63
64 public double getRootFraction() {
65 return rootFraction;
66 }
67
68 public void setRootFraction(double rootFraction) {
69 this.rootFraction = rootFraction;
70 }
71
72 public double getArcAltitude() {
73 return arcAltitude;
74 }
75
76 public void setArcAltitude(double arcAltitude) {
77 this.arcAltitude = arcAltitude;
78 }
79
80 public boolean isTaxaVisible() {
81 return taxaVisible;
82 }
83
84 public void setTaxaVisible(boolean taxaVisible) {
85 this.taxaVisible = taxaVisible;
86 }
87
88 public BranchStyle getBranchStyle() {
89 return branchStyle;
90 }
91
92 public SurfaceDecoration getLocationContourStyle() {
93 return locationContourStyle;
94 }
95
96 public SurfaceDecoration getGroundContourStyle() {
97 return groundContourStyle;
98 }
99
100 public void setGroundContourStyle(SurfaceDecoration groundContourStyle) {
101 this.groundContourStyle = groundContourStyle;
102 }
103
104 public BranchStyle getProjectionStyle() {
105 return projectionStyle;
106 }
107
108 private String name;
109 private String description;
110
111 private TreeType treeType;
112
113 private double rootFraction = 0.05; // additional fraction of the total plotHeight for the root branch
114
115 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
116
117 private boolean taxaVisible = false;
118
119 private BranchStyle branchStyle = new BranchStyle();
120
121 private SurfaceDecoration locationContourStyle = new SurfaceDecoration();
122 private SurfaceDecoration groundContourStyle = new SurfaceDecoration();
123
124 private BranchStyle projectionStyle = new BranchStyle();
125 }