| 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 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; |
| 114 |
|
| 115 |
private double arcAltitude = 10000; |
| 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 |
} |