Class Extent
- java.lang.Object
-
- de.terrestris.shoguncore.model.PersistentObject
-
- de.terrestris.shoguncore.model.layer.util.Extent
-
- All Implemented Interfaces:
Serializable
@Entity public class Extent extends PersistentObject
Util class representing the extent of a layer or a map. The extent is modelled by the lower left and the upper right point of the bounding rectangleUR +--------o | | o--------+ LL- Author:
- Andre Henn, terrestris GmbH & Co. KG
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Extent()Extent(double lowerLeftX, double lowerLeftY, double upperRightX, double upperRightY)Extent(Point2D.Double lowerLeft, Point2D.Double upperRight)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)Point2D.DoublegetLowerLeft()Point2D.DoublegetUpperRight()inthashCode()voidsetLowerLeft(Point2D.Double lowerLeft)voidsetUpperRight(Point2D.Double upperRight)-
Methods inherited from class de.terrestris.shoguncore.model.PersistentObject
getCreated, getGroupPermissions, getId, getModified, getUserPermissions, setGroupPermissions, setModified, setUserPermissions, toString
-
-
-
-
Constructor Detail
-
Extent
public Extent()
-
Extent
public Extent(Point2D.Double lowerLeft, Point2D.Double upperRight)
- Parameters:
lowerLeft-upperRight-
-
Extent
public Extent(double lowerLeftX, double lowerLeftY, double upperRightX, double upperRightY)- Parameters:
lowerLeftX-lowerLeftY-upperRightX-upperRightY-
-
-
Method Detail
-
getLowerLeft
public Point2D.Double getLowerLeft()
- Returns:
- the lowerLeft
-
setLowerLeft
public void setLowerLeft(Point2D.Double lowerLeft)
- Parameters:
lowerLeft- the lowerLeft to set
-
getUpperRight
public Point2D.Double getUpperRight()
- Returns:
- the upperRight
-
setUpperRight
public void setUpperRight(Point2D.Double upperRight)
- Parameters:
upperRight- the upperRight to set
-
hashCode
public int hashCode()
-
equals
public boolean equals(Object obj)
-
-