Statistics
| Revision:

root / trunk / docs / FMap / fmap-api / com / iver / cit / gvsig / fmap / ViewPort.html @ 11445

History | View | Annotate | Download (41.6 KB)

1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
2
<!--NewPage-->
3
<HTML>
4
<HEAD>
5
<!-- Generated by javadoc (build 1.4.2_04) on Mon Feb 14 08:45:47 CET 2005 -->
6
<TITLE>
7
ViewPort (FMap API)
8
</TITLE>
9

    
10
<META NAME="keywords" CONTENT="com.iver.cit.gvsig.fmap.ViewPort class">
11

    
12
<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../../stylesheet.css" TITLE="Style">
13

    
14
<SCRIPT type="text/javascript">
15
function windowTitle()
16
{
17
    parent.document.title="ViewPort (FMap API)";
18
}
19
</SCRIPT>
20

    
21
</HEAD>
22

    
23
<BODY BGCOLOR="white" onload="windowTitle();">
24

    
25

    
26
<!-- ========= START OF TOP NAVBAR ======= -->
27
<A NAME="navbar_top"><!-- --></A>
28
<A HREF="#skip-navbar_top" title="Skip navigation links"></A>
29
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
30
<TR>
31
<TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
32
<A NAME="navbar_top_firstrow"><!-- --></A>
33
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
34
  <TR ALIGN="center" VALIGN="top">
35
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
36
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
37
  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
38
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
39
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
40
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
41
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
42
  </TR>
43
</TABLE>
44
</TD>
45
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
46
</EM>
47
</TD>
48
</TR>
49

    
50
<TR>
51
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
52
&nbsp;<A HREF="../../../../../com/iver/cit/gvsig/fmap/MapControl.MapToolListener.html" title="class in com.iver.cit.gvsig.fmap"><B>PREV CLASS</B></A>&nbsp;
53
&nbsp;NEXT CLASS</FONT></TD>
54
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
55
  <A HREF="../../../../../index.html" target="_top"><B>FRAMES</B></A>  &nbsp;
56
&nbsp;<A HREF="ViewPort.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
57
&nbsp;<SCRIPT type="text/javascript">
58
  <!--
59
  if(window==top) {
60
    document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
61
  }
62
  //-->
63
</SCRIPT>
64
<NOSCRIPT>
65
  <A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>
66
</NOSCRIPT>
67

    
68
</FONT></TD>
69
</TR>
70
<TR>
71
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
72
  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
73
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
74
DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
75
</TR>
76
</TABLE>
77
<A NAME="skip-navbar_top"></A>
78
<!-- ========= END OF TOP NAVBAR ========= -->
79

    
80
<HR>
81
<!-- ======== START OF CLASS DATA ======== -->
82
<H2>
83
<FONT SIZE="-1">
84
com.iver.cit.gvsig.fmap</FONT>
85
<BR>
86
Class ViewPort</H2>
87
<PRE>
88
java.lang.Object
89
  <IMG SRC="../../../../../resources/inherit.gif" ALT="extended by"><B>com.iver.cit.gvsig.fmap.ViewPort</B>
90
</PRE>
91
<HR>
92
<DL>
93
<DT>public class <B>ViewPort</B><DT>extends java.lang.Object</DL>
94

    
95
<P>
96
Clase con atributos de la vista.
97
<P>
98

    
99
<P>
100
<DL>
101
<DT><B>Author:</B></DT>
102
  <DD>Vicente Caballero Navarro</DD>
103
</DL>
104
<HR>
105

    
106
<P>
107
<!-- ======== NESTED CLASS SUMMARY ======== -->
108

    
109

    
110
<!-- =========== FIELD SUMMARY =========== -->
111

    
112
<A NAME="field_summary"><!-- --></A>
113
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
114
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
115
<TD COLSPAN=2><FONT SIZE="+2">
116
<B>Field Summary</B></FONT></TD>
117
</TR>
118
<TR BGCOLOR="white" CLASS="TableRowColor">
119
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
120
<CODE>static&nbsp;int</CODE></FONT></TD>
121
<TD><CODE><B><A HREF="../../../../../com/iver/cit/gvsig/fmap/ViewPort.html#CENTIMETRO">CENTIMETRO</A></B></CODE>
122

    
123
<BR>
124
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
125
</TR>
126
<TR BGCOLOR="white" CLASS="TableRowColor">
127
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
128
<CODE>static&nbsp;int</CODE></FONT></TD>
129
<TD><CODE><B><A HREF="../../../../../com/iver/cit/gvsig/fmap/ViewPort.html#KILOMETROS">KILOMETROS</A></B></CODE>
130

    
131
<BR>
132
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
133
</TR>
134
<TR BGCOLOR="white" CLASS="TableRowColor">
135
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
136
<CODE>static&nbsp;int</CODE></FONT></TD>
137
<TD><CODE><B><A HREF="../../../../../com/iver/cit/gvsig/fmap/ViewPort.html#METROS">METROS</A></B></CODE>
138

    
139
<BR>
140
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
141
</TR>
142
<TR BGCOLOR="white" CLASS="TableRowColor">
143
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
144
<CODE>static&nbsp;int</CODE></FONT></TD>
145
<TD><CODE><B><A HREF="../../../../../com/iver/cit/gvsig/fmap/ViewPort.html#MILIMETRO">MILIMETRO</A></B></CODE>
146

    
147
<BR>
148
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
149
</TR>
150
<TR BGCOLOR="white" CLASS="TableRowColor">
151
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
152
<CODE>static&nbsp;int</CODE></FONT></TD>
153
<TD><CODE><B><A HREF="../../../../../com/iver/cit/gvsig/fmap/ViewPort.html#MILLAS">MILLAS</A></B></CODE>
154

    
155
<BR>
156
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
157
</TR>
158
<TR BGCOLOR="white" CLASS="TableRowColor">
159
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
160
<CODE>static&nbsp;int</CODE></FONT></TD>
161
<TD><CODE><B><A HREF="../../../../../com/iver/cit/gvsig/fmap/ViewPort.html#PIES">PIES</A></B></CODE>
162

    
163
<BR>
164
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
165
</TR>
166
<TR BGCOLOR="white" CLASS="TableRowColor">
167
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
168
<CODE>static&nbsp;int</CODE></FONT></TD>
169
<TD><CODE><B><A HREF="../../../../../com/iver/cit/gvsig/fmap/ViewPort.html#PULGADAS">PULGADAS</A></B></CODE>
170

    
171
<BR>
172
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
173
</TR>
174
<TR BGCOLOR="white" CLASS="TableRowColor">
175
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
176
<CODE>static&nbsp;int</CODE></FONT></TD>
177
<TD><CODE><B><A HREF="../../../../../com/iver/cit/gvsig/fmap/ViewPort.html#YARDAS">YARDAS</A></B></CODE>
178

    
179
<BR>
180
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
181
</TR>
182
</TABLE>
183
&nbsp;
184
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
185

    
186
<A NAME="constructor_summary"><!-- --></A>
187
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
188
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
189
<TD COLSPAN=2><FONT SIZE="+2">
190
<B>Constructor Summary</B></FONT></TD>
191
</TR>
192
<TR BGCOLOR="white" CLASS="TableRowColor">
193
<TD><CODE><B><A HREF="../../../../../com/iver/cit/gvsig/fmap/ViewPort.html#ViewPort(IProjection)">ViewPort</A></B>(IProjection&nbsp;proj)</CODE>
194

    
195
<BR>
196
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Crea un nuevo ViewPort.</TD>
197
</TR>
198
</TABLE>
199
&nbsp;
200
<!-- ========== METHOD SUMMARY =========== -->
201

    
202
<A NAME="method_summary"><!-- --></A>
203
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
204
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
205
<TD COLSPAN=2><FONT SIZE="+2">
206
<B>Method Summary</B></FONT></TD>
207
</TR>
208
<TR BGCOLOR="white" CLASS="TableRowColor">
209
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
210
<CODE>&nbsp;boolean</CODE></FONT></TD>
211
<TD><CODE><B><A HREF="../../../../../com/iver/cit/gvsig/fmap/ViewPort.html#addViewPortListener(com.iver.cit.gvsig.fmap.ViewPortListener)">addViewPortListener</A></B>(<A HREF="../../../../../com/iver/cit/gvsig/fmap/ViewPortListener.html" title="interface in com.iver.cit.gvsig.fmap">ViewPortListener</A>&nbsp;arg0)</CODE>
212

    
213
<BR>
214
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;A?ade un ViewPortListener al extentListener.</TD>
215
</TR>
216
<TR BGCOLOR="white" CLASS="TableRowColor">
217
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
218
<CODE>&nbsp;<A HREF="../../../../../com/iver/cit/gvsig/fmap/ViewPort.html" title="class in com.iver.cit.gvsig.fmap">ViewPort</A></CODE></FONT></TD>
219
<TD><CODE><B><A HREF="../../../../../com/iver/cit/gvsig/fmap/ViewPort.html#cloneViewPort()">cloneViewPort</A></B>()</CODE>
220

    
221
<BR>
222
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Clona el ViewPort.</TD>
223
</TR>
224
<TR BGCOLOR="white" CLASS="TableRowColor">
225
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
226
<CODE>static&nbsp;<A HREF="../../../../../com/iver/cit/gvsig/fmap/ViewPort.html" title="class in com.iver.cit.gvsig.fmap">ViewPort</A></CODE></FONT></TD>
227
<TD><CODE><B><A HREF="../../../../../com/iver/cit/gvsig/fmap/ViewPort.html#createFromXML(XMLEntity)">createFromXML</A></B>(XMLEntity&nbsp;xml)</CODE>
228

    
229
<BR>
230
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Crea un nuevo ViewPort a partir del XMLEntity.</TD>
231
</TR>
232
<TR BGCOLOR="white" CLASS="TableRowColor">
233
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
234
<CODE>&nbsp;double</CODE></FONT></TD>
235
<TD><CODE><B><A HREF="../../../../../com/iver/cit/gvsig/fmap/ViewPort.html#distanceWorld(java.awt.geom.Point2D, java.awt.geom.Point2D)">distanceWorld</A></B>(java.awt.geom.Point2D&nbsp;pt1,
236
              java.awt.geom.Point2D&nbsp;pt2)</CODE>
