Revision 885 trunk/libraries/libFMap/src/com/iver/cit/gvsig/fmap/NewMapControl.java
NewMapControl.java | ||
---|---|---|
20 | 20 |
import javax.swing.Timer; |
21 | 21 |
|
22 | 22 |
import org.apache.log4j.Logger; |
23 |
import org.cresques.cts.IProjection; |
|
23 | 24 |
import org.cresques.cts.ProjectionPool; |
24 | 25 |
|
25 | 26 |
import com.iver.cit.gvsig.fmap.layers.LayerEvent; |
... | ... | |
109 | 110 |
mapContext.setViewPort(vp); |
110 | 111 |
}else{ |
111 | 112 |
vp = mapContext.getViewPort(); |
113 |
// vp.setImageSize(new Dimension(getWidth(), getHeight())); |
|
114 |
System.err.println("Viewport en setMapContext:" + vp); |
|
112 | 115 |
} |
113 | 116 |
|
114 | 117 |
mapContext.addAtomicEventListener(mapContextListener); |
115 | 118 |
|
116 | 119 |
} |
120 |
public IProjection getProjection() { |
|
121 |
return getMapContext().getProjection(); |
|
122 |
} |
|
123 |
public void setProjection(IProjection proj) |
|
124 |
{ |
|
125 |
getMapContext().setProjection(proj); |
|
126 |
} |
|
127 |
|
|
117 | 128 |
|
118 | 129 |
/** |
119 | 130 |
* DOCUMENT ME! |
Also available in: Unified diff