Revision 20100 branches/v10/libraries/libFMap/src/com/iver/cit/gvsig/fmap/layers/GraphicLayer.java

View differences:

GraphicLayer.java
66 66
import com.vividsolutions.jts.index.quadtree.Quadtree;
67 67

  
68 68
/**
69
 * <p>The class <code>GraphicLayer</code> represents a layer with graphical items, that are geometries with
69
 * <p><code>GraphicLayer</code> represents a layer with graphical items, that are geometries with
70 70
 *  a symbol and handlers associated.</p>
71 71
 * 
72
 * <p>The internal graphical items are independent to each other and can be selected separately. There is a bit set to
73
 * define which item are selected. And they which are selected, will be drawn with handlers, that according to the particular
74
 * implementation of each one, can allow to move, center, ... the graphic item.</p>
72
 * <p>The internal graphical items are independent to each other and can be selected separately. There is a <i>bit set</i> to
73
 * define which item are selected. They, will be drawn with handlers, that according to the particular
74
 * implementation of each one, can allow user to move, center, deform, ... each graphical item.</p>
75 75
 * 
76 76
 * @see FLyrDefault
77 77
 */
......
122 122
    private FBitSet selection = new FBitSet();
123 123

  
124 124
	/**
125
	 * Creates a default <i>FMap</i> layer.
125
	 * <p>Creates a new <code>GraphicLayer</code> instance.</p>
126 126
	 * 
127 127
	 * @see FLyrDefault#FLyrDefault()
128 128
	 */
......
149 149

  
150 150
    /**
151 151
     * <p>Processes all graphic items of this layer according to the <i>visitor pattern</i>. This
152
     *  operation can be cancelled at any time.</p> 
152
     *  operation can be canceled at any time.</p> 
153 153
     * 
154 154
     * @param visitor object that allows visit each graphic item
155
     * @param cancel an object thread that implements the {@link Cancellable Cancellable} interface, and allows
156
     *  cancel the visit
155
     * @param cancel shared object that determines if this layer can continue being drawn
157 156
     */
158 157
    public void process(ItemVisitor visitor, Cancellable cancel)
159 158
    {
......
242 241
    }
243 242

  
244 243
    /**
245
     * <p>Adds a new symbol to the graphic layer, and if success, returns the last index of the internal
244
     * <p>Adds a new symbol to the graphic layer, and, if success, returns the last index of the internal
246 245
     *  list of symbols.</p>
247 246
     * 
248 247
     * @param newSymbol the new symbol
......
259 258
    }
260 259

  
261 260
    /**
262
     * <p>Adds a new graphic item to the graphic layer, and if success, sets as new extent the graphic's
261
     * <p>Adds a new graphic item to the graphic layer, and, if success, sets as new extent the graphic's
263 262
     *  one if this layer hadn't, otherwise sets as new extent the union of both.</p>
264 263
     * 
265 264
     * @param g the new graphic item
......
286 285
    }
287 286

  
288 287
    /**
289
     * <p>Adds a new graphic item to the graphic layer at the position specified of the internal list, and if success,
288
     * <p>Adds a new graphic item to the graphic layer at the position specified of the internal list, and, if success,
290 289
     *  sets as new extent the graphic's one if this layer hadn't, otherwise sets as new extent the union of both.</p>
291 290
     * 
292 291
     * @param position the index of the element to insert 
......
354 353
	}
355 354

  
356 355
	/**
357
	 * Returns a bit set that reports which graphic items that are geometries, intersect with
356
	 * Returns a bit set that reports which graphic items <i>(geometries)</i>, intersect with
358 357
	 *  the rectangle <code>r</code>.
359 358
	 * 
360
	 * @param r the <code>Rectangle2D</code> to be intersected with all geometries of this layer
359
	 * @param r the <code>Rectangle2D</code> to be intersected with some geometries of this layer
361 360
	 * @return a <code>FBitSet</code> which <code>true</code> bits represent the geometries of this layer
362 361
	 *  that intersect with the rectangle
363 362
	 * 
......
419 418
	/**
420 419
	 * Returns the graphic item of this layer, that has the specified object tag.
421 420
	 * 
422
	 * @param objectTag the object tag of the item to return 
421
	 * @param objectTag the tag of the item to return 
423 422
	 * @return the item that has the specified object tag, or <code>null</code> if there was no item that had it
424 423
	 * 
425 424
	 * @see #getGraphic(int)
......
470 469

  
471 470
	/**
472 471
	 * <p>Inserts all of the elements in the specified {@link Collection Collection} into the internal list of graphic items,
473
	 *  starting at the specified position. Shifts the element currently at that position (if any) and any
474
	 *  subsequent elements to the right (increases their indices). The new elements will appear in the list
472
	 *  starting at the specified position. Shifts the element currently at that position (if there was any) and any
473
	 *  subsequent elements to the right (increasing their indices). The new elements will appear in the list
475 474
	 *  in the order that they are returned by the specified collection's iterator.</p>
476 475
	 * 
477
	 * @param index index at which to insert first element from the specified collection
476
	 * @param index index where starting to insert the elements from the specified collection
478 477
	 * @param c elements to be inserted into this list
479 478
	 * 
480 479
	 * @see #insertGraphic(int, FGraphic)

Also available in: Unified diff