Debian Codegraph @

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

raw symbols SCIP
1 /*
2 * SurfaceDecoration.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 SurfaceDecoration {
36 public SurfaceDecoration() {
37 }
38
39 public SurfaceDecoration(String colorProperty, boolean visible, Color startColor, Color endColor, double opacity) {
40 this.colorProperty = colorProperty;
41 isVisible = visible;
42 this.startColor = startColor;
43 this.endColor = endColor;
44 this.opacity = opacity;
45 }
46
47 public String getColorProperty() {
48 return colorProperty;
49 }
50
51 public void setColorProperty(String colorProperty) {
52 this.colorProperty = colorProperty;
53 }
54
55 public boolean isVisible() {
56 return isVisible;
57 }
58
59 public void setVisible(boolean visible) {
60 isVisible = visible;
61 }
62
63 public Color getStartColor() {
64 return startColor;
65 }
66
67 public void setStartColor(Color startColor) {
68 this.startColor = startColor;
69 }
70
71 public Color getEndColor() {
72 return endColor;
73 }
74
75 public void setEndColor(Color endColor) {
76 this.endColor = endColor;
77 }
78
79 public double getOpacity() {
80 return opacity;
81 }
82
83 public void setOpacity(double opacity) {
84 this.opacity = opacity;
85 }
86
87 private String colorProperty = "";
88 private boolean isVisible = true;
89 private Color startColor = Color.green;
90 private Color endColor = Color.yellow;
91 private double opacity = 0.5;
92
93 }