| 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 |
import java.awt.*; |
| 29 |
|
| 30 |
|
| 31 |
|
| 32 |
|
| 33 |
|
| 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 |
} |