Revision 39206 branches/v2_0_0_prep/libraries/libFMap_geometries/src/org/gvsig/fmap/geom/Geometry.java

View differences:

Geometry.java
326 326
	public boolean fastIntersects(double x, double y, double w, double h);
327 327

  
328 328
	/**
329
	 * Returns this geometry's boundary rectangle.
330
	 * 
331
	 * @deprecated use getEnvelope.
332
	 * @return Boundary rectangle.
333
	 */
334
	public Rectangle2D getBounds2D();
335

  
336
	/**
337 329
	 * <p>
338 330
	 * Returns the minimum bounding box for this Geometry. This shall be the
339 331
	 * coordinate region spanning the minimum and maximum value for each
......
357 349
	public void reProject(ICoordTrans ct);
358 350

  
359 351
	/**
360
	 * If applies an affine transformation and returns the GeneralPathXIterator
361
	 * with this geometry's information.
362
	 * 
363
	 * @param at
364
	 *            The transformation to apply.
365
	 * @return The GeneralPathXIterator with this geometry's information.
366
	 */
367
	public PathIterator getPathIterator(AffineTransform at);
368

  
369
	/**
370
	 * It returns the handlers of the geometry, these they can be of two types
371
	 * is straightening and of selection.
372
	 * 
373
	 * @param type
374
	 *            Type of handlers.
375
	 * 
376
	 * @return The handlers.
377
	 */
378
	public Handler[] getHandlers(int type);
379

  
380
	/**
381 352
	 * It applies an affine transformation to the geometry.
382 353
	 * If parameter value is null, it will be considered an
383 354
	 * empty transformation, therefore equivalent to the identity
......
387 358
	 *            The transformation to apply.
388 359
	 */
389 360
	public void transform(AffineTransform at);
390

  
391 361
	/**
392
	 * If applies an affine transformation and returns the GeneralPathXIterator
393
	 * with this geometry's information.
394
	 * 
395
	 * @param at
396
	 *            The affine transformation.
397
	 * @param flatness
398
	 * 
399
	 * @return The GeneralPathXIterator with this geometry's information.
400
	 */
401
	PathIterator getPathIterator(AffineTransform at, double flatness);
402

  
403
	/**
404
	 * Useful to have the real shape behind the scenes. May be uses to edit it
405
	 * knowing it it is a Circle, Ellipse, etc.
406
	 * 
407
	 * @return The awt shape
408
	 */
409
	public Shape getInternalShape();
410

  
411
	/**
412 362
	 * Returns the largest number n such that each direct position in a
413 363
	 * geometric set can be associated with a subset that has the direct
414 364
	 * position in its interior and is similar (isomorphic) to Rn, Euclidean
......
473 423
	public GeometryType getGeometryType();
474 424

  
475 425
	/**
476
	 * Get GeneralPathIterator, to do registered operations to it.
477
	 * 
478
	 * @return The GeneralPathX.
479
	 */
480
	public GeneralPathX getGeneralPath();
481

  
482
	/**
483 426
	 * Return a byte array with the equivalent in WKB format of the Geometry.
484 427
	 * 
485 428
	 * Utility method to wrap the invocation to the operation
......
645 588
	public double area() throws GeometryOperationNotSupportedException, GeometryOperationException;
646 589
	
647 590
	public double perimeter() throws GeometryOperationNotSupportedException, GeometryOperationException;
591

  
648 592
	
649
	/**
650
     * @return  the awt shape used to display the geometry. It 
651
     * applies a tranformation before to return the coordinates
652
     * of the shape
653
     * @deprecated this class inherits of {@link Shape} by historical
654
     * reasons. This method has been added just to control the usage of
655
     * the {@link Shape} class but it will removed in a future.
656
     */
657
	public Shape getShape(AffineTransform affineTransform);
658 593
	
659
	/**
660
     * @return  the awt shape used to display the geometry. 
661
     * @deprecated this class inherits of {@link Shape} by historical
662
     * reasons. This method has been added just to control the usage of
663
     * the {@link Shape} class but it will removed in a future.
664
     */
665
	public Shape getShape();
666 594
	
667
	
668
	
669 595
	/**
670 596
	 * Rotates the geometry by radAngle radians using the given
671 597
	 * coordinates as center of rotation. Rotating with a positive
......
698 624
	 * @param sy scale factor in y axis
699 625
	 */
700 626
	public void scale(Point basePoint, double sx, double sy);
627
	
628
	
629
	
630
	
631
	//
632
	// ===============================================
633
	//
634
	
635
	
636
	/**
637
     * @return  the awt shape used to display the geometry. It 
638
     * applies a tranformation before to return the coordinates
639
     * of the shape
640
     * @deprecated this class inherits of {@link Shape} by historical
641
     * reasons. This method has been added just to control the usage of
642
     * the {@link Shape} class but it will removed in a future.
643
     */
644
	public Shape getShape(AffineTransform affineTransform);
645
	
646
	/**
647
     * @return  the awt shape used to display the geometry. 
648
     * @deprecated this class inherits of {@link Shape} by historical
649
     * reasons. This method has been added just to control the usage of
650
     * the {@link Shape} class but it will removed in a future.
651
     */
652
	public Shape getShape();
653

  
654
	/**
655
	 * Returns this geometry's boundary rectangle.
656
	 * 
657
	 * @deprecated use getEnvelope.
658
	 * @return Boundary rectangle.
659
	 */
660
	public Rectangle2D getBounds2D();
661

  
662
	/**
663
	 * If applies an affine transformation and returns the GeneralPathXIterator
664
	 * with this geometry's information.
665
	 * 
666
	 * @param at
667
	 *            The transformation to apply.
668
	 * @return The GeneralPathXIterator with this geometry's information.
669
	 * @deprecated don't use PathIterator over geometries, use instead specific API for each operation. If not has API for that operation let the project team.
670
	 * 
671
	 */
672
	public PathIterator getPathIterator(AffineTransform at);
673

  
674
	/**
675
	 * It returns the handlers of the geometry, these they can be of two types
676
	 * is straightening and of selection.
677
	 * 
678
	 * @param type
679
	 *            Type of handlers.
680
	 * 
681
	 * @deprecated don't use Handlers over geometries, use instead specific API for each operation. If not has API for that operation let the project team.
682
	 * @return The handlers.
683
	 */
684
	public Handler[] getHandlers(int type);
685

  
686

  
687
	/**
688
	 * If applies an affine transformation and returns the GeneralPathXIterator
689
	 * with this geometry's information.
690
	 * 
691
	 * @param at
692
	 *            The affine transformation.
693
	 * @param flatness
694
	 * 
695
	 * @return The GeneralPathXIterator with this geometry's information.
696
	 * @deprecated don't use PathIterator over geometries, use instead specific API for each operation. If not has API for that operation let the project team.
697
	 */
698
	PathIterator getPathIterator(AffineTransform at, double flatness);
699

  
700
	/**
701
	 * Useful to have the real shape behind the scenes. May be uses to edit it
702
	 * knowing it it is a Circle, Ellipse, etc.
703
	 * 
704
	 * @return The awt shape
705
	 * @deprecated
706
	 */
707
	public Shape getInternalShape();
708

  
709

  
710
	/**
711
	 * Get GeneralPathIterator, to do registered operations to it.
712
	 * 
713
	 * @return The GeneralPathX.
714
	 * @deprecated don't use GeneralPathX over geometries, use instead specific API for each operation. If not has API for that operation let the project team.
715
	 */
716
	public GeneralPathX getGeneralPath();
717

  
701 718
}

Also available in: Unified diff