| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
|
| 19 |
|
| 20 |
|
| 21 |
|
| 22 |
|
| 23 |
|
| 24 |
|
| 25 |
|
| 26 |
package dr.app.phylogeography.tools.kml; |
| 27 |
|
| 28 |
import java.util.List; |
| 29 |
import java.util.ArrayList; |
| 30 |
|
| 31 |
|
| 32 |
|
| 33 |
|
| 34 |
|
| 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; |
| 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 |
} |