237

    
238
<BR>
239
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Calcula la distancia entre dos puntos en unidades de usuario. </TD>
240
</TR>
241
<TR BGCOLOR="white" CLASS="TableRowColor">
242
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
243
<CODE>&nbsp;int</CODE></FONT></TD>
244
<TD><CODE><B><A HREF="../../../../../com/iver/cit/gvsig/fmap/ViewPort.html#fromMapDistance(double)">fromMapDistance</A></B>(double&nbsp;d)</CODE>
245

    
246
<BR>
247
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Devuelve la distancia en pixels a partir de una distancia real.</TD>
248
</TR>
249
<TR BGCOLOR="white" CLASS="TableRowColor">
250
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
251
<CODE>&nbsp;java.awt.geom.Point2D</CODE></FONT></TD>
252
<TD><CODE><B><A HREF="../../../../../com/iver/cit/gvsig/fmap/ViewPort.html#fromMapPoint(double, double)">fromMapPoint</A></B>(double&nbsp;x,
253
             double&nbsp;y)</CODE>
254

    
255
<BR>
256
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Devuelve un punto en pixels a partir de una coordenada X e Y real.</TD>
257
</TR>
258
<TR BGCOLOR="white" CLASS="TableRowColor">
259
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
260
<CODE>&nbsp;java.awt.geom.Point2D</CODE></FONT></TD>
261
<TD><CODE><B><A HREF="../../../../../com/iver/cit/gvsig/fmap/ViewPort.html#fromMapPoint(java.awt.geom.Point2D)">fromMapPoint</A></B>(java.awt.geom.Point2D&nbsp;point)</CODE>
262

    
263
<BR>
264
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Devuelve el punto en pixels a partir de un punto real.</TD>
265
</TR>
266
<TR BGCOLOR="white" CLASS="TableRowColor">
267
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
268
<CODE>&nbsp;java.awt.geom.Rectangle2D</CODE></FONT></TD>
269
<TD><CODE><B><A HREF="../../../../../com/iver/cit/gvsig/fmap/ViewPort.html#getAdjustedExtent()">getAdjustedExtent</A></B>()</CODE>
270

    
271
<BR>
272
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Devuelve el extent ajustado.</TD>
273
</TR>
274
<TR BGCOLOR="white" CLASS="TableRowColor">
275
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
276
<CODE>&nbsp;java.awt.geom.AffineTransform</CODE></FONT></TD>
277
<TD><CODE><B><A HREF="../../../../../com/iver/cit/gvsig/fmap/ViewPort.html#getAffineTransform()">getAffineTransform</A></B>()</CODE>
278

    
279
<BR>
280
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Devuelve la matriz de transformaci?n.</TD>
281
</TR>
282
<TR BGCOLOR="white" CLASS="TableRowColor">
283
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
284
<CODE>&nbsp;java.awt.Color</CODE></FONT></TD>
285
<TD><CODE><B><A HREF="../../../../../com/iver/cit/gvsig/fmap/ViewPort.html#getBackColor()">getBackColor</A></B>()</CODE>
286

    
287
<BR>
288
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Devuelve el color de fondo.</TD>
289
</TR>
290
<TR BGCOLOR="white" CLASS="TableRowColor">
291
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
292
<CODE>&nbsp;double</CODE></FONT></TD>
293
<TD><CODE><B><A HREF="../../../../../com/iver/cit/gvsig/fmap/ViewPort.html#getDist1pixel()">getDist1pixel</A></B>()</CODE>
294

    
295
<BR>
296
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Devuelve la distancia real de un pixel.</TD>
297
</TR>
298
<TR BGCOLOR="white" CLASS="TableRowColor">
299
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
300
<CODE>&nbsp;double</CODE></FONT></TD>
301
<TD><CODE><B><A HREF="../../../../../com/iver/cit/gvsig/fmap/ViewPort.html#getDist3pixel()">getDist3pixel</A></B>()</CODE>
302

    
303
<BR>
304
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Devuelve la distancia real de tres pixel.</TD>
305
</TR>
306
<TR BGCOLOR="white" CLASS="TableRowColor">
307
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
308
<CODE>&nbsp;int</CODE></FONT></TD>
309
<TD><CODE><B><A HREF="../../../../../com/iver/cit/gvsig/fmap/ViewPort.html#getDistanceUnits()">getDistanceUnits</A></B>()</CODE>
310

    
311
<BR>
312
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Devuelve la unidad de medida.</TD>
313
</TR>
314
<TR BGCOLOR="white" CLASS="TableRowColor">
315
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
316
<CODE>&nbsp;java.awt.geom.Rectangle2D</CODE></FONT></TD>
317
<TD><CODE><B><A HREF="../../../../../com/iver/cit/gvsig/fmap/ViewPort.html#getExtent()">getExtent</A></B>()</CODE>
318

    
319
<BR>
320
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Devuelve el extent.</TD>
321
</TR>
322
<TR BGCOLOR="white" CLASS="TableRowColor">
323
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
324
<CODE>&nbsp;<A HREF="../../../../../com/iver/cit/gvsig/fmap/ExtentHistory.html" title="class in com.iver.cit.gvsig.fmap">ExtentHistory</A></CODE></FONT></TD>
325
<TD><CODE><B><A HREF="../../../../../com/iver/cit/gvsig/fmap/ViewPort.html#getExtents()">getExtents</A></B>()</CODE>
326

    
327
<BR>
328
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Devuelve los Extents anteriores almacenados.</TD>
329
</TR>
330
<TR BGCOLOR="white" CLASS="TableRowColor">
331
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
332
<CODE>&nbsp;int</CODE></FONT></TD>
333
<TD><CODE><B><A HREF="../../../../../com/iver/cit/gvsig/fmap/ViewPort.html#getImageHeight()">getImageHeight</A></B>()</CODE>
334

    
335
<BR>
336
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Devuelve la altura de la imagen.</TD>
337
</TR>
338
<TR BGCOLOR="white" CLASS="TableRowColor">
339
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
340
<CODE>&nbsp;java.awt.Dimension</CODE></FONT></TD>
341
<TD><CODE><B><A HREF="../../../../../com/iver/cit/gvsig/fmap/ViewPort.html#getImageSize()">getImageSize</A></B>()</CODE>
342

    
343
<BR>
344
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Devuelve las dimensiones de la imagen.</TD>
345
</TR>
346
<TR BGCOLOR="white" CLASS="TableRowColor">
347
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
348
<CODE>&nbsp;int</CODE></FONT></TD>
349
<TD><CODE><B><A HREF="../../../../../com/iver/cit/gvsig/fmap/ViewPort.html#getImageWidth()">getImageWidth</A></B>()</CODE>
350

    
351
<BR>
352
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Devuelve la anchura de la imagen.</TD>
353
</TR>
354
<TR BGCOLOR="white" CLASS="TableRowColor">
355
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
356
<CODE>&nbsp;int</CODE></FONT></TD>
357
<TD><CODE><B><A HREF="../../../../../com/iver/cit/gvsig/fmap/ViewPort.html#getMapUnits()">getMapUnits</A></B>()</CODE>
358

    
359
<BR>
360
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Devuelve la unidad de medida del mapa.</TD>
361
</TR>
362
<TR BGCOLOR="white" CLASS="TableRowColor">
363
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
364
<CODE>&nbsp;java.awt.geom.Point2D</CODE></FONT></TD>
365
<TD><CODE><B><A HREF="../../../../../com/iver/cit/gvsig/fmap/ViewPort.html#getOffset()">getOffset</A></B>()</CODE>
366

    
367
<BR>
368
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Devuelve la desviaci?n.</TD>
369
</TR>
370
<TR BGCOLOR="white" CLASS="TableRowColor">
371
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
372
<CODE>&nbsp;IProjection</CODE></FONT></TD>
373
<TD><CODE><B><A HREF="../../../../../com/iver/cit/gvsig/fmap/ViewPort.html#getProjection()">getProjection</A></B>()</CODE>
374

    
375
<BR>
376
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Devuelve la proyecci?n.</TD>
377
</TR>
378
<TR BGCOLOR="white" CLASS="TableRowColor">
379
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
380
<CODE>&nbsp;double</CODE></FONT></TD>
381
<TD><CODE><B><A HREF="../../../../../com/iver/cit/gvsig/fmap/ViewPort.html#getScale()">getScale</A></B>()</CODE>
382

    
383
<BR>
384
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Devuelve la escala. </TD>
385
</TR>
386
<TR BGCOLOR="white" CLASS="TableRowColor">
387
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
388
<CODE>&nbsp;XMLEntity</CODE></FONT></TD>
389
<TD><CODE><B><A HREF="../../../../../com/iver/cit/gvsig/fmap/ViewPort.html#getXMLEntity()">getXMLEntity</A></B>()</CODE>
390

    
391
<BR>
392
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Devuelve el XMLEntity.</TD>
393
</TR>
394
<TR BGCOLOR="white" CLASS="TableRowColor">
395
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
396
<CODE>&nbsp;boolean</CODE></FONT></TD>
397
<TD><CODE><B><A HREF="../../../../../com/iver/cit/gvsig/fmap/ViewPort.html#removeViewPortListener(com.iver.cit.gvsig.fmap.ViewPortListener)">removeViewPortListener</A></B>(<A HREF="../../../../../com/iver/cit/gvsig/fmap/ViewPortListener.html" title="interface in com.iver.cit.gvsig.fmap">ViewPortListener</A>&nbsp;arg0)</CODE>
398

    
399
<BR>
400
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Borra el ViewPortListener que se pasa como par?metro delos
401
 extentListener.</TD>
