Revision 20098 trunk/libraries/libFMap/src/com/iver/cit/gvsig/fmap/core/FShape.java

View differences:

FShape.java
48 48

  
49 49

  
50 50
/**
51
 * <p>The interface <code>FShape</code> extends <code>Shape</code> adding shape types, and allowing
51
 * <p><code>FShape</code> extends <code>Shape</code> adding shape types, and allowing
52 52
 *  to work with it as a geometry.</p>
53 53
 */
54 54
public interface FShape extends Shape, Serializable {
55 55
	/**
56
	 * Unknown or not defined type. 
56
	 * <p>Unknown or not defined type.</p>
57 57
	 */
58 58
	public final static int NULL = 0;
59

  
59 60
	/**
60
	 * A geometric element that has zero dimensions and a location determinable by an ordered set
61
	 *  of coordinates
61
	 * <p>A geometric element that has zero dimensions and a location determinable by an ordered set
62
	 *  of coordinates.</p>
62 63
	 */
63 64
	public final static int POINT = 1;
65

  
64 66
	/**
65
	 * A straight or curved geometric element that is generated by a moving point and that has extension
66
	 *  only along the path of the point.
67
	 * <p>A straight or curved geometric element that is generated by a moving point and that has extension
68
	 *  only along the path of the point.</p>
67 69
	 */
68 70
	public final static int LINE = 2;
71

  
69 72
	/**
70
	 * A closed plane figure bounded by straight lines.
73
	 * <p>A closed plane figure bounded by straight lines.</p>
71 74
	 */
75
	public final static int POLYGON = 4;
72 76

  
73
	public final static int POLYGON = 4;
74 77
	/**
75
	 * Words, symbols and form of a written or printed work.
78
	 * <p>Words, symbols and form of a written or printed work.</p>
76 79
	 */
77 80
	public final static int TEXT = 8;
81

  
78 82
	/**
79
	 * A set that can contain points, lines and polygons. This is usual in <i>CAD</i> layers <i>(dxf, dgn, dwg)</i>.
83
	 * <p>A set that can contain points, lines and polygons. This is usual in <i>CAD</i> layers <i>(dxf, dgn, dwg)</i>.</p>
80 84
	 */
81 85
	public final static int MULTI = 16;
86

  
82 87
	/**
83
	 * A set of points.
88
	 * <p>A set of points.</p>
84 89
	 */
85 90
	public final static int MULTIPOINT = 32;
91

  
86 92
	/**
87
	 * A closed plane curve every point of which is equidistant from a fixed point within the curve.
93
	 * <p>A closed plane curve every point of which is equidistant from a fixed point within the curve.</p>
88 94
	 */
89 95
	public final static int CIRCLE = 64;
96

  
90 97
	/**
91
	 * A continuous portion (as of a circle or ellipse) of a curved line.
98
	 * <p>A continuous portion (as of a circle or ellipse) of a curved line.</p>
92 99
	 */
93 100
	public final static int ARC = 128;
101

  
94 102
	/**
95
	 *  A closed plane curve generated by a point moving in such a way that the sums of its distances
103
	 *  <p>A closed plane curve generated by a point moving in such a way that the sums of its distances
96 104
	 *   from two fixed points is a constant : a plane section of a right circular cone that is a closed
97
	 *   curve.
105
	 *   curve.</p>
98 106
	 */
99 107
	public final static int ELLIPSE=256;
108

  
100 109
	/**
101
	 * Indicates third coordinate. And can be combined with other geometries via the bits enabled.
110
	 * <p>Indicates third coordinate. And can be combined with other geometries via the bits enabled.</p>
102 111
	 */
103 112
	public final static int Z=512;
113

  
104 114
	/**
105
	 * Gets the geometry type of this shape.
115
	 * <p>Gets the geometry type that identifies this shape.</p>
106 116
	 *
107
	 * @return int the geometry type of this shape.
117
	 * @return int the geometry type that identifies this shape.
108 118
	 */
109 119
	public int getShapeType();
110 120

  
111 121
	/**
112
	 * Creates and returns a shape equal and independent of this one.
122
	 * <p>Creates and returns a shape equal and independent of this one.</p>
113 123
	 *
114 124
	 * @return the new shape.
115 125
	 */
116 126
	public FShape cloneFShape();
127

  
117 128
	/**
118
	 * Re-projects this shape using transformation coordinates. 
129
	 * <p>Re-projects this shape using <code>ct</code> as transformation coordinates.</p>
119 130
	 *
120 131
	 * @param ct the transformation coordinates
121 132
	 */
122 133
	public void reProject(ICoordTrans ct);
123 134

  
124 135
	/**
125
	 * Returns the handlers they utilized to stretch the geometries.
136
	 * <p>Returns the handlers they utilized to stretch the geometries.</p>
126 137
	 *
127 138
	 * @return Handlers the handlers used to stretch the geometries
128 139
	 */
129 140
	public Handler[] getStretchingHandlers();
130 141

  
131 142
	/**
132
	 * Returns the handlers used to select the geometries.
143
	 * <p>Returns the handlers used to select the geometries.</p>
133 144
	 *
134 145
	 * @return Handlers the handlers used to select the geometries
135 146
	 */
136 147
	public Handler[] getSelectHandlers();
148
	
137 149
	/**
138
	 * Executes a 2D transformation on this shape, using six parameters.
150
	 * <p>Executes a 2D transformation on this shape, using six parameters.</p>
139 151
	 * 
140 152
	 * @param at object that allows execute the affine transformation
141 153
	 * 

Also available in: Unified diff