Class MapConfig
- java.lang.Object
-
- de.terrestris.shoguncore.model.PersistentObject
-
- de.terrestris.shoguncore.model.map.MapConfig
-
- All Implemented Interfaces:
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
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)Point2DgetCenter()ExtentgetExtent()DoublegetMaxResolution()DoublegetMinResolution()StringgetName()StringgetProjection()DoublegetResolution()List<Double>getResolutions()DoublegetRotation()IntegergetZoom()inthashCode()voidsetCenter(Point2D.Double center)voidsetExtent(Extent extent)voidsetMaxResolution(Double maxResolution)voidsetMinResolution(Double minResolution)voidsetName(String name)voidsetProjection(String projection)voidsetResolution(Double resolution)voidsetResolutions(List<Double> resolutions)voidsetRotation(Double rotation)voidsetZoom(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(String name, Point2D.Double center, Extent extent, List<Double> resolutions, Integer zoom, Double maxResolution, Double minResolution, Double rotation, String projection)
- Parameters:
name-center-extent-resolutions-zoom-maxResolution-minResolution-rotation-projection-
-
-
Method Detail
-
getName
public String getName()
- Returns:
- the name
-
setName
public void setName(String name)
- Parameters:
name- the name to set
-
getCenter
public Point2D getCenter()
- Returns:
- the center
-
setCenter
public void setCenter(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
-
setResolutions
public void setResolutions(List<Double> resolutions)
- Parameters:
resolutions- the resolutions to set
-
getZoom
public Integer getZoom()
- Returns:
- the zoom
-
setZoom
public void setZoom(Integer zoom)
- Parameters:
zoom- the zoom to set
-
getResolution
public Double getResolution()
- Returns:
- the resolution
-
setResolution
public void setResolution(Double resolution)
- Parameters:
resolution- the resolution to set
-
getMaxResolution
public Double getMaxResolution()
- Returns:
- the maxResolution
-
setMaxResolution
public void setMaxResolution(Double maxResolution)
- Parameters:
maxResolution- the maxResolution to set
-
getMinResolution
public Double getMinResolution()
- Returns:
- the minResolution
-
setMinResolution
public void setMinResolution(Double minResolution)
- Parameters:
minResolution- the minResolution to set
-
getRotation
public Double getRotation()
- Returns:
- the rotation
-
setRotation
public void setRotation(Double rotation)
- Parameters:
rotation- the rotation to set
-
getProjection
public String getProjection()
- Returns:
- the projection
-
setProjection
public void setProjection(String projection)
- Parameters:
projection- the projection to set
-
hashCode
public int hashCode()
-
equals
public boolean equals(Object obj)
-
-