402
</TR>
403
<TR BGCOLOR="white" CLASS="TableRowColor">
404
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
405
<CODE>&nbsp;void</CODE></FONT></TD>
406
<TD><CODE><B><A HREF="../../../../../com/iver/cit/gvsig/fmap/ViewPort.html#setAffineTransform(java.awt.geom.AffineTransform)">setAffineTransform</A></B>(java.awt.geom.AffineTransform&nbsp;at)</CODE>
407

    
408
<BR>
409
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;M?todo que solo lo utilizamos a la hora de imprimir. </TD>
410
</TR>
411
<TR BGCOLOR="white" CLASS="TableRowColor">
412
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
413
<CODE>&nbsp;void</CODE></FONT></TD>
414
<TD><CODE><B><A HREF="../../../../../com/iver/cit/gvsig/fmap/ViewPort.html#setBackColor(java.awt.Color)">setBackColor</A></B>(java.awt.Color&nbsp;c)</CODE>
415

    
416
<BR>
417
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Inserta el color de fondo.</TD>
418
</TR>
419
<TR BGCOLOR="white" CLASS="TableRowColor">
420
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
421
<CODE>&nbsp;void</CODE></FONT></TD>
422
<TD><CODE><B><A HREF="../../../../../com/iver/cit/gvsig/fmap/ViewPort.html#setDist1pixel(double)">setDist1pixel</A></B>(double&nbsp;dist1pixel)</CODE>
423

    
424
<BR>
425
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Inserta la distancia real de un pixel.</TD>
426
</TR>
427
<TR BGCOLOR="white" CLASS="TableRowColor">
428
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
429
<CODE>&nbsp;void</CODE></FONT></TD>
430
<TD><CODE><B><A HREF="../../../../../com/iver/cit/gvsig/fmap/ViewPort.html#setDist3pixel(double)">setDist3pixel</A></B>(double&nbsp;dist3pixel)</CODE>
431

    
432
<BR>
433
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Inserta la distancia real de tres pixels.</TD>
434
</TR>
435
<TR BGCOLOR="white" CLASS="TableRowColor">
436
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
437
<CODE>&nbsp;void</CODE></FONT></TD>
438
<TD><CODE><B><A HREF="../../../../../com/iver/cit/gvsig/fmap/ViewPort.html#setDistanceUnits(int)">setDistanceUnits</A></B>(int&nbsp;distanceUnits)</CODE>
439

    
440
<BR>
441
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Inserta la unidad de medida.</TD>
442
</TR>
443
<TR BGCOLOR="white" CLASS="TableRowColor">
444
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
445
<CODE>&nbsp;void</CODE></FONT></TD>
446
<TD><CODE><B><A HREF="../../../../../com/iver/cit/gvsig/fmap/ViewPort.html#setExtent(java.awt.geom.Rectangle2D)">setExtent</A></B>(java.awt.geom.Rectangle2D&nbsp;r)</CODE>
447

    
448
<BR>
449
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Inserta el extent.</TD>
450
</TR>
451
<TR BGCOLOR="white" CLASS="TableRowColor">
452
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
453
<CODE>&nbsp;void</CODE></FONT></TD>
454
<TD><CODE><B><A HREF="../../../../../com/iver/cit/gvsig/fmap/ViewPort.html#setImageSize(java.awt.Dimension)">setImageSize</A></B>(java.awt.Dimension&nbsp;imageSize)</CODE>
455

    
456
<BR>
457
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Inserta las dimensiones de la imagen.</TD>
458
</TR>
459
<TR BGCOLOR="white" CLASS="TableRowColor">
460
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
461
<CODE>&nbsp;void</CODE></FONT></TD>
462
<TD><CODE><B><A HREF="../../../../../com/iver/cit/gvsig/fmap/ViewPort.html#setMapUnits(int)">setMapUnits</A></B>(int&nbsp;mapUnits)</CODE>
463

    
464
<BR>
465
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Inserta la unidad de medida del mapa.</TD>
466
</TR>
467
<TR BGCOLOR="white" CLASS="TableRowColor">
468
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
469
<CODE>&nbsp;void</CODE></FONT></TD>
470
<TD><CODE><B><A HREF="../../../../../com/iver/cit/gvsig/fmap/ViewPort.html#setOffset(java.awt.geom.Point2D)">setOffset</A></B>(java.awt.geom.Point2D&nbsp;p)</CODE>
471

    
472
<BR>
473
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Inserta la desviaci?n.</TD>
474
</TR>
475
<TR BGCOLOR="white" CLASS="TableRowColor">
476
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
477
<CODE>&nbsp;void</CODE></FONT></TD>
478
<TD><CODE><B><A HREF="../../../../../com/iver/cit/gvsig/fmap/ViewPort.html#setPreviousExtent()">setPreviousExtent</A></B>()</CODE>
479

    
480
<BR>
481
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Rellena el extent anterior como actual.</TD>
482
</TR>
483
<TR BGCOLOR="white" CLASS="TableRowColor">
484
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
485
<CODE>&nbsp;void</CODE></FONT></TD>
486
<TD><CODE><B><A HREF="../../../../../com/iver/cit/gvsig/fmap/ViewPort.html#setProjection(IProjection)">setProjection</A></B>(IProjection&nbsp;proj)</CODE>
487

    
488
<BR>
489
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Inserta la proyecci?n.</TD>
490
</TR>
491
<TR BGCOLOR="white" CLASS="TableRowColor">
492
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
493
<CODE>&nbsp;void</CODE></FONT></TD>
494
<TD><CODE><B><A HREF="../../../../../com/iver/cit/gvsig/fmap/ViewPort.html#setScale()">setScale</A></B>()</CODE>
495

    
496
<BR>
497
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Inserta la escala.</TD>
498
</TR>
499
<TR BGCOLOR="white" CLASS="TableRowColor">
500
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
501
<CODE>&nbsp;double</CODE></FONT></TD>
502
<TD><CODE><B><A HREF="../../../../../com/iver/cit/gvsig/fmap/ViewPort.html#toMapDistance(int)">toMapDistance</A></B>(int&nbsp;d)</CODE>
503

    
504
<BR>
505
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Devuelve la distancia real a partir de la distancia en pixels.</TD>
506
</TR>
507
<TR BGCOLOR="white" CLASS="TableRowColor">
508
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
509
<CODE>&nbsp;java.awt.geom.Point2D</CODE></FONT></TD>
510
<TD><CODE><B><A HREF="../../../../../com/iver/cit/gvsig/fmap/ViewPort.html#toMapPoint(int, int)">toMapPoint</A></B>(int&nbsp;x,
511
           int&nbsp;y)</CODE>
