| 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 |
|
| 29 |
|
| 30 |
|
| 31 |
|
| 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; |
| 154 |
|
| 155 |
private double arcAltitude = 10000; |
| 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 |
} |