Statistics
| Revision:

svn-gvsig-desktop / branches / CqCMSDvp / libraries / libCq CMS for java.old / doc-files / javadocs / org / cresques / geo / Polygon2D.html @ 2312

History | View | Annotate | Download (14.3 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_03) on Thu Jun 23 14:38:23 CEST 2005 -->
6
<TITLE>
7
Polygon2D
8
</TITLE>
9

    
10
<META NAME="keywords" CONTENT="org.cresques.geo.Polygon2D 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="Polygon2D";
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="../../../org/cresques/geo/PointFactory.html" title="class in org.cresques.geo"><B>PREV CLASS</B></A>&nbsp;
53
&nbsp;<A HREF="../../../org/cresques/geo/Projected.html" title="interface in org.cresques.geo"><B>NEXT CLASS</B></A></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="Polygon2D.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="#fields_inherited_from_class_java.util.Vector">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;FIELD&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
org.cresques.geo</FONT>
85
<BR>
86
Class Polygon2D</H2>
87
<PRE>
88
java.lang.Object
89
  <IMG SRC="../../../resources/inherit.gif" ALT="extended by">java.util.AbstractCollection
90
      <IMG SRC="../../../resources/inherit.gif" ALT="extended by">java.util.AbstractList
91
          <IMG SRC="../../../resources/inherit.gif" ALT="extended by">java.util.Vector
92
              <IMG SRC="../../../resources/inherit.gif" ALT="extended by"><B>org.cresques.geo.Polygon2D</B>
93
</PRE>
94
<DL>
95
<DT><B>All Implemented Interfaces:</B> <DD>java.lang.Cloneable, java.util.Collection, java.util.List, java.util.RandomAccess, java.io.Serializable</DD>
96
</DL>
97
<HR>
98
<DL>
99
<DT>public class <B>Polygon2D</B><DT>extends java.util.Vector</DL>
100

    
101
<P>
102
Clase que representa un pol?gono 2D
103
<P>
104

    
105
<P>
106
<DL>
107
<DT><B>Author:</B></DT>
108
  <DD>"Luis W. Sevilla" <sevilla_lui@gva.es></DD>
109
<DT><B>See Also:</B><DD><A HREF="../../../serialized-form.html#org.cresques.geo.Polygon2D">Serialized Form</A></DL>
110
<HR>
111

    
112
<P>
113
<!-- ======== NESTED CLASS SUMMARY ======== -->
114

    
115

    
116
<!-- =========== FIELD SUMMARY =========== -->
117

    
118
<A NAME="field_summary"><!-- --></A>
119
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
120
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
121
<TD COLSPAN=2><FONT SIZE="+2">
122
<B>Field Summary</B></FONT></TD>
123
</TR>
124
</TABLE>
125
&nbsp;<A NAME="fields_inherited_from_class_java.util.Vector"><!-- --></A>
126
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
127
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
128
<TD><B>Fields inherited from class java.util.Vector</B></TD>
129
</TR>
130
<TR BGCOLOR="white" CLASS="TableRowColor">
131
<TD><CODE>capacityIncrement, elementCount, elementData</CODE></TD>
132
</TR>
133
</TABLE>
134
&nbsp;<A NAME="fields_inherited_from_class_java.util.AbstractList"><!-- --></A>
135
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
136
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
137
<TD><B>Fields inherited from class java.util.AbstractList</B></TD>
138
</TR>
139
<TR BGCOLOR="white" CLASS="TableRowColor">
140
<TD><CODE>modCount</CODE></TD>
141
</TR>
142
</TABLE>
143
&nbsp;
144
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
145

    
146
<A NAME="constructor_summary"><!-- --></A>
147
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
148
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
149
<TD COLSPAN=2><FONT SIZE="+2">
150
<B>Constructor Summary</B></FONT></TD>
151
</TR>
152
<TR BGCOLOR="white" CLASS="TableRowColor">
153
<TD><CODE><B><A HREF="../../../org/cresques/geo/Polygon2D.html#Polygon2D()">Polygon2D</A></B>()</CODE>
154

    
155
<BR>
156
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
157
</TR>
158
</TABLE>
159
&nbsp;
160
<!-- ========== METHOD SUMMARY =========== -->
161

    
162
<A NAME="method_summary"><!-- --></A>
163
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
164
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
165
<TD COLSPAN=2><FONT SIZE="+2">
166
<B>Method Summary</B></FONT></TD>
167
</TR>
168
<TR BGCOLOR="white" CLASS="TableRowColor">
169
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
170
<CODE>&nbsp;void</CODE></FONT></TD>
171
<TD><CODE><B><A HREF="../../../org/cresques/geo/Polygon2D.html#addPoint(java.awt.geom.Point2D)">addPoint</A></B>(java.awt.geom.Point2D&nbsp;pt)</CODE>
172

    
173
<BR>
174
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;A?ade un vertice al po?</TD>
175
</TR>
176
<TR BGCOLOR="white" CLASS="TableRowColor">
177
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
178
<CODE>&nbsp;void</CODE></FONT></TD>
179
<TD><CODE><B><A HREF="../../../org/cresques/geo/Polygon2D.html#draw(java.awt.Graphics2D, org.cresques.geo.ViewPortData)">draw</A></B>(java.awt.Graphics2D&nbsp;g,
180
     <A HREF="../../../org/cresques/geo/ViewPortData.html" title="class in org.cresques.geo">ViewPortData</A>&nbsp;vp)</CODE>