512

    
513
<BR>
514
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Devuelve un punto real a partir de una coordenada X e Y en pixels.</TD>
515
</TR>
516
<TR BGCOLOR="white" CLASS="TableRowColor">
517
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
518
<CODE>&nbsp;java.awt.geom.Point2D</CODE></FONT></TD>
519
<TD><CODE><B><A HREF="../../../../../com/iver/cit/gvsig/fmap/ViewPort.html#toMapPoint(java.awt.geom.Point2D)">toMapPoint</A></B>(java.awt.geom.Point2D&nbsp;pScreen)</CODE>
520

    
521
<BR>
522
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Devuelve un punto real a partir de un punto en pixels.</TD>
523
</TR>
524
<TR BGCOLOR="white" CLASS="TableRowColor">
525
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
526
<CODE>&nbsp;java.lang.String</CODE></FONT></TD>
527
<TD><CODE><B><A HREF="../../../../../com/iver/cit/gvsig/fmap/ViewPort.html#toString()">toString</A></B>()</CODE>
528

    
529
<BR>
530
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Devuelve el String con datos del ViewPort.</TD>
531
</TR>
532
</TABLE>
533
&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
534
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
535
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
536
<TD><B>Methods inherited from class java.lang.Object</B></TD>
537
</TR>
538
<TR BGCOLOR="white" CLASS="TableRowColor">
539
<TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait</CODE></TD>
540
</TR>
541
</TABLE>
542
&nbsp;
543
<P>
544

    
545
<!-- ============ FIELD DETAIL =========== -->
546

    
547
<A NAME="field_detail"><!-- --></A>
548
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
549
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
550
<TD COLSPAN=1><FONT SIZE="+2">
551
<B>Field Detail</B></FONT></TD>
552
</TR>
553
</TABLE>
554

    
555
<A NAME="KILOMETROS"><!-- --></A><H3>
556
KILOMETROS</H3>
557
<PRE>
558
public static int <B>KILOMETROS</B></PRE>
559
<DL>
560
<DL>
561
</DL>
562
</DL>
563
<HR>
564

    
565
<A NAME="METROS"><!-- --></A><H3>
566
METROS</H3>
567
<PRE>
568
public static int <B>METROS</B></PRE>
569
<DL>
570
<DL>
571
</DL>
572
</DL>
573
<HR>
574

    
575
<A NAME="CENTIMETRO"><!-- --></A><H3>
576
CENTIMETRO</H3>
577
<PRE>
578
public static int <B>CENTIMETRO</B></PRE>
579
<DL>
580
<DL>
581
</DL>
582
</DL>
583
<HR>
584

    
585
<A NAME="MILIMETRO"><!-- --></A><H3>
586
MILIMETRO</H3>
587
<PRE>
588
public static int <B>MILIMETRO</B></PRE>
589
<DL>
590
<DL>
591
</DL>
592
</DL>
593
<HR>
594

    
595
<A NAME="MILLAS"><!-- --></A><H3>
596
MILLAS</H3>
597
<PRE>
598
public static int <B>MILLAS</B></PRE>
599
<DL>
600
<DL>
601
</DL>
602
</DL>
603
<HR>
604

    
605
<A NAME="YARDAS"><!-- --></A><H3>
606
YARDAS</H3>
607
<PRE>
608
public static int <B>YARDAS</B></PRE>
609
<DL>
610
<DL>
611
</DL>
612
</DL>
613
<HR>
614

    
615
<A NAME="PIES"><!-- --></A><H3>
616
PIES</H3>
617
<PRE>
618
public static int <B>PIES</B></PRE>
619
<DL>
620
<DL>
621
</DL>
622
</DL>
623
<HR>
624

    
625
<A NAME="PULGADAS"><!-- --></A><H3>
626
PULGADAS</H3>
627
<PRE>
628
public static int <B>PULGADAS</B></PRE>
629
<DL>
630
<DL>
631
</DL>
632
</DL>
633

    
634
<!-- ========= CONSTRUCTOR DETAIL ======== -->
635

    
636
<A NAME="constructor_detail"><!-- --></A>
637
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
638
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
639
<TD COLSPAN=1><FONT SIZE="+2">
640
<B>Constructor Detail</B></FONT></TD>
641
</TR>
642
</TABLE>
643

    
644
<A NAME="ViewPort(IProjection)"><!-- --></A><H3>
645
ViewPort</H3>
646
<PRE>
647
public <B>ViewPort</B>(IProjection&nbsp;proj)</PRE>
648
<DL>
649
<DD>Crea un nuevo ViewPort.
650
<P>
651
<DT><B>Parameters:</B><DD><CODE>proj</CODE> - Proyecci?n.</DL>
652

    
653
<!-- ============ METHOD DETAIL ========== -->
654

    
655
<A NAME="method_detail"><!-- --></A>
656
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
657
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
658
<TD COLSPAN=1><FONT SIZE="+2">
659
<B>Method Detail</B></FONT></TD>
660
</TR>
661
</TABLE>
662

    
663
<A NAME="addViewPortListener(com.iver.cit.gvsig.fmap.ViewPortListener)"><!-- --></A><H3>
664
addViewPortListener</H3>
665
<PRE>
666
public boolean <B>addViewPortListener</B>(<A HREF="../../../../../com/iver/cit/gvsig/fmap/ViewPortListener.html" title="interface in com.iver.cit.gvsig.fmap">ViewPortListener</A>&nbsp;arg0)</PRE>
667
<DL>
668
<DD>A?ade un ViewPortListener al extentListener.
669
<P>
670
<DD><DL>
671
<DT><B>Parameters:</B><DD><CODE>arg0</CODE> - ViewPortListener.
672
<DT><B>Returns:</B><DD>True si ha sido a?adida correctamente.</DL>
673
</DD>
674
</DL>
675
<HR>
676

    
677
<A NAME="removeViewPortListener(com.iver.cit.gvsig.fmap.ViewPortListener)"><!-- --></A><H3>
678
removeViewPortListener</H3>
679
<PRE>
680
public boolean <B>removeViewPortListener</B>(<A HREF="../../../../../com/iver/cit/gvsig/fmap/ViewPortListener.html" title="interface in com.iver.cit.gvsig.fmap">ViewPortListener</A>&nbsp;arg0)</PRE>
681
<DL>
682
<DD>Borra el ViewPortListener que se pasa como par?metro delos
683
 extentListener.
