Debian Codegraph @

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

raw symbols SCIP
1 /*
2 * BranchStyle.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.awt.*;
29
30 /**
31 * @author Andrew Rambaut
32 * @author Philippe Lemey
33 * @version $Id$
34 */
35 public class BranchStyle {
36 public BranchStyle() {
37 }
38
39 public BranchStyle(String widthProperty, String colorProperty) {
40 this.widthProperty = widthProperty;
41 this.colorProperty = colorProperty;
42 }
43
44 public String getWidthProperty() {
45 return widthProperty;
46 }
47
48 public void setWidthProperty(String widthProperty) {
49 this.widthProperty = widthProperty;
50 }
51
52 public double getWidthPropertyMinimum() {
53 return widthPropertyMinimum;
54 }
55
56 public void setWidthPropertyMinimum(double widthPropertyMinimum) {
57 this.widthPropertyMinimum = widthPropertyMinimum;
58 }
59
60 public double getWidthPropertyMaximum() {
61 return widthPropertyMaximum;
62 }
63
64 public void setWidthPropertyMaximum(double widthPropertyMaximum) {
65 this.widthPropertyMaximum = widthPropertyMaximum;
66 }
67
68 public double getWidthBase() {
69 return widthBase;
70 }
71
72 public void setWidthBase(double widthBase) {
73 this.widthBase = widthBase;
74 }
75
76 public double getWidthScale() {
77 return widthScale;
78 }
79
80 public void setWidthScale(double widthScale) {
81 this.widthScale = widthScale;
82 }
83
84 public String getColorProperty() {
85 return colorProperty;
86 }
87
88 public void setColorProperty(String colorProperty) {
89 this.colorProperty = colorProperty;
90 }
91
92 public double getColorPropertyMinimum() {
93 return colorPropertyMinimum;
94 }
95
96 public void setColorPropertyMinimum(double colorPropertyMinimum) {
97 this.colorPropertyMinimum = colorPropertyMinimum;
98 }
99
100 public double getColorPropertyMaximum() {
101 return colorPropertyMaximum;
102 }
103
104 public void setColorPropertyMaximum(double colorPropertyMaximum) {
105 this.colorPropertyMaximum = colorPropertyMaximum;
106 }
107
108 public Color getColorStart() {
109 return colorStart;
110 }
111
112 public void setColorStart(Color colorStart) {
113 this.colorStart = colorStart;
114 }
115
116 public Color getColorFinish() {
117 return colorFinish;
118 }
119
120 public void setColorFinish(Color colorFinish) {
121 this.colorFinish = colorFinish;
122 }
123
124 private String widthProperty = null;
125 private double widthPropertyMinimum = 0.0;
126 private double widthPropertyMaximum = 1.0;
127
128 private double widthBase = 4.0;
129 private double widthScale = 3.0;
130
131 private String colorProperty = null;
132 private double colorPropertyMinimum = 0.0;
133 private double colorPropertyMaximum = 1.0;
134
135 private Color colorStart = Color.blue;
136 private Color colorFinish = Color.white;
137 }