Package com.kheops.jmap.spatial
Class Rectangle.Float
java.lang.Object
com.kheops.jmap.spatial.DefaultGeometry
com.kheops.jmap.spatial.Rectangle
com.kheops.jmap.spatial.Rectangle.Float
- All Implemented Interfaces:
Geometry,Surface,Serializable,Cloneable
- Enclosing class:
Rectangle
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.kheops.jmap.spatial.Rectangle
Rectangle.Double, Rectangle.Float -
Field Summary
FieldsFields inherited from interface com.kheops.jmap.spatial.Geometry
GEOMETRY_ANNOTATION, GEOMETRY_COMPLEX, GEOMETRY_ELLIPSE, GEOMETRY_LINE, GEOMETRY_LINEAR_RING, GEOMETRY_LINESTRING, GEOMETRY_MULTI_ANNOTATION, GEOMETRY_MULTI_LINESTRING, GEOMETRY_MULTI_POINT, GEOMETRY_MULTI_POLYGON, GEOMETRY_POINT, GEOMETRY_POLYGON, GEOMETRY_RECTANGLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()Clones this geometry.doubledoublegetMaxX()doublegetMaxY()doublegetMinX()doublegetMinY()doublegetWidth()voidsetHeight(double height) voidsetWidth(double width) intsizeOf()Returns an approximation in bytes of the memory used by this geometry.toString()Returns information about the current geometry.Methods inherited from class com.kheops.jmap.spatial.Rectangle
add, add, area, asText, boundary, centroid, contains, contains, contains, contains, createBigRectangle, createBounds, equals, getBounds, getCenteredPoint, getCoord, getGeometryId, getGeometryType, inflate, intersection, intersection, intersection, intersects, intersects, intersects, intersects, intersects, intersects, intersects, intersects, length, pointOnSurface, serialize, setBounds, setCoord, setCoord, spatiallyEquals, toAwtRectangle, toPolygon, toPolygon, transform, translate, translateMethods inherited from class com.kheops.jmap.spatial.DefaultGeometry
spatiallyEqualsMethods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.kheops.jmap.spatial.Geometry
spatiallyEquals
-
Field Details
-
width
protected float width -
height
protected float height
-
-
Constructor Details
-
Float
public Float() -
Float
- Parameters:
coord- Bottom-left coordinateswidth-height-
-
Float
public Float(double x, double y, double width, double height) -
Float
-
Float
-
-
Method Details
-
getHeight
public double getHeight() -
getWidth
public double getWidth() -
setHeight
public void setHeight(double height) -
setWidth
public void setWidth(double width) -
clone
Description copied from class:DefaultGeometryClones this geometry. -
toString
Description copied from interface:GeometryReturns information about the current geometry. -
sizeOf
public int sizeOf()Returns an approximation in bytes of the memory used by this geometry.- Returns:
- the memory used by this geometry.
-
getMaxX
public double getMaxX() -
getMaxY
public double getMaxY() -
getMinX
public double getMinX() -
getMinY
public double getMinY()
-