Revision 28990 branches/v2_0_0_prep/libraries/libFMap_geometries/src/org/gvsig/fmap/geom/primitive/Point.java

View differences:

Point.java
30 30
import org.gvsig.fmap.geom.DirectPosition;
31 31

  
32 32
/**
33
 * <p>
34
 * This interface is equivalent to the GM_Point specified in 
35
 * <a href="http://www.iso.org/iso/iso_catalogue/catalogue_tc/catalogue_detail.htm?csnumber=26012">ISO 19107</a>.
36
 * It is the basic data type for a geometric object consisting 
37
 * of one and only one point. 
38
 * </p>
39
 * @see <a href="http://www.iso.org/iso/iso_catalogue/catalogue_tc/catalogue_detail.htm?csnumber=26012">ISO 19107</a>
33 40
 * @author <a href="mailto:jpiera@gvsig.org">Jorge Piera</a>
34 41
 */
35 42
public interface Point extends Primitive {
36
	//public final static int CODE = TYPES.POINT;
37 43
	
44
	/**
45
	 * Gets the {@link DirectPosition of a point}, that is
46
	 * composed by a set of ordinates
47
	 * @return
48
	 * The direct position
49
	 */
38 50
	public DirectPosition getDirectPosition();
39 51
	
52
	/**
53
	 * Sets a ordinate in a concrete dimension
54
	 * @param dimension
55
	 * The dimension to set
56
	 * @param value
57
	 * The value to set
58
	 */
40 59
	void setCoordinateAt(int dimension, double value);
41 60
	
61
	/**
62
	 * Sets the point coordinates
63
	 * @param values
64
	 * The coordinates to set
65
	 */
42 66
	void setCoordinates(double[] values);
43 67
	
68
	/**
69
	 * Sets the X coordinate
70
	 * @param x
71
	 * The value to set
72
	 */
44 73
	void setX(double x);
45 74
	
75
	/**
76
	 * Sets the Y coordinate
77
	 * @param y
78
	 * The value to set
79
	 */
46 80
	void setY(double y);
47 81
	
82
	/**
83
	 * Gets the coordinate in a concrete dimension
84
	 * @param dimension
85
	 * The ordinate dimension
86
	 * @return
87
	 * The value of the ordinate
88
	 */
48 89
	double getCoordinateAt(int dimension);
49 90
	
91
	/**
92
	 * Returns an array of coordinates
93
	 * @return
94
	 * The point coordinates
95
	 */
50 96
	double[] getCoordinates();
51 97
	
98
	/**
99
	 * Returns the X coordinate 
100
	 * @return
101
	 * The X coordinate
102
	 */
52 103
	double getX();
53 104
	
105
	/**
106
	 * Returns the Y coordinate 
107
	 * @return
108
	 * The Y coordinate
109
	 */
54 110
	double getY();
55 111
	
56 112
}

Also available in: Unified diff