Revision 45748 trunk/org.gvsig.desktop/org.gvsig.desktop.compat.cdc/org.gvsig.fmap.geometry/org.gvsig.fmap.geometry.api/src/main/java/org/gvsig/fmap/geom/Geometry.java
Geometry.java | ||
---|---|---|
73 | 73 |
* >ISO 19107</a> |
74 | 74 |
*/ |
75 | 75 |
public interface Geometry extends Shape, Serializable, Comparable, Cloneable { |
76 |
|
|
77 |
/** |
|
78 |
* Specifies a round join style for buffer. |
|
79 |
*/ |
|
80 |
public static final int JOIN_STYLE_ROUND = 1; |
|
81 |
/** |
|
82 |
* Specifies a mitre join style for buffer. |
|
83 |
*/ |
|
84 |
public static final int JOIN_STYLE_MITRE = 2; |
|
85 |
/** |
|
86 |
* Specifies a bevel join style for buffer. |
|
87 |
*/ |
|
88 |
public static final int JOIN_STYLE_BEVEL = 3; |
|
76 | 89 |
|
90 |
|
|
77 | 91 |
/** |
78 | 92 |
* Predefined geometry types in the model. |
79 | 93 |
*/ |
... | ... | |
570 | 584 |
throws GeometryOperationNotSupportedException, |
571 | 585 |
GeometryOperationException; |
572 | 586 |
|
587 |
|
|
588 |
|
|
589 |
/** |
|
590 |
* Computes a buffer area around this geometry having the given width, the joinStyle and the capButt |
|
591 |
* |
|
592 |
* This is a utility method to wrap the invocation to the operation |
|
593 |
* {@link OPERATIONS#BUFFER}. |
|
594 |
* |
|
595 |
* @param distance the width of the buffer |
|
596 |
* @param joinStyle the join style can be JOIN_STYLE_ROUND, JOIN_STYLE_MITRE, JOIN_STYLE_BEVEL, |
|
597 |
* @param capButt true if not add a cap |
|
598 |
* |
|
599 |
* @return a new Geometry with the computed buffer. |
|
600 |
* |
|
601 |
* @throws GeometryOperationNotSupportedException |
|
602 |
* @throws GeometryOperationException |
|
603 |
*/ |
|
604 |
public Geometry buffer(double distance, int joinStyle, boolean capButt) |
|
605 |
throws GeometryOperationNotSupportedException, |
|
606 |
GeometryOperationException; |
|
607 |
|
|
608 |
|
|
573 | 609 |
public Geometry offset(double distance) |
574 | 610 |
throws GeometryOperationNotSupportedException, |
575 | 611 |
GeometryOperationException; |
Also available in: Unified diff