Revision 35475 branches/v2_0_0_prep/libraries/libFMap_geometries/src/org/gvsig/fmap/geom/primitive/impl/OrientablePrimitive2D.java

View differences:

OrientablePrimitive2D.java
312 312
         */
313 313
        public PointHandler(int i,double x, double y) {
314 314
            point = new Point2D.Double(x, y);
315
            index=i;
315
            index = i;
316 316
        }
317 317

  
318 318
        /**
......
324 324
         * @return DOCUMENT ME!
325 325
         */
326 326
        public void move(double x, double y) {
327
            Point point = gp.getPointAt(index*2);
327
            Point point = gp.getPointAt(index);
328 328
            point.setX(point.getX() + x);
329 329
            point.setY(point.getY() + y);
330 330
        }
......
333 333
         * @see org.gvsig.fmap.geom.handler.Handler#set(double, double)
334 334
         */
335 335
        public void set(double x, double y) {
336
            Point point = gp.getPointAt(index*2);
336
            Point point = gp.getPointAt(index);
337 337
            point.setX(x);
338 338
            point.setY(y);
339 339
        }
......
352 352
         */
353 353
        public PointSelHandler(int i,double x, double y) {
354 354
            point = new Point2D.Double(x, y);
355
            index=i;
355
            index = i;
356 356
        }
357 357

  
358 358
        /**
......
364 364
         * @return DOCUMENT ME!
365 365
         */
366 366
        public void move(double x, double y) {
367
            Point point = gp.getPointAt(index*2);
367
            Point point = gp.getPointAt(index);
368 368
            point.setX(point.getX() + x);
369 369
            point.setY(point.getY() + y);
370 370
        }
......
373 373
         * @see org.gvsig.fmap.geom.handler.Handler#set(double, double)
374 374
         */
375 375
        public void set(double x, double y) {
376
            Point point = gp.getPointAt(index*2);
376
            Point point = gp.getPointAt(index);
377 377
            point.setX(x);
378 378
            point.setY(y);
379 379
        }

Also available in: Unified diff