684
<P>
685
<DD><DL>
686
<DT><B>Parameters:</B><DD><CODE>arg0</CODE> - ViewPortListener.
687
<DT><B>Returns:</B><DD>True si ha sido borrado correctamente.</DL>
688
</DD>
689
</DL>
690
<HR>
691

    
692
<A NAME="fromMapDistance(double)"><!-- --></A><H3>
693
fromMapDistance</H3>
694
<PRE>
695
public int <B>fromMapDistance</B>(double&nbsp;d)</PRE>
696
<DL>
697
<DD>Devuelve la distancia en pixels a partir de una distancia real.
698
<P>
699
<DD><DL>
700
<DT><B>Parameters:</B><DD><CODE>d</CODE> - Distancia real.
701
<DT><B>Returns:</B><DD>Distancia en pixels.</DL>
702
</DD>
703
</DL>
704
<HR>
705

    
706
<A NAME="fromMapPoint(double, double)"><!-- --></A><H3>
707
fromMapPoint</H3>
708
<PRE>
709
public java.awt.geom.Point2D <B>fromMapPoint</B>(double&nbsp;x,
710
                                          double&nbsp;y)</PRE>
711
<DL>
712
<DD>Devuelve un punto en pixels a partir de una coordenada X e Y real.
713
<P>
714
<DD><DL>
715
<DT><B>Parameters:</B><DD><CODE>x</CODE> - Coordenada X real.<DD><CODE>y</CODE> - Coordenada Y real.
716
<DT><B>Returns:</B><DD>Punto en pixels.</DL>
717
</DD>
718
</DL>
719
<HR>
720

    
721
<A NAME="fromMapPoint(java.awt.geom.Point2D)"><!-- --></A><H3>
722
fromMapPoint</H3>
723
<PRE>
724
public java.awt.geom.Point2D <B>fromMapPoint</B>(java.awt.geom.Point2D&nbsp;point)</PRE>
725
<DL>
726
<DD>Devuelve el punto en pixels a partir de un punto real.
727
<P>
728
<DD><DL>
729
<DT><B>Parameters:</B><DD><CODE>point</CODE> - Punto real.
730
<DT><B>Returns:</B><DD>Punto en pixels.</DL>
731
</DD>
732
</DL>
733
<HR>
734

    
735
<A NAME="toMapPoint(int, int)"><!-- --></A><H3>
736
toMapPoint</H3>
737
<PRE>
738
public java.awt.geom.Point2D <B>toMapPoint</B>(int&nbsp;x,
739
                                        int&nbsp;y)</PRE>
