Revision 42309 trunk/org.gvsig.desktop/org.gvsig.desktop.compat.cdc/org.gvsig.fmap.geometry/org.gvsig.fmap.geometry.api/src/main/java/org/gvsig/fmap/geom/primitive/Point.java
Point.java | ||
---|---|---|
25 | 25 |
package org.gvsig.fmap.geom.primitive; |
26 | 26 |
|
27 | 27 |
import org.gvsig.fmap.geom.DirectPosition; |
28 |
import org.gvsig.fmap.geom.GeometryException; |
|
29 |
import org.gvsig.fmap.geom.aggregate.MultiPoint; |
|
30 | 28 |
|
31 | 29 |
/** |
32 | 30 |
* <p> |
33 |
* This interface is equivalent to the GM_Point specified in
|
|
31 |
* This interface is equivalent to the GM_Point specified in |
|
34 | 32 |
* <a href="http://www.iso.org/iso/iso_catalogue/catalogue_tc/catalogue_detail.htm?csnumber=26012">ISO 19107</a>. |
35 |
* It is the basic data type for a geometric object consisting
|
|
36 |
* of one and only one point.
|
|
33 |
* It is the basic data type for a geometric object consisting |
|
34 |
* of one and only one point. |
|
37 | 35 |
* </p> |
38 | 36 |
* @see <a href="http://www.iso.org/iso/iso_catalogue/catalogue_tc/catalogue_detail.htm?csnumber=26012">ISO 19107</a> |
39 | 37 |
* @author <a href="mailto:jpiera@gvsig.org">Jorge Piera</a> |
40 | 38 |
*/ |
41 | 39 |
public interface Point extends Primitive { |
42 |
|
|
40 |
|
|
43 | 41 |
/** |
44 | 42 |
* Gets the {@link DirectPosition of a point}, that is |
45 | 43 |
* composed by a set of ordinates |
... | ... | |
47 | 45 |
* The direct position |
48 | 46 |
*/ |
49 | 47 |
public DirectPosition getDirectPosition(); |
50 |
|
|
48 |
|
|
51 | 49 |
/** |
52 | 50 |
* Sets a ordinate in a concrete dimension |
53 | 51 |
* @param dimension |
... | ... | |
59 | 57 |
|
60 | 58 |
/** |
61 | 59 |
* Sets the point coordinates |
62 |
*
|
|
60 |
* |
|
63 | 61 |
* @param value |
64 | 62 |
* The coordinates to set |
65 | 63 |
* @deprecated Use {@link #setCoordinateAt(int, double))} instead |
66 | 64 |
*/ |
67 | 65 |
void setCoordinates(double[] values); |
68 |
|
|
66 |
|
|
69 | 67 |
/** |
70 | 68 |
* Sets the X coordinate |
71 | 69 |
* @param x |
72 | 70 |
* The value to set |
73 | 71 |
*/ |
74 | 72 |
void setX(double x); |
75 |
|
|
73 |
|
|
76 | 74 |
/** |
77 | 75 |
* Sets the Y coordinate |
78 | 76 |
* @param y |
79 | 77 |
* The value to set |
80 | 78 |
*/ |
81 | 79 |
void setY(double y); |
82 |
|
|
80 |
|
|
83 | 81 |
/** |
84 | 82 |
* Gets the coordinate in a concrete dimension |
85 | 83 |
* @param dimension |
... | ... | |
93 | 91 |
* Returns an array of coordinates. Don't use the provided array to modify |
94 | 92 |
* the point coordinates, but use the {@link #setCoordinateAt(int, double))} |
95 | 93 |
* , {@link #setX(double))} or {@link #setY(double))} methods instead. |
96 |
*
|
|
94 |
* |
|
97 | 95 |
* @return The point coordinates |
98 | 96 |
* @deprecated Use {@link #getCoordinateAt(int)} instead |
99 | 97 |
*/ |
100 | 98 |
double[] getCoordinates(); |
101 |
|
|
99 |
|
|
102 | 100 |
/** |
103 |
* Returns the X coordinate
|
|
101 |
* Returns the X coordinate |
|
104 | 102 |
* @return |
105 | 103 |
* The X coordinate |
106 | 104 |
*/ |
107 | 105 |
double getX(); |
108 |
|
|
106 |
|
|
109 | 107 |
/** |
110 |
* Returns the Y coordinate
|
|
108 |
* Returns the Y coordinate |
|
111 | 109 |
* @return |
112 | 110 |
* The Y coordinate |
113 | 111 |
*/ |
114 | 112 |
double getY(); |
115 |
|
|
116 |
public MultiPoint toPoints() throws GeometryException ; |
|
117 | 113 |
} |
Also available in: Unified diff