Class MapConfig

  • All Implemented Interfaces:
    java.io.Serializable

    @Entity
    public class MapConfig
    extends PersistentObject
    The MapConfig is backend representation for an OpenLayers 3 View
    Author:
    Andre Henn, Daniel Koch, terrestris GmbH & Co. KG
    See Also:
    Serialized Form
    • Constructor Detail

      • MapConfig

        public MapConfig()
        default constructor
      • MapConfig

        public MapConfig​(java.lang.String name,
                         java.awt.geom.Point2D.Double center,
                         Extent extent,
                         java.util.List<java.lang.Double> resolutions,
                         java.lang.Integer zoom,
                         java.lang.Double maxResolution,
                         java.lang.Double minResolution,
                         java.lang.Double rotation,
                         java.lang.String projection)
        Parameters:
        name -
        center -
        extent -
        resolutions -
        zoom -
        maxResolution -
        minResolution -
        rotation -
        projection -
    • Method Detail

      • getName

        public java.lang.String getName()
        Returns:
        the name
      • setName

        public void setName​(java.lang.String name)
        Parameters:
        name - the name to set
      • getCenter

        public java.awt.geom.Point2D getCenter()
        Returns:
        the center
      • setCenter

        public void setCenter​(java.awt.geom.Point2D.Double center)
        Parameters:
        center - the center to set
      • getExtent

        public Extent getExtent()
        Returns:
        the extent
      • setExtent

        public void setExtent​(Extent extent)
        Parameters:
        extent - the extent to set
      • getResolutions

        public java.util.List<java.lang.Double> getResolutions()
        Returns:
        the resolutions
      • setResolutions

        public void setResolutions​(java.util.List<java.lang.Double> resolutions)
        Parameters:
        resolutions - the resolutions to set
      • getZoom

        public java.lang.Integer getZoom()
        Returns:
        the zoom
      • setZoom

        public void setZoom​(java.lang.Integer zoom)
        Parameters:
        zoom - the zoom to set
      • getResolution

        public java.lang.Double getResolution()
        Returns:
        the resolution
      • setResolution

        public void setResolution​(java.lang.Double resolution)
        Parameters:
        resolution - the resolution to set
      • getMaxResolution

        public java.lang.Double getMaxResolution()
        Returns:
        the maxResolution
      • setMaxResolution

        public void setMaxResolution​(java.lang.Double maxResolution)
        Parameters:
        maxResolution - the maxResolution to set
      • getMinResolution

        public java.lang.Double getMinResolution()
        Returns:
        the minResolution
      • setMinResolution

        public void setMinResolution​(java.lang.Double minResolution)
        Parameters:
        minResolution - the minResolution to set
      • getRotation

        public java.lang.Double getRotation()
        Returns:
        the rotation
      • setRotation

        public void setRotation​(java.lang.Double rotation)
        Parameters:
        rotation - the rotation to set
      • getProjection

        public java.lang.String getProjection()
        Returns:
        the projection
      • setProjection

        public void setProjection​(java.lang.String projection)
        Parameters:
        projection - the projection 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