/*
* TreeDefinition.java
*
* Copyright (c) 2002-2015 Alexei Drummond, Andrew Rambaut and Marc Suchard
*
* This file is part of BEAST.
* See the NOTICE file distributed with this work for additional
* information regarding copyright ownership and licensing.
*
* BEAST is free software; you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* BEAST is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with BEAST; if not, write to the
* Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
* Boston, MA 02110-1301 USA
*/
package dr.app.phylogeography.tools.kml;
/**
* @author Andrew Rambaut
* @author Philippe Lemey
* @version $Id$
*/
public class TreeDefinition {
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) {
this.treeType = treeType;
this.traitName = traitName;
this.latitudeName = latitudeName;
this.longitudeName = longitudeName;
this.plotAltitude = plotAltitude;
this.rootFraction = rootFraction;
this.arcAltitude = arcAltitude;
this.taxaVisible = taxaVisible;
this.branchStyle = branchStyle;
this.locationContours = locationContours;
this.groundContours = groundContours;
this.projections = projections;
}
public TreeType getTreeType() {
return treeType;
}
public void setTreeType(TreeType treeType) {
this.treeType = treeType;
}
public String getTraitName() {
return traitName;
}
public void setTraitName(String traitName) {
this.traitName = traitName;
}
public String getLatitudeName() {
return latitudeName;
}
public void setLatitudeName(String latitudeName) {
this.latitudeName = latitudeName;
}
public String getLongitudeName() {
return longitudeName;
}
public void setLongitudeName(String longitudeName) {
this.longitudeName = longitudeName;
}
public double getPlotAltitude() {
return plotAltitude;
}
public void setPlotAltitude(double plotAltitude) {
this.plotAltitude = plotAltitude;
}
public double getRootFraction() {
return rootFraction;
}
public void setRootFraction(double rootFraction) {
this.rootFraction = rootFraction;
}
public double getArcAltitude() {
return arcAltitude;
}
public void setArcAltitude(double arcAltitude) {
this.arcAltitude = arcAltitude;
}
public boolean isTaxaVisible() {
return taxaVisible;
}
public void setTaxaVisible(boolean taxaVisible) {
this.taxaVisible = taxaVisible;
}
public BranchStyle getBranchDecoration() {
return branchStyle;
}
public void setBranchDecoration(BranchStyle branchStyle) {
this.branchStyle = branchStyle;
}
public SurfaceDecoration getLocationContours() {
return locationContours;
}
public void setLocationContours(SurfaceDecoration locationContours) {
this.locationContours = locationContours;
}
public SurfaceDecoration getGroundContours() {
return groundContours;
}
public void setGroundContours(SurfaceDecoration groundContours) {
this.groundContours = groundContours;
}
public BranchStyle getProjections() {
return projections;
}
public void setProjections(BranchStyle projections) {
this.projections = projections;
}
private TreeType treeType;
private String traitName;
private String latitudeName;
private String longitudeName;
private double plotAltitude = 500000;
private double rootFraction = 0.05; // additional fraction of the total plotHeight for the root branch
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
private boolean taxaVisible = false;
private BranchStyle branchStyle;
private SurfaceDecoration locationContours;
private SurfaceDecoration groundContours;
private BranchStyle projections;
}