181

    
182
<BR>
183
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Dibuja el pol?gono</TD>
184
</TR>
185
<TR BGCOLOR="white" CLASS="TableRowColor">
186
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
187
<CODE>&nbsp;void</CODE></FONT></TD>
188
<TD><CODE><B><A HREF="../../../org/cresques/geo/Polygon2D.html#fill(java.awt.Graphics2D, org.cresques.geo.ViewPortData)">fill</A></B>(java.awt.Graphics2D&nbsp;g,
189
     <A HREF="../../../org/cresques/geo/ViewPortData.html" title="class in org.cresques.geo">ViewPortData</A>&nbsp;vp)</CODE>
190

    
191
<BR>
192
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
193
</TR>
194
</TABLE>
195
&nbsp;<A NAME="methods_inherited_from_class_java.util.Vector"><!-- --></A>
196
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
197
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
198
<TD><B>Methods inherited from class java.util.Vector</B></TD>
199
</TR>
200
<TR BGCOLOR="white" CLASS="TableRowColor">
201
<TD><CODE>add, add, addAll, addAll, addElement, capacity, clear, clone, contains, containsAll, copyInto, elementAt, elements, ensureCapacity, equals, firstElement, get, hashCode, indexOf, indexOf, insertElementAt, isEmpty, lastElement, lastIndexOf, lastIndexOf, remove, remove, removeAll, removeAllElements, removeElement, removeElementAt, removeRange, retainAll, set, setElementAt, setSize, size, subList, toArray, toArray, toString, trimToSize</CODE></TD>
202
</TR>
203
</TABLE>
204
&nbsp;<A NAME="methods_inherited_from_class_java.util.AbstractList"><!-- --></A>
205
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
206
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
207
<TD><B>Methods inherited from class java.util.AbstractList</B></TD>
208
</TR>
209
<TR BGCOLOR="white" CLASS="TableRowColor">
210
<TD><CODE>iterator, listIterator, listIterator</CODE></TD>
211
</TR>
212
</TABLE>
213
&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
214
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
215
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
216
<TD><B>Methods inherited from class java.lang.Object</B></TD>
217
</TR>
218
<TR BGCOLOR="white" CLASS="TableRowColor">
219
<TD><CODE>finalize, getClass, notify, notifyAll, wait, wait, wait</CODE></TD>
220
</TR>
221
</TABLE>
222
&nbsp;<A NAME="methods_inherited_from_class_java.util.List"><!-- --></A>
223
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
224
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
225
<TD><B>Methods inherited from interface java.util.List</B></TD>
226
</TR>
227
<TR BGCOLOR="white" CLASS="TableRowColor">
228
<TD><CODE>iterator, listIterator, listIterator</CODE></TD>
229
</TR>
230
</TABLE>
231
&nbsp;
232
<P>
233

    
234
<!-- ============ FIELD DETAIL =========== -->
235

    
236

    
237
<!-- ========= CONSTRUCTOR DETAIL ======== -->
238

    
239
<A NAME="constructor_detail"><!-- --></A>
240
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
241
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
242
<TD COLSPAN=1><FONT SIZE="+2">
243
<B>Constructor Detail</B></FONT></TD>
244
</TR>
245
</TABLE>
246

    
247
<A NAME="Polygon2D()"><!-- --></A><H3>
248
Polygon2D</H3>
249
<PRE>
250
public <B>Polygon2D</B>()</PRE>
251
<DL>
252
</DL>
253

    
254
<!-- ============ METHOD DETAIL ========== -->
255

    
256
<A NAME="method_detail"><!-- --></A>
257
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
258
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
259
<TD COLSPAN=1><FONT SIZE="+2">
260
<B>Method Detail</B></FONT></TD>
261
</TR>
262
</TABLE>
263

    
264
<A NAME="addPoint(java.awt.geom.Point2D)"><!-- --></A><H3>
265
addPoint</H3>
266
<PRE>
267
public void <B>addPoint</B>(java.awt.geom.Point2D&nbsp;pt)</PRE>
268
<DL>
269
<DD>A?ade un vertice al po??gono
270
<P>
271
<DD><DL>
272
<DT><B>Parameters:</B><DD><CODE>pt</CODE> - punto 2D que representa el vertice a?adido</DL>
273
</DD>
274
</DL>
275
<HR>
276

    
277
<A NAME="draw(java.awt.Graphics2D, org.cresques.geo.ViewPortData)"><!-- --></A><H3>
278
draw</H3>
279
<PRE>
280
public void <B>draw</B>(java.awt.Graphics2D&nbsp;g,
281
                 <A HREF="../../../org/cresques/geo/ViewPortData.html" title="class in org.cresques.geo">ViewPortData</A>&nbsp;vp)</PRE>
