Class 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 rectangle

                    UR
         +--------o
         |        |
         o--------+
      LL
     
    Author:
    Andre Henn, terrestris GmbH & Co. KG
    See Also:
    Serialized Form
    • 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:
        hashCode in class PersistentObject
        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:
        equals in class PersistentObject
        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