gvsig-3d / 2.1 / trunk / org.gvsig.view3d / org.gvsig.view3d.lib / org.gvsig.view3d.lib.impl / src / main / java / org / gvsig / view3d / lib / impl / properties / DefaultMapControlProperties3D.java @ 494
History | View | Annotate | Download (3.59 KB)
1 |
package org.gvsig.view3d.lib.impl.properties; |
---|---|
2 |
|
3 |
import java.beans.PropertyChangeListener; |
4 |
import java.beans.PropertyChangeSupport; |
5 |
|
6 |
import org.gvsig.view3d.lib.api.properties.MapControlProperties3D; |
7 |
|
8 |
public class DefaultMapControlProperties3D implements MapControlProperties3D { |
9 |
|
10 |
private PropertyChangeSupport propertyChangeSupport; |
11 |
|
12 |
private double sphereVerticalExaggeration = 1; |
13 |
private double flatVerticalExaggeration = 1; |
14 |
private boolean autoLayerShynchornize = true; |
15 |
private boolean autoViewPortSynchronize = false; |
16 |
private boolean showBlueMarbleLayer = true; |
17 |
private boolean showNasaLandsatLayer = true; |
18 |
private boolean showDefaultElevation = true; |
19 |
|
20 |
public DefaultMapControlProperties3D() {
|
21 |
propertyChangeSupport = new PropertyChangeSupport(this); |
22 |
} |
23 |
|
24 |
public boolean getAutoLayerSynchronize() { |
25 |
return autoLayerShynchornize;
|
26 |
} |
27 |
|
28 |
public boolean getAutoViewSynchronize() { |
29 |
return autoViewPortSynchronize;
|
30 |
} |
31 |
|
32 |
public boolean getBlueMarbleLayerVisibility() { |
33 |
return showBlueMarbleLayer;
|
34 |
} |
35 |
|
36 |
public boolean getDefaultElevationVisibility() { |
37 |
return showDefaultElevation;
|
38 |
} |
39 |
|
40 |
public double getFlatVerticalExaggeration() { |
41 |
return flatVerticalExaggeration;
|
42 |
} |
43 |
|
44 |
public boolean getNasaLandsatLayerVisibility() { |
45 |
return showNasaLandsatLayer;
|
46 |
} |
47 |
|
48 |
public double getSphereVerticalExaggeration() { |
49 |
return sphereVerticalExaggeration;
|
50 |
} |
51 |
|
52 |
public void setAutoLayerSynchronize(boolean flag) { |
53 |
this.propertyChangeSupport.firePropertyChange(
|
54 |
AUTO_LAYER_SYNCHRONIZE_PROPERTY_NAME, autoLayerShynchornize, flag); |
55 |
this.autoLayerShynchornize = flag;
|
56 |
} |
57 |
|
58 |
public void setAutoViewPortSynchronize(boolean flag) { |
59 |
this.propertyChangeSupport.firePropertyChange(
|
60 |
AUTO_VIEWPORT_SYNCHRONIZE_PROPERTY_NAME, autoViewPortSynchronize, |
61 |
flag); |
62 |
this.autoViewPortSynchronize = flag;
|
63 |
} |
64 |
|
65 |
public void setBlueMarbleLayerVisibility(boolean visibility) { |
66 |
this.propertyChangeSupport.firePropertyChange(
|
67 |
BLUE_MARBEL_VISIBILITY_PROPERTY_NAME, showBlueMarbleLayer, |
68 |
visibility); |
69 |
this.showBlueMarbleLayer = visibility;
|
70 |
} |
71 |
|
72 |
public void setDefaultElevationVisibility(boolean visibility) { |
73 |
this.propertyChangeSupport.firePropertyChange(
|
74 |
DEFAULT_ELEVATION_VISIBILITY_PROPERTY_NAME, showDefaultElevation, |
75 |
visibility); |
76 |
this.showDefaultElevation = visibility;
|
77 |
} |
78 |
|
79 |
public void setFlatVerticalExaggeration(double value) { |
80 |
this.propertyChangeSupport.firePropertyChange(
|
81 |
FLAT_VERTICAL_EXAGGERATION_PROPERTY_NAME, flatVerticalExaggeration, |
82 |
value); |
83 |
this.flatVerticalExaggeration = value;
|
84 |
} |
85 |
|
86 |
public void setNasaLandsatVisibility(boolean visibility) { |
87 |
this.propertyChangeSupport.firePropertyChange(
|
88 |
NASA_LANDSAT_VISIBILITY_PROPERTY_NAME, showNasaLandsatLayer, |
89 |
visibility); |
90 |
this.showNasaLandsatLayer = visibility;
|
91 |
} |
92 |
|
93 |
public void setSphereVerticalExaggeration(double value) { |
94 |
this.propertyChangeSupport.firePropertyChange(
|
95 |
SPHERE_VERTICAL_EXAGGERATION_PROPERTY_NAME, sphereVerticalExaggeration, |
96 |
value); |
97 |
this.sphereVerticalExaggeration = value;
|
98 |
} |
99 |
|
100 |
public void addPropertyChangeListener(PropertyChangeListener listener) { |
101 |
this.propertyChangeSupport.addPropertyChangeListener(listener);
|
102 |
} |
103 |
|
104 |
public void removePropertyChangeListener(PropertyChangeListener listener) { |
105 |
this.propertyChangeSupport.removePropertyChangeListener(listener);
|
106 |
} |
107 |
|
108 |
} |