Package org.openstreetmap.josm.tools
Enum Class Geometry.PolygonIntersection
java.lang.Object
java.lang.Enum<Geometry.PolygonIntersection>
org.openstreetmap.josm.tools.Geometry.PolygonIntersection
- All Implemented Interfaces:
Serializable,Comparable<Geometry.PolygonIntersection>,Constable
- Enclosing class:
- Geometry
The result types for a
Geometry.polygonIntersection(Area, Area) test-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe polygon borders cross each otherThe first polygon is inside the second oneThe polygons do not overlapThe second one is inside the first -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Geometry.PolygonIntersectionReturns the enum constant of this class with the specified name.static Geometry.PolygonIntersection[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
FIRST_INSIDE_SECOND
The first polygon is inside the second one -
SECOND_INSIDE_FIRST
The second one is inside the first -
OUTSIDE
The polygons do not overlap -
CROSSING
The polygon borders cross each other
-
-
Constructor Details
-
PolygonIntersection
private PolygonIntersection()
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-