740
<DL>
741
<DD>Devuelve un punto real a partir de una coordenada X e Y en pixels.
742
<P>
743
<DD><DL>
744
<DT><B>Parameters:</B><DD><CODE>x</CODE> - Coordenada X en pixels.<DD><CODE>y</CODE> - Coordenada Y en pixels.
745
<DT><B>Returns:</B><DD>Punto real.</DL>
746
</DD>
747
</DL>
748
<HR>
749

    
750
<A NAME="toMapDistance(int)"><!-- --></A><H3>
751
toMapDistance</H3>
752
<PRE>
753
public double <B>toMapDistance</B>(int&nbsp;d)</PRE>
754
<DL>
755
<DD>Devuelve la distancia real a partir de la distancia en pixels.
756
<P>
757
<DD><DL>
758
<DT><B>Parameters:</B><DD><CODE>d</CODE> - Distancia en pixels.
759
<DT><B>Returns:</B><DD>Distancia real.</DL>
760
</DD>
761
</DL>
762
<HR>
763

    
764
<A NAME="toMapPoint(java.awt.geom.Point2D)"><!-- --></A><H3>
765
toMapPoint</H3>
766
<PRE>
767
public java.awt.geom.Point2D <B>toMapPoint</B>(java.awt.geom.Point2D&nbsp;pScreen)</PRE>
768
<DL>
769
<DD>Devuelve un punto real a partir de un punto en pixels.
770
<P>
771
<DD><DL>
772
<DT><B>Parameters:</B><DD><CODE>pScreen</CODE> - Punto en pixels.
773
<DT><B>Returns:</B><DD>Punto real.
774
<DT><B>Throws:</B>
775
<DD><CODE>java.lang.RuntimeException</CODE></DL>
776
</DD>
777
</DL>
778
<HR>
779

    
780
<A NAME="distanceWorld(java.awt.geom.Point2D, java.awt.geom.Point2D)"><!-- --></A><H3>
781
distanceWorld</H3>
782
<PRE>
783
public double <B>distanceWorld</B>(java.awt.geom.Point2D&nbsp;pt1,
784
                            java.awt.geom.Point2D&nbsp;pt2)</PRE>
785
<DL>
786
<DD>Calcula la distancia entre dos puntos en unidades de usuario. Los puntos
787
 est?n en unidades de usuario. Se tiene en cuenta la proyecci?n, con lo
788
 que es INDISPENSABLE que la variable proj contenga el valor correcto de
789
 la proyecci?n.
790
<P>
791
<DD><DL>
792
<DT><B>Parameters:</B><DD><CODE>pt1</CODE> - <DD><CODE>pt2</CODE> - 
793
<DT><B>Returns:</B><DD>distancia real.</DL>
794
</DD>
795
</DL>
796
<HR>
797

    
798
<A NAME="setPreviousExtent()"><!-- --></A><H3>
799
setPreviousExtent</H3>
800
<PRE>
801
public void <B>setPreviousExtent</B>()</PRE>
802
<DL>
803
<DD>Rellena el extent anterior como actual.
804
<P>
805
<DD><DL>
806
</DL>
807
</DD>
808
</DL>
809
<HR>
810

    
811
<A NAME="getExtent()"><!-- --></A><H3>
812
getExtent</H3>
813
<PRE>
814
public java.awt.geom.Rectangle2D <B>getExtent</B>()</PRE>
815
<DL>
816
<DD>Devuelve el extent.
817
<P>
818
<DD><DL>
819

    
820
<DT><B>Returns:</B><DD>Extent.</DL>
821
</DD>
822
</DL>
823
<HR>
824

    
825
<A NAME="setExtent(java.awt.geom.Rectangle2D)"><!-- --></A><H3>
826
setExtent</H3>
827
<PRE>
828
public void <B>setExtent</B>(java.awt.geom.Rectangle2D&nbsp;r)</PRE>
829
<DL>
830
<DD>Inserta el extent.
831
<P>
832
<DD><DL>
833
<DT><B>Parameters:</B><DD><CODE>r</CODE> - Extent.</DL>
834
</DD>
835
</DL>
836
<HR>
837

    
838
<A NAME="setScale()"><!-- --></A><H3>
839
setScale</H3>
840
<PRE>
841
public void <B>setScale</B>()</PRE>
842
<DL>
843
<DD>Inserta la escala.
844
<P>
845
<DD><DL>
846
</DL>
847
</DD>
848
</DL>
849
<HR>
850

    
851
<A NAME="getScale()"><!-- --></A><H3>
852
getScale</H3>
853
<PRE>
854
public double <B>getScale</B>()</PRE>
855
<DL>
856
<DD>Devuelve la escala. Debe estar siempre actualizada y no calcularse nunca
857
 aqu? pues se utiliza en el dibujado para cada geometr?a
