gvsig-3d / 2.1 / branches / extrusion / org.gvsig.view3d.swing / org.gvsig.view3d.swing.api / src / main / java / org / gvsig / view3d / swing / api / properties / GeneralProperties3D.java @ 657
History | View | Annotate | Download (5.4 KB)
1 |
package org.gvsig.view3d.swing.api.properties; |
---|---|
2 |
|
3 |
import java.beans.PropertyChangeListener; |
4 |
import java.io.File; |
5 |
|
6 |
/**
|
7 |
* This class represents the general properties of 3D library.
|
8 |
*
|
9 |
* @author <a href="mailto:lmarques@disid.com">Lluis Marques</a>
|
10 |
*
|
11 |
*/
|
12 |
public interface GeneralProperties3D { |
13 |
|
14 |
public final static String DEFAULT_VIEW_HEIGHT_PROPERTY_NAME = |
15 |
"defaultViewHeight";
|
16 |
public final static String DEFAULT_VIEW_WIDTH_PROPERTY_NAME = |
17 |
"defaultViewWidth";
|
18 |
|
19 |
public final static String ATMOSPHERE_VISIBILITY_PROPERTY_NAME = |
20 |
"atmosphereVisibility";
|
21 |
public final static String MINIMAP_VISIBILITY_PROPERTY_NAME = |
22 |
"minimapVisibility";
|
23 |
public final static String NORTH_INDICATOR_VISIBILITY_PROPERTY_NAME = |
24 |
"northIndicatorVisibility";
|
25 |
public final static String STARS_BACKGROUND_VISIBILITY_PROPERTY_NAME = |
26 |
"starsBackgroundVisibility";
|
27 |
public final static String SCALE_VISIBILITY_PROPERTY_NAME = |
28 |
"scaleVisibility";
|
29 |
|
30 |
public final static String VIEWPORT_ANIMATION_PROPERTY_NAME = |
31 |
"viewPortAnimation";
|
32 |
|
33 |
public final static String CACHE_PATH_PROPERTY_NAME = "cachePath"; |
34 |
|
35 |
/**
|
36 |
* Adds {@link PropertyChangeListener} that will listen properties changes.
|
37 |
*
|
38 |
* @param listener
|
39 |
* @see GeneralProperties3D#removePropertyChangeListener(PropertyChangeListener)
|
40 |
*/
|
41 |
public void addPropertyChangeListener(PropertyChangeListener listener); |
42 |
|
43 |
/**
|
44 |
* Gets the atmosphere visibility.
|
45 |
*
|
46 |
* @see GeneralProperties3D#setAtmosphereVisibility(boolean)
|
47 |
* @return visibility of atmosphere component.
|
48 |
*/
|
49 |
public boolean getAtmosphereVisibility(); |
50 |
|
51 |
/**
|
52 |
* Gets path of tile cache.
|
53 |
*
|
54 |
* @see GeneralProperties3D#setCachePath(File)
|
55 |
* @return
|
56 |
*/
|
57 |
public File getCachePath(); |
58 |
|
59 |
/**
|
60 |
* Gets the default view heigth of 3D views.
|
61 |
*
|
62 |
* @see GeneralProperties3D#setDefaultViewHeight(int)
|
63 |
* @return Default height of 3D views.
|
64 |
*/
|
65 |
public int getDefaultViewHeight(); |
66 |
|
67 |
/**
|
68 |
* Gets the default view width of 3D views.
|
69 |
*
|
70 |
* @see GeneralProperties3D#setDefaultViewWidth(int)
|
71 |
* @return Default width of 3D views.
|
72 |
*/
|
73 |
public int getDefaultViewWidth(); |
74 |
|
75 |
/**
|
76 |
* Gets minimap visibility.
|
77 |
*
|
78 |
* @see GeneralProperties3D#setMinimapVisibility(boolean)
|
79 |
* @return Visibility of minimap.
|
80 |
*/
|
81 |
public boolean getMinimapVisibility(); |
82 |
|
83 |
/**
|
84 |
* Gets north indicator visibility.
|
85 |
*
|
86 |
* @see GeneralProperties3D#setNorthIndicatorVisibility(boolean)
|
87 |
* @return Visibility of north indicator component.
|
88 |
*/
|
89 |
public boolean getNorthIndicatorVisibility(); |
90 |
|
91 |
/**
|
92 |
* Get visibility of scale component.
|
93 |
*
|
94 |
* @see GeneralProperties3D#setScaleVisibility(boolean)
|
95 |
* @return Visibility of scale component.
|
96 |
*/
|
97 |
public boolean getScaleVisibility(); |
98 |
|
99 |
/**
|
100 |
* Get starts background visibility.
|
101 |
*
|
102 |
* @see GeneralProperties3D#setStarsBackgroundVisibility(boolean)
|
103 |
* @return Visibility of starts background component.
|
104 |
*/
|
105 |
public boolean getStarsBackgroundVisibility(); |
106 |
|
107 |
/**
|
108 |
* Gets if the view port synchronize is animated
|
109 |
*
|
110 |
* @see GeneralProperties3D#setViewPortAnimation(boolean)
|
111 |
* @return True if view port synchronize is animated, false if it is not
|
112 |
* animated.
|
113 |
*/
|
114 |
public boolean getViewPortAnimation(); |
115 |
|
116 |
/**
|
117 |
* Removes {@link PropertyChangeListener}.
|
118 |
*
|
119 |
* @param listener
|
120 |
* @see GeneralProperties3D#addPropertyChangeListener(PropertyChangeListener)
|
121 |
*/
|
122 |
public void removePropertyChangeListener(PropertyChangeListener listener); |
123 |
|
124 |
/**
|
125 |
* Sets visibility of atmosphere component.
|
126 |
*
|
127 |
* @param visibility
|
128 |
* @see GeneralProperties3D#getAtmosphereVisibility()
|
129 |
*/
|
130 |
public void setAtmosphereVisibility(boolean visibility); |
131 |
|
132 |
/**
|
133 |
* Sets path of tile cache.
|
134 |
*
|
135 |
* @param path
|
136 |
* @see GeneralProperties3D#getCachePath()
|
137 |
*/
|
138 |
public void setCachePath(File path); |
139 |
|
140 |
/**
|
141 |
* Sets default view height.
|
142 |
*
|
143 |
* @param height
|
144 |
* @see GeneralProperties3D#getDefaultViewHeight()
|
145 |
*/
|
146 |
public void setDefaultViewHeight(int height); |
147 |
|
148 |
/**
|
149 |
* Sets default view width.
|
150 |
*
|
151 |
* @param width
|
152 |
* @see GeneralProperties3D#getDefaultViewWidth()
|
153 |
*/
|
154 |
public void setDefaultViewWidth(int width); |
155 |
|
156 |
/**
|
157 |
* Sets visibility of miniMap component.
|
158 |
*
|
159 |
* @param visibility
|
160 |
* @see GeneralProperties3D#getMinimapVisibility()
|
161 |
*/
|
162 |
public void setMinimapVisibility(boolean visibility); |
163 |
|
164 |
/**
|
165 |
* Sets visibility of north indicator component.
|
166 |
*
|
167 |
* @param visibility
|
168 |
* @see GeneralProperties3D#getNorthIndicatorVisibility()
|
169 |
*/
|
170 |
public void setNorthIndicatorVisibility(boolean visibility); |
171 |
|
172 |
/**
|
173 |
* Sets visibility of scale component.
|
174 |
*
|
175 |
* @param visibility
|
176 |
* @see GeneralProperties3D#getScaleVisibility()
|
177 |
*/
|
178 |
public void setScaleVisibility(boolean visibility); |
179 |
|
180 |
/**
|
181 |
* Sets visibility of starts background component.
|
182 |
*
|
183 |
* @param visibility
|
184 |
* @see GeneralProperties3D#getStarsBackgroundVisibility()
|
185 |
*/
|
186 |
public void setStarsBackgroundVisibility(boolean visibility); |
187 |
|
188 |
/**
|
189 |
* Sets if the view port synchronize is animated or not.
|
190 |
*
|
191 |
* @param flag
|
192 |
* @see GeneralProperties3D#getViewPortAnimation()
|
193 |
*/
|
194 |
public void setViewPortAnimation(boolean flag); |
195 |
} |