282
<DL>
283
<DD>Dibuja el pol?gono
284
<P>
285
<DD><DL>
286
<DT><B>Parameters:</B><DD><CODE>g</CODE> - Graphics sobre el que dibuja<DD><CODE>vp</CODE> - ViewPort con la vista</DL>
287
</DD>
288
</DL>
289
<HR>
290

    
291
<A NAME="fill(java.awt.Graphics2D, org.cresques.geo.ViewPortData)"><!-- --></A><H3>
292
fill</H3>
293
<PRE>
294
public void <B>fill</B>(java.awt.Graphics2D&nbsp;g,
295
                 <A HREF="../../../org/cresques/geo/ViewPortData.html" title="class in org.cresques.geo">ViewPortData</A>&nbsp;vp)</PRE>
296
<DL>
297
<DD><DL>
298
<DT><B>Parameters:</B><DD><CODE>g</CODE> - <DD><CODE>vp</CODE> - </DL>
299
</DD>
300
</DL>
301
<!-- ========= END OF CLASS DATA ========= -->
302
<HR>
303

    
304

    
305
<!-- ======= START OF BOTTOM NAVBAR ====== -->
306
<A NAME="navbar_bottom"><!-- --></A>
307
<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
308
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
309
<TR>
310
<TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
311
<A NAME="navbar_bottom_firstrow"><!-- --></A>
312
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
313
  <TR ALIGN="center" VALIGN="top">
314
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
315
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
316
  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
317
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
318
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
319
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
320
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
321
  </TR>
322
</TABLE>
323
</TD>
324
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
325
</EM>
326
</TD>
327
</TR>
328

    
329
<TR>
330
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
331
&nbsp;<A HREF="../../../org/cresques/geo/PointFactory.html" title="class in org.cresques.geo"><B>PREV CLASS</B></A>&nbsp;
332
&nbsp;<A HREF="../../../org/cresques/geo/Projected.html" title="interface in org.cresques.geo"><B>NEXT CLASS</B></A></FONT></TD>
333
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
334
  <A HREF="../../../index.html" target="_top"><B>FRAMES</B></A>  &nbsp;
335
&nbsp;<A HREF="Polygon2D.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
336
&nbsp;<SCRIPT type="text/javascript">
337
  <!--
338
  if(window==top) {
339
    document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>');
340
  }
341
  //-->
342
</SCRIPT>
343
<NOSCRIPT>
344
  <A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>
345
</NOSCRIPT>
346

    
347
</FONT></TD>
348
</TR>
349
<TR>
350
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
351
  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#fields_inherited_from_class_java.util.Vector">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
352
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
353
DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
354
</TR>
355
</TABLE>
356
<A NAME="skip-navbar_bottom"></A>
357
<!-- ======== END OF BOTTOM NAVBAR ======= -->
358

    
359
<HR>
360

    
361
</BODY>
362
</HTML>