858
<P>
859
<DD><DL>
860

    
861
<DT><B>Returns:</B><DD>Escala.</DL>
862
</DD>
863
</DL>
864
<HR>
865

    
866
<A NAME="getAffineTransform()"><!-- --></A><H3>
867
getAffineTransform</H3>
868
<PRE>
869
public java.awt.geom.AffineTransform <B>getAffineTransform</B>()</PRE>
870
<DL>
871
<DD>Devuelve la matriz de transformaci?n.
872
<P>
873
<DD><DL>
874

    
875
<DT><B>Returns:</B><DD>Matriz de transformaci?n.</DL>
876
</DD>
877
</DL>
878
<HR>
879

    
880
<A NAME="getImageSize()"><!-- --></A><H3>
881
getImageSize</H3>
882
<PRE>
883
public java.awt.Dimension <B>getImageSize</B>()</PRE>
884
<DL>
885
<DD>Devuelve las dimensiones de la imagen.
886
<P>
887
<DD><DL>
888

    
889
<DT><B>Returns:</B><DD>Returns the imageSize.</DL>
890
</DD>
891
</DL>
892
<HR>
893

    
894
<A NAME="setImageSize(java.awt.Dimension)"><!-- --></A><H3>
895
setImageSize</H3>
896
<PRE>
897
public void <B>setImageSize</B>(java.awt.Dimension&nbsp;imageSize)</PRE>
898
<DL>
899
<DD>Inserta las dimensiones de la imagen.
900
<P>
901
<DD><DL>
902
<DT><B>Parameters:</B><DD><CODE>imageSize</CODE> - The imageSize to set.</DL>
903
</DD>
904
</DL>
905
<HR>
906

    
907
<A NAME="setOffset(java.awt.geom.Point2D)"><!-- --></A><H3>
908
setOffset</H3>
909
<PRE>
910
public void <B>setOffset</B>(java.awt.geom.Point2D&nbsp;p)</PRE>
911
<DL>
912
<DD>Inserta la desviaci?n.
913
<P>
914
<DD><DL>
915
<DT><B>Parameters:</B><DD><CODE>p</CODE> - Punto.</DL>
916
</DD>
917
</DL>
918
<HR>
919

    
920
<A NAME="getOffset()"><!-- --></A><H3>
921
getOffset</H3>
922
<PRE>
923
public java.awt.geom.Point2D <B>getOffset</B>()</PRE>
924
<DL>
925
<DD>Devuelve la desviaci?n.
926
<P>
927
<DD><DL>
928
</DL>
929
</DD>
930
</DL>
931
<HR>
932

    
933
<A NAME="setBackColor(java.awt.Color)"><!-- --></A><H3>
934
setBackColor</H3>
935
<PRE>
936
public void <B>setBackColor</B>(java.awt.Color&nbsp;c)</PRE>
937
<DL>
938
<DD>Inserta el color de fondo.
939
<P>
940
<DD><DL>
941
<DT><B>Parameters:</B><DD><CODE>c</CODE> - Color de fondo.</DL>
942
</DD>
943
</DL>
944
<HR>
945

    
946
<A NAME="getBackColor()"><!-- --></A><H3>
947
getBackColor</H3>
948
<PRE>
949
public java.awt.Color <B>getBackColor</B>()</PRE>
950
<DL>
951
<DD>Devuelve el color de fondo.
952
<P>
953
<DD><DL>
954

    
955
<DT><B>Returns:</B><DD>Color de fondo.</DL>
956
</DD>
957
</DL>
958
<HR>
959

    
960
<A NAME="getAdjustedExtent()"><!-- --></A><H3>
961
getAdjustedExtent</H3>
962
<PRE>
963
public java.awt.geom.Rectangle2D <B>getAdjustedExtent</B>()</PRE>
964
<DL>
965
<DD>Devuelve el extent ajustado.
966
<P>
967
<DD><DL>
968

    
969
<DT><B>Returns:</B><DD>Returns the adjustedExtent.</DL>
970
</DD>
971
</DL>
972
<HR>
973

    
974
<A NAME="getDistanceUnits()"><!-- --></A><H3>
975
getDistanceUnits</H3>
976
<PRE>
977
public int <B>getDistanceUnits</B>()</PRE>
978
<DL>
979
<DD>Devuelve la unidad de medida.
980
<P>
981
<DD><DL>
982

    
983
<DT><B>Returns:</B><DD>Returns the distanceUnits.</DL>
984
</DD>
985
</DL>
986
<HR>
987

    
988
<A NAME="setDistanceUnits(int)"><!-- --></A><H3>
989
setDistanceUnits</H3>
990
<PRE>
991
public void <B>setDistanceUnits</B>(int&nbsp;distanceUnits)</PRE>
992
<DL>
993
<DD>Inserta la unidad de medida.
994
<P>
995
<DD><DL>
996
<DT><B>Parameters:</B><DD><CODE>distanceUnits</CODE> - The distanceUnits to set.</DL>
997
</DD>
998
</DL>
999
<HR>
1000

    
1001
<A NAME="getMapUnits()"><!-- --></A><H3>
1002
getMapUnits</H3>
1003
<PRE>
1004
public int <B>getMapUnits</B>()</PRE>
1005
<DL>
1006
<DD>Devuelve la unidad de medida del mapa.
1007
<P>
1008
<DD><DL>
1009

    
1010
<DT><B>Returns:</B><DD>Returns the mapUnits.</DL>
1011
</DD>
1012
</DL>
1013
<HR>
1014

    
1015
<A NAME="setMapUnits(int)"><!-- --></A><H3>
1016
setMapUnits</H3>
1017
<PRE>
1018
public void <B>setMapUnits</B>(int&nbsp;mapUnits)</PRE>
1019
<DL>
1020
<DD>Inserta la unidad de medida del mapa.
1021
<P>
1022
<DD><DL>
1023
<DT><B>Parameters:</B><DD><CODE>mapUnits</CODE> - The mapUnits to set.</DL>
1024
</DD>
1025
</DL>
1026
<HR>
1027

    
1028
<A NAME="getImageWidth()"><!-- --></A><H3>
1029
getImageWidth</H3>
1030
<PRE>
1031
public int <B>getImageWidth</B>()</PRE>
1032
<DL>
1033
<DD>Devuelve la anchura de la imagen.
1034
<P>
1035
<DD><DL>
1036

    
1037
<DT><B>Returns:</B><DD>anchura en pixels de la imagen.</DL>
1038
</DD>
1039
</DL>
1040
<HR>
1041

    
1042
<A NAME="getImageHeight()"><!-- --></A><H3>
1043
getImageHeight</H3>
1044
<PRE>
1045
public int <B>getImageHeight</B>()</PRE>
1046
<DL>
1047
<DD>Devuelve la altura de la imagen.
1048
<P>
1049
<DD><DL>
1050

    
1051
<DT><B>Returns:</B><DD>altura de la imagen.</DL>
1052
</DD>
1053
</DL>
1054
<HR>
1055

    
1056
<A NAME="getDist1pixel()"><!-- --></A><H3>
1057
getDist1pixel</H3>
1058
<PRE>
1059
public double <B>getDist1pixel</B>()</PRE>
1060
<DL>
1061
<DD>Devuelve la distancia real de un pixel.
1062
<P>
1063
<DD><DL>
1064

    
1065
<DT><B>Returns:</B><DD>Distancia real de un pixel.</DL>
1066
</DD>
1067
</DL>
1068
<HR>
1069

    
1070
<A NAME="setDist1pixel(double)"><!-- --></A><H3>
1071
setDist1pixel</H3>
1072
<PRE>
1073
public void <B>setDist1pixel</B>(double&nbsp;dist1pixel)</PRE>
1074
<DL>
1075
<DD>Inserta la distancia real de un pixel.
1076
<P>
1077
<DD><DL>
1078
<DT><B>Parameters:</B><DD><CODE>dist1pixel</CODE> - Distancia real de un pixel.</DL>
1079
</DD>
1080
</DL>
1081
<HR>
1082

    
1083
<A NAME="getDist3pixel()"><!-- --></A><H3>
1084
getDist3pixel</H3>
1085
<PRE>
1086
public double <B>getDist3pixel</B>()</PRE>
1087
<DL>
1088
<DD>Devuelve la distancia real de tres pixel.
1089
<P>
1090
<DD><DL>
1091

    
1092
<DT><B>Returns:</B><DD>Distancia real de tres pixel.</DL>
1093
</DD>
1094
</DL>
1095
<HR>
1096

    
1097
<A NAME="setDist3pixel(double)"><!-- --></A><H3>
1098
setDist3pixel</H3>
1099
<PRE>
1100
public void <B>setDist3pixel</B>(double&nbsp;dist3pixel)</PRE>
1101
<DL>
1102
<DD>Inserta la distancia real de tres pixels.
1103
<P>
1104
<DD><DL>
1105
<DT><B>Parameters:</B><DD><CODE>dist3pixel</CODE> - Distancia real de tres pixels.</DL>
1106
</DD>
1107
</DL>
1108
<HR>
1109

    
1110
<A NAME="getExtents()"><!-- --></A><H3>
1111
getExtents</H3>
1112
<PRE>
1113
public <A HREF="../../../../../com/iver/cit/gvsig/fmap/ExtentHistory.html" title="class in com.iver.cit.gvsig.fmap">ExtentHistory</A> <B>getExtents</B>()</PRE>
1114
<DL>
1115
<DD>Devuelve los Extents anteriores almacenados.
1116
<P>
1117
<DD><DL>
1118

    
1119
<DT><B>Returns:</B><DD>Returns the extents.</DL>
1120
</DD>
1121
</DL>
1122
<HR>
1123

    
1124
<A NAME="getProjection()"><!-- --></A><H3>
1125
getProjection</H3>
1126
<PRE>
1127
public IProjection <B>getProjection</B>()</PRE>
1128
<DL>
1129
<DD>Devuelve la proyecci?n.
1130
<P>
1131
<DD><DL>
1132

    
1133
<DT><B>Returns:</B><DD>Returns the proj.</DL>
1134
</DD>
1135
</DL>
1136
<HR>
1137

    
1138
<A NAME="setProjection(IProjection)"><!-- --></A><H3>
1139
setProjection</H3>
1140
<PRE>
1141
public void <B>setProjection</B>(IProjection&nbsp;proj)</PRE>
1142
<DL>
1143
<DD>Inserta la proyecci?n.
1144
<P>
1145
<DD><DL>
1146
<DT><B>Parameters:</B><DD><CODE>proj</CODE> - The proj to set.</DL>
1147
</DD>
1148
</DL>
1149
<HR>
1150

    
1151
<A NAME="setAffineTransform(java.awt.geom.AffineTransform)"><!-- --></A><H3>
1152
setAffineTransform</H3>
1153
<PRE>
1154
public void <B>setAffineTransform</B>(java.awt.geom.AffineTransform&nbsp;at)</PRE>
1155
<DL>
1156
<DD>M?todo que solo lo utilizamos a la hora de imprimir. NO lanza
1157
 un calculateAffineTransform, ni recalcula el adjustedExtent.
