Revision 11971 trunk/applications/appgvSIG/src/com/iver/cit/gvsig/project/documents/layout/fframes/FFrameView.java
FFrameView.java | ||
---|---|---|
57 | 57 |
|
58 | 58 |
import javax.print.attribute.PrintRequestAttributeSet; |
59 | 59 |
|
60 |
import org.cresques.cts.IProjection; |
|
61 |
|
|
60 | 62 |
import com.hardcode.gdbms.driver.exceptions.ReadDriverException; |
61 | 63 |
import com.iver.andami.PluginServices; |
62 | 64 |
import com.iver.andami.messages.NotificationManager; |
... | ... | |
284 | 286 |
* |
285 | 287 |
* @return Rect?ngulo. |
286 | 288 |
*/ |
287 |
protected Rectangle2D.Double getNewExtent(long scale) {
|
|
289 |
protected Rectangle2D getNewExtent(long scale) { |
|
288 | 290 |
double hview = getBoundBox().getHeight(); |
289 | 291 |
double wview = getBoundBox().getWidth(); |
290 | 292 |
double hextent = (scale * hview) / 100.0; |
... | ... | |
296 | 298 |
(wextent / 2.0); |
297 | 299 |
double newy = m_fmap.getViewPort().getExtent().getCenterY() - |
298 | 300 |
(hextent / 2.0); |
299 |
|
|
300 |
return new Rectangle2D.Double(newx, newy, wextent, hextent); |
|
301 |
IProjection proj=m_fmap.getViewPort().getProjection(); |
|
302 |
Rectangle2D r = new Rectangle2D.Double(newx, newy, wextent, hextent); |
|
303 |
if (!proj.isProjected()){ |
|
304 |
r = m_fmap.getViewPort().getProjection().getExtent(r,scale,wview,hview,1,100,2.54); |
|
305 |
} |
|
306 |
return r; |
|
301 | 307 |
} |
302 | 308 |
|
303 | 309 |
/** |
Also available in: Unified diff