Class Extent
- java.lang.Object
-
- de.terrestris.shoguncore.model.PersistentObject
-
- de.terrestris.shoguncore.model.layer.util.Extent
-
- All Implemented Interfaces:
java.io.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
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)java.awt.geom.Point2D.DoublegetLowerLeft()java.awt.geom.Point2D.DoublegetUpperRight()inthashCode()voidsetLowerLeft(java.awt.geom.Point2D.Double lowerLeft)voidsetUpperRight(java.awt.geom.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(java.awt.geom.Point2D.Double lowerLeft, java.awt.geom.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 java.awt.geom.Point2D.Double getLowerLeft()
- Returns:
- the lowerLeft
-
setLowerLeft
public void setLowerLeft(java.awt.geom.Point2D.Double lowerLeft)
- Parameters:
lowerLeft- the lowerLeft to set
-
getUpperRight
public java.awt.geom.Point2D.Double getUpperRight()
- Returns:
- the upperRight
-
setUpperRight
public void setUpperRight(java.awt.geom.Point2D.Double upperRight)
- Parameters:
upperRight- the upperRight to set
-
hashCode
public int hashCode()
- Overrides:
hashCodein classPersistentObject- See Also:
According to http://stackoverflow.com/questions/27581/overriding-equals -and-hashcode-in-java it is recommended only to use getter-methods when using ORM like Hibernate
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classPersistentObject- See Also:
According to http://stackoverflow.com/questions/27581/overriding-equals -and-hashcode-in-java it is recommended only to use getter-methods when using ORM like Hibernate
-
-