1158
 TODO: Para evitar este m?todo, habr?a que redefinir el interfaz
1159
 RasterAdapter, y que recibiera un ViewPortData.
1160
<P>
1161
<DD><DL>
1162
<DT><B>Parameters:</B><DD><CODE>at</CODE> - </DL>
1163
</DD>
1164
</DL>
1165
<HR>
1166

    
1167
<A NAME="getXMLEntity()"><!-- --></A><H3>
1168
getXMLEntity</H3>
1169
<PRE>
1170
public XMLEntity <B>getXMLEntity</B>()</PRE>
1171
<DL>
1172
<DD>Devuelve el XMLEntity.
1173
<P>
1174
<DD><DL>
1175

    
1176
<DT><B>Returns:</B><DD>XMLEntity.</DL>
1177
</DD>
1178
</DL>
1179
<HR>
1180

    
1181
<A NAME="createFromXML(XMLEntity)"><!-- --></A><H3>
1182
createFromXML</H3>
1183
<PRE>
1184
public static <A HREF="../../../../../com/iver/cit/gvsig/fmap/ViewPort.html" title="class in com.iver.cit.gvsig.fmap">ViewPort</A> <B>createFromXML</B>(XMLEntity&nbsp;xml)</PRE>
1185
<DL>
1186
<DD>Crea un nuevo ViewPort a partir del XMLEntity.
1187
<P>
1188
<DD><DL>
1189
<DT><B>Parameters:</B><DD><CODE>xml</CODE> - XMLEntity.
1190
<DT><B>Returns:</B><DD>Nuevo ViewPort.</DL>
1191
</DD>
1192
</DL>
1193
<HR>
1194

    
1195
<A NAME="cloneViewPort()"><!-- --></A><H3>
1196
cloneViewPort</H3>
1197
<PRE>
1198
public <A HREF="../../../../../com/iver/cit/gvsig/fmap/ViewPort.html" title="class in com.iver.cit.gvsig.fmap">ViewPort</A> <B>cloneViewPort</B>()</PRE>
1199
<DL>
1200
<DD>Clona el ViewPort.
1201
<P>
1202
<DD><DL>
1203

    
1204
<DT><B>Returns:</B><DD>ViewPort clonado.</DL>
1205
</DD>
1206
</DL>
1207
<HR>
1208

    
1209
<A NAME="toString()"><!-- --></A><H3>
1210
toString</H3>
1211
<PRE>
1212
public java.lang.String <B>toString</B>()</PRE>
1213
<DL>
1214
<DD>Devuelve el String con datos del ViewPort.
1215
<P>
1216
<DD><DL>
1217

    
1218
<DT><B>Returns:</B><DD>Cadena con datos del ViewPort.</DL>
1219
</DD>
1220
</DL>
1221
<!-- ========= END OF CLASS DATA ========= -->
1222
<HR>
1223

    
1224

    
1225
<!-- ======= START OF BOTTOM NAVBAR ====== -->
1226
<A NAME="navbar_bottom"><!-- --></A>
1227
<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
1228
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
1229
<TR>
1230
<TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
1231
<A NAME="navbar_bottom_firstrow"><!-- --></A>
1232
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
1233
  <TR ALIGN="center" VALIGN="top">
1234
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
1235
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
1236
  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
1237
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
1238
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
1239
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
1240
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
1241
  </TR>
1242
</TABLE>
1243
</TD>
1244
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
1245
</EM>
1246
</TD>
1247
</TR>
1248

    
1249
<TR>
1250
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
1251
&nbsp;<A HREF="../../../../../com/iver/cit/gvsig/fmap/MapControl.MapToolListener.html" title="class in com.iver.cit.gvsig.fmap"><B>PREV CLASS</B></A>&nbsp;
1252
&nbsp;NEXT CLASS</FONT></TD>
1253
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
1254
  <A HREF="../../../../../index.html" target="_top"><B>FRAMES</B></A>  &nbsp;
1255
&nbsp;<A HREF="ViewPort.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
1256
&nbsp;<SCRIPT type="text/javascript">
1257
  <!--
1258
  if(window==top) {
1259
    document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
1260
  }
1261
  //-->
1262
</SCRIPT>
1263
<NOSCRIPT>
1264
  <A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>
1265
</NOSCRIPT>
1266

    
1267
</FONT></TD>
1268
</TR>
1269
<TR>
1270
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
1271
  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
1272
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
1273
DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
1274
</TR>
1275
</TABLE>
1276
<A NAME="skip-navbar_bottom"></A>
1277
<!-- ======== END OF BOTTOM NAVBAR ======= -->
1278

    
1279
<HR>
1280

    
1281
</BODY>
1282
</HTML>