Statistics
| Revision:

gvsig-3d / 2.1 / trunk / org.gvsig.view3d / org.gvsig.view3d.swing / org.gvsig.view3d.swing.api / src / main / java / org / gvsig / view3d / swing / api / properties / MapControlProperties3D.java @ 693

History | View | Annotate | Download (5.01 KB)

1
package org.gvsig.view3d.swing.api.properties;
2

    
3
import java.beans.PropertyChangeListener;
4

    
5
import org.gvsig.tools.persistence.Persistent;
6
import org.gvsig.view3d.swing.api.MapControl3D;
7

    
8
/**
9
 * This class represents the properties of {@link MapControl3D}.
10
 * 
11
 * @author <a href="mailto:lmarques@disid.com">Lluis Marques</a>
12
 *
13
 */
14
public interface MapControlProperties3D extends Persistent{
15
    
16
    public static final String PERSISTENCE_NAME = "MapControl3DProperties";
17

    
18
    public final String SPHERE_VERTICAL_EXAGGERATION_PROPERTY_NAME =
19
        "sphereVerticalExaggeration";
20
    public final String FLAT_VERTICAL_EXAGGERATION_PROPERTY_NAME =
21
        "flatVerticalExaggeration";
22
    public final String AUTO_LAYER_SYNCHRONIZE_PROPERTY_NAME =
23
        "autoLayerSynchronize";
24
    public final String AUTO_VIEWPORT_SYNCHRONIZE_PROPERTY_NAME =
25
        "autoViewPortSynchronize";
26
    public final String BLUE_MARBEL_VISIBILITY_PROPERTY_NAME =
27
        "blueMarbelLayerVisibility";
28
    public final String NASA_LANDSAT_VISIBILITY_PROPERTY_NAME =
29
        "nasaLandsatLayerVisibility";
30
    public final String DEFAULT_ELEVATION_VISIBILITY_PROPERTY_NAME =
31
        "defaultElevationVisibility";
32
    public final String ANAGLYPH_MODE_PROPERTY_NAME = "anaglyphMode";
33
    
34
    /**
35
     * Adds {@link PropertyChangeListener} that will listen properties changes.
36
     * 
37
     * @param listener
38
     */
39
    public void addPropertyChangeListener(PropertyChangeListener listener);
40
    
41
    /**
42
     * @return Returns if anaglyph mode is enabled.
43
     * @see MapControlProperties3D#setAnaglyphMode()
44
     */
45
    public boolean getAnaglyphMode();
46
    
47
    /**
48
     * @see MapControlProperties3D#setAutoLayerSynchronize(boolean)
49
     * @return Gets if auto layer synchronize is active or not.
50
     */
51
    public boolean getAutoLayerSynchronize();
52
    
53
    /**
54
     * @see MapControlProperties3D#setAutoViewPortSynchronize(boolean)
55
     * @return Gets if auto view synchronize is active or not
56
     */
57
    public boolean getAutoViewPortSynchronize();
58
    
59
    /**
60
     * @see MapControlProperties3D#setBlueMarbleLayerVisibility(boolean)
61
     * @return  Gets visibility of Blue Marble layer. 
62
     */
63
    public boolean getBlueMarbleLayerVisibility();
64
    
65
    /**
66
     * @see MapControlProperties3D#setDefaultElevationVisibility(boolean)
67
     * @return Gets visibility of default elevation.
68
     */
69
    public boolean getDefaultElevationVisibility();
70
    
71
    /**
72
     * @see MapControlProperties3D#setFlatVerticalExaggeration(double)
73
     * @return Gets vertical exaggeration of flat view
74
     */
75
    public double getFlatVerticalExaggeration();
76
    
77
    /**
78
     * @see MapControlProperties3D#setNasaLandsatVisibility(boolean)
79
     * @return Gets visibility of Nasa Landsat Layer
80
     */
81
    public boolean getNasaLandsatLayerVisibility();
82
    
83
    /**
84
     * @see MapControlProperties3D#setSphereVerticalExaggeration(double)
85
     * @return Gets vertical exaggeration of sphere view
86
     */
87
    public double getSphereVerticalExaggeration();
88
    
89
    /**
90
     * Removes {@link PropertyChangeListener}.
91
     * 
92
     * @see MapControlProperties3D#addPropertyChangeListener(PropertyChangeListener)
93
     * @param listener
94
     */
95
    public void removePropertyChangeListener(PropertyChangeListener listener);
96
    
97
    /**
98
     * Sets anaglyph mode
99
     * 
100
     * @param flag True to enable anaglyph mode, false to disable it.
101
     * @see MapControlProperties3D#getAnaglyphMode()
102
     */
103
    public void setAnaglyphMode(boolean flag);
104
    
105
    /**
106
     * Set auto layer synchronize.
107
     * 
108
     * @param flag True to active auto layer synchronize, false to disable it.
109
     * @see MapControlProperties3D#getAutoLayerSynchronize()
110
     */
111
    public void setAutoLayerSynchronize(boolean flag);
112

    
113
    /**
114
     * Set auto viesport synchronize.
115
     * 
116
     * @param flag True to active auto viewport synchronize, false to disable it.
117
     * @see MapControlProperties3D#getAutoViewSynchronize()
118
     */
119
    public void setAutoViewPortSynchronize(boolean flag);
120

    
121
    /**
122
     * Sets visibility of BlueMarble layer.
123
     * 
124
     * @param visibility
125
     * @see MapControlProperties3D#getBlueMarbleLayerVisibility()
126
     */
127
    public void setBlueMarbleLayerVisibility(boolean visibility);
128

    
129
    /**
130
     * Sets visibility of deafult elevation.
131
     * 
132
     * @param visibility
133
     * @see MapControlProperties3D#getDefaultElevationVisibility()
134
     */
135
    public void setDefaultElevationVisibility(boolean visibility);
136

    
137
    /**
138
     * Sets flat vertical exaggeration.
139
     * 
140
     * @param value
141
     * @see MapControlProperties3D#getFlatVerticalExaggeration()
142
     */
143
    public void setFlatVerticalExaggeration(double value);
144

    
145
    /**
146
     * Sets Nasa Landsat visibility.
147
     * 
148
     * @param visibility
149
     * @see MapControlProperties3D#getNasaLandsatLayerVisibility()
150
     */
151
    public void setNasaLandsatVisibility(boolean visibility);
152

    
153
    /**
154
     * Sets sphere vertical exaggeration.
155
     * 
156
     * @param value
157
     * @see MapControlProperties3D#getSphereVerticalExaggeration()
158
     */
159
    public void setSphereVerticalExaggeration(double value);
160

    
161
}