Class MapConfig
- java.lang.Object
-
- de.terrestris.shoguncore.model.PersistentObject
-
- de.terrestris.shoguncore.model.map.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 Summary
Constructors Constructor Description MapConfig()default constructorMapConfig(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)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)java.awt.geom.Point2DgetCenter()ExtentgetExtent()java.lang.DoublegetMaxResolution()java.lang.DoublegetMinResolution()java.lang.StringgetName()java.lang.StringgetProjection()java.lang.DoublegetResolution()java.util.List<java.lang.Double>getResolutions()java.lang.DoublegetRotation()java.lang.IntegergetZoom()inthashCode()voidsetCenter(java.awt.geom.Point2D.Double center)voidsetExtent(Extent extent)voidsetMaxResolution(java.lang.Double maxResolution)voidsetMinResolution(java.lang.Double minResolution)voidsetName(java.lang.String name)voidsetProjection(java.lang.String projection)voidsetResolution(java.lang.Double resolution)voidsetResolutions(java.util.List<java.lang.Double> resolutions)voidsetRotation(java.lang.Double rotation)voidsetZoom(java.lang.Integer zoom)-
Methods inherited from class de.terrestris.shoguncore.model.PersistentObject
getCreated, getGroupPermissions, getId, getModified, getUserPermissions, setGroupPermissions, setModified, setUserPermissions, toString
-
-
-
-
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:
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
-
-