public class RectangleImpl extends Object implements Rectangle, Spatial4jShapeProvider, Externalizable
Constructor and Description |
---|
RectangleImpl() |
RectangleImpl(double minX,
double maxX,
double minY,
double maxY) |
Modifier and Type | Method and Description |
---|---|
StringBuilder |
appendTo(StringBuilder stringBuilder,
ShapeFormat shapeFormat)
Appends a string representation of the shape using the specified format
|
boolean |
equals(Object o) |
double |
getMaxX()
The right edge of the X coordinate.
|
double |
getMaxY()
The top edge of the Y coordinate.
|
double |
getMinX()
The left edge of the X coordinate.
|
double |
getMinY()
The bottom edge of the Y coordinate.
|
org.locationtech.spatial4j.shape.Shape |
getSpatial4jShape(org.locationtech.spatial4j.context.SpatialContext spatialContext)
Gets a Spatial4j shape from the current object
|
int |
hashCode() |
void |
readExternal(ObjectInput in) |
String |
toString() |
String |
toString(ShapeFormat shapeFormat)
Returns a string representation of the shape using the specified format.
|
void |
writeExternal(ObjectOutput out) |
public RectangleImpl()
public RectangleImpl(double minX, double maxX, double minY, double maxY)
public double getMinX()
Rectangle
public double getMinY()
Rectangle
public double getMaxX()
Rectangle
public double getMaxY()
Rectangle
public String toString(ShapeFormat shapeFormat)
Shape
public StringBuilder appendTo(StringBuilder stringBuilder, ShapeFormat shapeFormat)
Shape
public org.locationtech.spatial4j.shape.Shape getSpatial4jShape(org.locationtech.spatial4j.context.SpatialContext spatialContext)
Spatial4jShapeProvider
getSpatial4jShape
in interface Spatial4jShapeProvider
spatialContext
- The SpatialContext which will be used to construct the shape, if
needed.public void writeExternal(ObjectOutput out) throws IOException
writeExternal
in interface Externalizable
IOException
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
IOException
ClassNotFoundException
Copyright © GigaSpaces.