Revision 428 2.1/trunk/org.gvsig.view3d/org.gvsig.view3d.swing/org.gvsig.view3d.swing.impl/src/main/java/org/gvsig/view3d/swing/impl/DefaultView3DPanel.java

View differences:

DefaultView3DPanel.java
41 41
import java.lang.reflect.InvocationTargetException;
42 42
import java.util.List;
43 43

  
44
import javax.swing.JComponent;
45

  
44 46
import org.slf4j.Logger;
45 47
import org.slf4j.LoggerFactory;
46 48

  
......
63 65
    private static final long serialVersionUID = -87105248886531868L;
64 66

  
65 67
    private MapContext mapContext;
68
    
69
    private TYPE type;
66 70

  
67
    public DefaultView3DPanel(MapContext theMapContext, int mode) {
71
    public DefaultView3DPanel(MapContext theMapContext, TYPE type) {
68 72

  
69
        super(new BorderLayout(), mode);
73
        super(new BorderLayout(), type);
70 74

  
71 75
        this.mapContext = theMapContext;
76
        this.type = type;
72 77

  
73 78
        // add(this.mapContext.getLayers());
74 79

  
......
87 92
    public MapContext getMapContext() {
88 93
        return this.mapContext;
89 94
    }
95
    
96
    public TYPE getType() {
97
        // TODO Auto-generated method stub
98
        return this.type;
99
    }
90 100

  
91 101
    public double getVerticalExaggeration() {
92 102
        return getWwd().getSceneController().getVerticalExaggeration();
......
231 241
            }
232 242
        }
233 243
    }
244

  
245
    public JComponent asJComponent() {
246
        return this;
247
    }
248

  
234 249
}

Also available in: Unified diff