Debian Codegraph @

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

raw symbols SCIP
1 /*
2 * Settings.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 import java.util.List;
29 import java.util.ArrayList;
30
31 /**
32 * @author Andrew Rambaut
33 * @author Alexei Drummond
34 * @version $Id$
35 */
36 public class Settings {
37 public Settings(AnalysisType analysisType) {
38 this.analysisType = analysisType;
39 }
40
41 public AnalysisType getAnalysisType() {
42 return analysisType;
43 }
44
45 public void setAnalysisType(AnalysisType analysisType) {
46 this.analysisType = analysisType;
47 }
48
49 public String getTraitName() {
50 return traitName;
51 }
52
53 public void setTraitName(String traitName) {
54 this.traitName = traitName;
55 }
56
57 public String getLatitudeName() {
58 return latitudeName;
59 }
60
61 public void setLatitudeName(String latitudeName) {
62 this.latitudeName = latitudeName;
63 }
64
65 public String getLongitudeName() {
66 return longitudeName;
67 }
68
69 public void setLongitudeName(String longitudeName) {
70 this.longitudeName = longitudeName;
71 }
72
73 public double getMostRecentDate() {
74 return mostRecentDate;
75 }
76
77 public void setMostRecentDate(double mostRecentDate) {
78 this.mostRecentDate = mostRecentDate;
79 }
80
81 public double getAgeCutOff() {
82 return ageCutOff;
83 }
84
85 public void setAgeCutOff(double ageCutOff) {
86 this.ageCutOff = ageCutOff;
87 }
88
89 public double getPlotAltitude() {
90 return plotAltitude;
91 }
92
93 public void setPlotAltitude(double plotAltitude) {
94 this.plotAltitude = plotAltitude;
95 }
96
97 public double getColumnRadius() {
98 return columnRadius;
99 }
100
101 public void setColumnRadius(double columnRadius) {
102 this.columnRadius = columnRadius;
103 }
104
105 public int getTimeDivisionCount() {
106 return timeDivisionCount;
107 }
108
109 public void setTimeDivisionCount(int timeDivisionCount) {
110 this.timeDivisionCount = timeDivisionCount;
111 }
112
113 public TreeSettings getAltitudeTreeSettings() {
114 return altitudeTreeSettings;
115 }
116
117 public TreeSettings getGroundTreeSettings() {
118 return groundTreeSettings;
119 }
120
121 public SurfaceDecoration getGroundContours() {
122 return groundContours;
123 }
124
125 public SurfaceDecoration getProjections() {
126 return projections;
127 }
128
129 public SurfaceDecoration getTaxonLabels() {
130 return taxonLabels;
131 }
132
133 public SurfaceDecoration getLocationLabels() {
134 return locationLabels;
135 }
136
137 private AnalysisType analysisType;
138
139 private String traitName = "location";
140 private String latitudeName = "location1";
141 private String longitudeName = "location2";
142
143 private double ageCutOff = 0.0; // upper bound for when time starts - 0 to include entire tree
144 private double mostRecentDate;
145
146 private double plotAltitude = 0;
147 private double columnRadius = 1;
148
149 private final TreeSettings altitudeTreeSettings = new TreeSettings("altitudeTree", "", TreeType.RECTANGLE_TREE);
150 private final TreeSettings groundTreeSettings = new TreeSettings("groundTree", "", TreeType.SURFACE_TREE);
151 private final SurfaceDecoration groundContours = new SurfaceDecoration();
152 private final SurfaceDecoration projections = new SurfaceDecoration();
153 private final SurfaceDecoration taxonLabels = new SurfaceDecoration();
154 private final SurfaceDecoration locationLabels = new SurfaceDecoration();
155
156 private int timeDivisionCount = 0;
157 }