public class BoundingBoxToken extends Token
Modifier and Type | Class and Description |
---|---|
static class |
BoundingBoxToken.BoundingBoxType
The Type for the BoundingBoxToken.
|
Modifier and Type | Field and Description |
---|---|
static BoundingBoxToken.BoundingBoxType |
BOUNDING_BOX
The bounding box type.
|
Constructor and Description |
---|
BoundingBoxToken(org.geotools.geometry.jts.ReferencedEnvelope envelope)
Create a new BoundingBoxToken with an evelope.
|
BoundingBoxToken(java.lang.String value)
Create a new BoundingBoxToken from a string value.
|
Modifier and Type | Method and Description |
---|---|
static BoundingBoxToken |
bbox(java.lang.String value)
Create a BoundingBoxToken from a string value.
|
org.geotools.geometry.jts.ReferencedEnvelope |
boundingBoxValue()
Get the bounding box.
|
Type |
getType()
Get the token type.
|
BooleanToken |
isCloseTo(Token other,
double epsilon)
Test that the value of this Token is close to the first argument,
where "close" means that the distance between them is less than
or equal to the second argument.
|
BooleanToken |
isEqualTo(Token rightArgument)
Test for equality of the values of this Token and the argument Token.
|
double |
maxX()
Get the maximum x coordinate.
|
double |
maxY()
Get the maximum x coordinate.
|
double |
minX()
Get the minimum x coordinate.
|
double |
minY()
Get the minimum y coordinate.
|
java.lang.String |
toString()
Return a string representation of the bounding box.
|
add, addReverse, divide, divideReverse, isCloseTo, isNil, modulo, moduloReverse, multiply, multiplyReverse, notSupportedConversionMessage, notSupportedIncomparableConversionMessage, notSupportedIncomparableMessage, notSupportedMessage, notSupportedNullNilStringMessage, one, pow, subtract, subtractReverse, zero, zeroReturnType
public static final BoundingBoxToken.BoundingBoxType BOUNDING_BOX
public BoundingBoxToken(java.lang.String value) throws IllegalActionException
IllegalActionException
public BoundingBoxToken(org.geotools.geometry.jts.ReferencedEnvelope envelope)
public static BoundingBoxToken bbox(java.lang.String value) throws IllegalActionException
IllegalActionException
public org.geotools.geometry.jts.ReferencedEnvelope boundingBoxValue()
public BooleanToken isCloseTo(Token other, double epsilon) throws IllegalActionException
isCloseTo
in class Token
other
- The token to test closeness of this token with.epsilon
- The value that we use to determine whether two
tokens are close.IllegalActionException
- If the argument token is not
of a type that can be compared with this token.public final BooleanToken isEqualTo(Token rightArgument) throws IllegalActionException
isEqualTo
in class Token
rightArgument
- The Token to test against.IllegalActionException
- Not thrown in this base class.public double maxX()
public double maxY()
public double minX()
public double minY()