org.elasticsearch.common.geo
Class ShapeBuilder.RectangleBuilder

java.lang.Object
  extended by org.elasticsearch.common.geo.ShapeBuilder.RectangleBuilder
Enclosing class:
ShapeBuilder

public static class ShapeBuilder.RectangleBuilder
extends Object

Builder for creating a Rectangle instance


Constructor Summary
ShapeBuilder.RectangleBuilder()
           
 
Method Summary
 ShapeBuilder.RectangleBuilder bottomRight(double lon, double lat)
          Sets the bottom right point of the Rectangle
 com.spatial4j.core.shape.Rectangle build()
          Builds the Rectangle instance
 ShapeBuilder.RectangleBuilder topLeft(double lon, double lat)
          Sets the top left point of the Rectangle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ShapeBuilder.RectangleBuilder

public ShapeBuilder.RectangleBuilder()
Method Detail

topLeft

public ShapeBuilder.RectangleBuilder topLeft(double lon,
                                             double lat)
Sets the top left point of the Rectangle

Parameters:
lon - Longitude of the top left point
lat - Latitude of the top left point
Returns:
this

bottomRight

public ShapeBuilder.RectangleBuilder bottomRight(double lon,
                                                 double lat)
Sets the bottom right point of the Rectangle

Parameters:
lon - Longitude of the bottom right point
lat - Latitude of the bottom right point
Returns:
this

build

public com.spatial4j.core.shape.Rectangle build()
Builds the Rectangle instance

Returns:
Built Rectangle


Copyright © 2009-2012. All Rights Reserved.