gvsig-3d / 2.1 / trunk / org.gvsig.view3d / org.gvsig.view3d.swing / org.gvsig.view3d.swing.impl / src / main / java / org / gvsig / view3d / swing / impl / properties / DefaultViewProperties3DPanel.java @ 533
History | View | Annotate | Download (2.23 KB)
1 |
package org.gvsig.view3d.swing.impl.properties; |
---|---|
2 |
|
3 |
import javax.swing.JComponent; |
4 |
|
5 |
import org.gvsig.view3d.swing.api.properties.MapControlProperties3D; |
6 |
|
7 |
public class DefaultViewProperties3DPanel extends AbstractViewProperties3DPanel { |
8 |
|
9 |
private static final long serialVersionUID = -3563717730935555229L; |
10 |
|
11 |
private MapControlProperties3D properties;
|
12 |
|
13 |
public DefaultViewProperties3DPanel(MapControlProperties3D theProperties) {
|
14 |
super();
|
15 |
|
16 |
this.properties = theProperties;
|
17 |
|
18 |
fillPanel(); |
19 |
} |
20 |
|
21 |
private void fillPanel() { |
22 |
|
23 |
getSphereVerticalExaggerationField().setText( |
24 |
String.valueOf(properties.getSphereVerticalExaggeration()));
|
25 |
|
26 |
getFlatVerticalExaggerationField().setText( |
27 |
String.valueOf(properties.getFlatVerticalExaggeration()));
|
28 |
|
29 |
getAutoLayerSynchronizeCheckBox().setSelected( |
30 |
properties.getAutoLayerSynchronize()); |
31 |
getAutoViewPortSynchronizeCheckBox().setSelected( |
32 |
properties.getAutoViewPortSynchronize()); |
33 |
getShowBlueMarbleLayerCheckBox().setSelected( |
34 |
properties.getBlueMarbleLayerVisibility()); |
35 |
getShowNasaLandsatLayerCheckBox().setSelected( |
36 |
properties.getNasaLandsatLayerVisibility()); |
37 |
getShowDefaultElevationCheckBox().setSelected( |
38 |
properties.getDefaultElevationVisibility()); |
39 |
} |
40 |
|
41 |
public JComponent asJComponent() { |
42 |
return this; |
43 |
} |
44 |
|
45 |
public boolean getAutoLayerSynchronize() { |
46 |
return getAutoLayerSynchronizeCheckBox().isSelected();
|
47 |
} |
48 |
|
49 |
public boolean getAutoViewPortSynchronize() { |
50 |
return getAutoViewPortSynchronizeCheckBox().isSelected();
|
51 |
} |
52 |
|
53 |
public boolean getShowBlueMarble() { |
54 |
return getShowBlueMarbleLayerCheckBox().isSelected();
|
55 |
} |
56 |
|
57 |
public boolean getShowDefaultElevation() { |
58 |
return getShowDefaultElevationCheckBox().isSelected();
|
59 |
} |
60 |
|
61 |
public boolean getShowNasaLandsat() { |
62 |
return getShowNasaLandsatLayerCheckBox().isSelected();
|
63 |
} |
64 |
|
65 |
public double getFlatVerticalExaggeration() { |
66 |
return Double.valueOf(getFlatVerticalExaggerationField().getText()); |
67 |
} |
68 |
|
69 |
public double getSphereVerticalExaggeration() { |
70 |
return Double.valueOf(getSphereVerticalExaggerationField().getText()); |
71 |
} |
72 |
|
73 |
} |